✏️ 正在编辑: index.js
路径:
/home/eblama1/mintawon.farm/wp-content/plugins/gutenkit-blocks-addon/build/blocks/team/index.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
(()=>{var e,t,o,i={790(e){"use strict";e.exports=window.ReactJSXRuntime},5573(e){"use strict";e.exports=window.wp.primitives},6087(e){"use strict";e.exports=window.wp.element},6427(e){"use strict";e.exports=window.wp.components},6942(e,t){var o;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,a(o)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)i.call(e,o)&&e[o]&&(t=n(t,o));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},7723(e){"use strict";e.exports=window.wp.i18n},8102(e,t,o){"use strict";const i=window.wp.blocks;var r=o(7723);const a=window.wp.blockEditor;var n=o(6087),l=o(6942),c=o.n(l);const s=e=>{const{current:t}=e,o=t.querySelector(".gkit-team-modal"),i=t.querySelector(".gkit-team-modal-content");o.classList.add("open"),i.classList.add("open")},p=(e,t=!0,o=!1)=>{const i=e.querySelector(".profile-title"),r=e.querySelector(".gkit-team-modal"),a=e.querySelector(".gkit-team-modal-content"),n=e.querySelector(".gkit-team-modal-close"),l=e.querySelector(".gkit-team-img img"),c=e.querySelector(".hover-area"),s=e=>{"Escape"!==e.key&&"Esc"!==e.key||(r.classList.remove("open"),a.classList.remove("open"))},p=()=>{r.classList.add("open"),a.classList.add("open"),document.addEventListener("keydown",s)},d=()=>{r.classList.remove("open"),a.classList.remove("open"),document.removeEventListener("keydown",s)};t?(i&&i.classList.add("cursor-enable"),n&&n.classList.add("cursor-enable"),document.addEventListener("keydown",s),c||(l&&l?.classList.add("cursor-enable"),!o&&l&&l?.addEventListener("click",function(e){e.preventDefault(),p()})),!o&&i&&i.addEventListener("click",function(e){e.preventDefault(),p()}),n&&n.addEventListener("click",function(e){e.preventDefault(),d()})):(i&&i.classList.remove("cursor-enable"),l&&l.classList.remove("cursor-enable"),n&&n.classList.remove("cursor-enable"),i&&i.removeEventListener("click",p,!0),l&&l.removeEventListener("click",p,!0),n&&n.removeEventListener("click",d,!0),document.removeEventListener("keydown",s,!0))};var d=o(790);const g=({items:e,isEdit:t})=>{const{linkGenerator:o}=window.GkitHelpers,{GkitIcon:i}=window.GkitComponents,r=e.map((e,t)=>{let r={...o(e.link),title:e.label};return(0,d.jsx)("li",{className:`gkit-team-social-list-item-${t}`,children:(0,d.jsx)("a",{...r,children:(0,d.jsx)(i,{icon:e.icon})})},t)});return(0,d.jsx)("ul",{className:"gkit-team-social-list",children:r})},b=({attributes:e,setAttributes:t,isEdit:o,teamRef:i})=>{const{style:n,name:l,designation:c,description:p,socialProfiles:b,showDescription:m,showSocialProfiles:u,enablePopup:y,profileLink:h}=e,{linkGenerator:v}=window.GkitHelpers;let f={};return o&&y&&(f.onClick=()=>s(i)),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"profile-body",children:[l&&(y?(0,d.jsx)("h2",{className:"profile-title",...f,children:l}):(0,d.jsxs)("a",{...v(h),className:"profile-title",children:[" ",l," "]})),o?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.RichText,{identifier:"designation",tagName:"p",className:"profile-designation",value:c,onChange:e=>{t({designation:e})},placeholder:(0,r.__)("Enter your Designation..","gutenkit-blocks-addon"),allowedFormats:[]}),m&&(0,d.jsx)(a.RichText,{identifier:"description",tagName:"p",className:"profile-content",value:p,onChange:e=>{t({description:e})},placeholder:(0,r.__)("Write your description..","gutenkit-blocks-addon"),allowedFormats:[]})]}):(0,d.jsxs)(d.Fragment,{children:[c&&(0,d.jsx)("p",{className:"profile-designation",children:c}),m&&p&&(0,d.jsx)("p",{className:"profile-content",children:p})]}),"hover_info"===n&&u&&(0,d.jsx)("div",{className:"profile-footer",children:(0,d.jsx)(g,{items:b})})]}),u&&"hover_info"!==n&&(0,d.jsx)("div",{className:"profile-footer",children:(0,d.jsx)(g,{items:b,isEdit:o})})]})},m=({attributes:e,setAttributes:t,isEdit:o=!1})=>{const{closeIcon:i,image:n,memberDescription:l,name:c,designation:s,memberPhone:p,memberEmail:b,socialProfiles:m}=e,{GkitImage:u,GkitIcon:y}=window.GkitComponents;return(0,d.jsx)("div",{className:"gkit-team-modal",children:(0,d.jsxs)("div",{className:"gkit-team-modal-content",children:[(0,d.jsx)(y,{icon:i,className:"gkit-team-modal-close",tagName:"button"}),(0,d.jsxs)("div",{className:"gkit-team-modal-body",children:[(0,d.jsx)("div",{className:"gkit-team-modal-img",children:(0,d.jsx)(u,{image:n,isEdit:o})}),(0,d.jsxs)("div",{className:"gkit-team-modal-info has-img",children:[c&&(0,d.jsx)("h2",{className:"gkit-team-modal-title",children:c}),s&&(0,d.jsx)("p",{className:"gkit-team-modal-position",children:s}),o?(0,d.jsx)(a.RichText,{identifier:"memberDescription",tagName:"div",className:"gkit-team-modal-description",value:l,onChange:e=>{t({memberDescription:e})},placeholder:(0,r.__)("Write your description..","gutenkit-blocks-addon"),allowedFormats:[]}):l&&(0,d.jsx)("div",{className:"gkit-team-modal-description",children:l}),o?(0,d.jsx)("ul",{className:"gkit-team-modal-list",children:o?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Phone:"}),(0,d.jsx)(a.RichText,{identifier:"memberPhone",tagName:"a",href:`tel:${p}`,className:"gutenkit-phone",value:p,onChange:e=>{t({memberPhone:e})},placeholder:(0,r.__)("Enter your Phone..","gutenkit-blocks-addon"),allowedFormats:[]})]}),(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Email:"}),(0,d.jsx)(a.RichText,{identifier:"memberEmail",tagName:"a",href:`mailto:${b}`,className:"gutenkit-email",value:b,onChange:e=>{t({memberEmail:e})},placeholder:(0,r.__)("Enter your Email..","gutenkit-blocks-addon"),allowedFormats:[]})]})]}):(0,d.jsxs)(d.Fragment,{children:[p&&(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Phone:"}),(0,d.jsx)("a",{href:`tel:${p}`,children:p})]}),b&&(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Email:"}),(0,d.jsx)("a",{href:`mailto:${b}`,children:b})]})]})}):(0,d.jsx)(d.Fragment,{children:(p||b)&&(0,d.jsxs)("ul",{className:"gkit-team-modal-list",children:[p&&(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Phone:"}),(0,d.jsx)("a",{href:`tel:${p}`,children:p})]}),b&&(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Email:"}),(0,d.jsx)("a",{href:`mailto:${b}`,children:b})]})]})}),(0,d.jsx)(g,{items:m,isEdit:o})]})]})]})})},u=({attributes:e,setAttributes:t,isEdit:o,teamRef:i})=>{const{style:r,image:a,enablePopup:n}=e,{GkitImage:l}=window.GkitComponents,p=["default","centered_style","centered_style_details","long_height_details","long_height_details_hover","hover_info"],g=["overlay","overlay_details","long_height_hover","overlay_circle","overlay_circle_hover"],u={className:c()("gkit-team",{"profile-square-v":"centered_style"===r},{"profile-square-v square-v5 no_gutters":"centered_style_details"===r},{"profile-square-v square-v6 no_gutters":"long_height_details"===r},{"profile-square-v square-v6 square-v6-v2 no_gutters":"long_height_details_hover"===r},{"image-card-v2":"overlay_details"===r},{"image-card-v3 small-gutters":"long_height_hover"===r},{"style-circle gkit-team-img-fit":"overlay_circle"===r},{"image-card-v2 style-circle":"overlay_circle_hover"===r},{[`profile-square-v square-v4 gkit-team-style-${r}`]:"hover_info"===r})},y={className:c()({"profile-card":p.includes(r)},{[`gkit-team-style-${r}`]:"hover_info"!==r},{"profile-image-card gkit-team-img":g.includes(r)})},h={className:c()("profile-header","gkit-team-img",{"gkit-img-overlay gkit-team-img-block":"default"===r})};let v={};o&&n&&(v.onClick=()=>s(i));const f=p.includes(r)?(0,d.jsx)("div",{...h,children:(0,d.jsx)(l,{image:a,...v,className:"gkit-profile-img",isEdit:o})}):(0,d.jsx)(l,{image:a,...v,className:"gkit-profile-img",isEdit:o}),j=g.includes(r)?(0,d.jsx)("div",{className:"hover-area",children:(0,d.jsx)(b,{attributes:e,isEdit:o,teamRef:i})}):(0,d.jsx)(b,{attributes:e,setAttributes:t,isEdit:o,teamRef:i});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{...u,children:(0,d.jsxs)("div",{...y,children:[f,j]})}),(0,d.jsx)(m,{attributes:e,setAttributes:t,isEdit:o})]})},y=window.wp.compose,h=(0,n.lazy)(()=>o.e(6616).then(o.bind(o,6616))),v=JSON.parse('{"UU":"gutenkit/team","uK":{"blockID":{"type":"string"},"blockClass":{"type":"string"},"blocksCSS":{"type":"object"},"style":{"type":"string","default":"default"},"image":{"type":"object","default":{"url":"placeholder"},"excludeCopy":true},"name":{"type":"string","default":"Jane Doe","excludeCopy":true},"profileLink":{"type":"object","default":{"url":""},"excludeCopy":true},"designation":{"type":"string","default":"Designer","excludeCopy":true},"showDescription":{"type":"boolean","default":false,"excludeCopy":true},"description":{"type":"string","default":"A small river named Duden flows by their place and supplies it with the necessary","excludeCopy":true},"showSocialProfiles":{"type":"boolean","default":true},"socialProfiles":{"type":"array","default":[{"icon":{"title":"facebook-g","label":"Facebook G","type":"gkit","src":"<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"32\\" height=\\"32\\" viewBox=\\"0 0 32 32\\">\\n<title>facebook-g</title>\\n<path d=\\"M23.999 0.407l-4.15-0.007c-4.662 0-7.675 3.091-7.675 7.875v3.631h-4.172c-0.361 0-0.652 0.292-0.652 0.653v5.261c0 0.361 0.292 0.652 0.652 0.652h4.172v13.275c0 0.361 0.292 0.653 0.652 0.653h5.444c0.361 0 0.652-0.292 0.652-0.652v-13.275h4.878c0.361 0 0.652-0.292 0.652-0.652l0.002-5.261c0-0.173-0.069-0.339-0.191-0.461s-0.289-0.191-0.462-0.191h-4.88v-3.078c0-1.479 0.353-2.23 2.28-2.23l2.795-0.001c0.36 0 0.652-0.292 0.652-0.652v-4.885c0-0.36-0.292-0.652-0.651-0.652z\\"></path>\\n</svg>\\n"},"label":"Facebook","link":{"url":"https://www.facebook.com/"},"color":"","backgroundColor":"","borderColor":"","hoverColor":"","hoverBackgroundColor":"#3b5998","hoverBorderColor":""},{"icon":{"title":"twitter-g","label":"Twitter G","type":"gkit","src":"<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"32\\" height=\\"32\\" viewBox=\\"0 0 32 32\\">\\n<title>twitter-g</title>\\n<path d=\\"M32 6.479c-1.178 0.522-2.442 0.876-3.769 1.034 1.356-0.812 2.394-2.1 2.885-3.629-1.272 0.752-2.675 1.298-4.171 1.594-1.198-1.278-2.901-2.074-4.791-2.074-3.625 0-6.565 2.939-6.565 6.563 0 0.514 0.058 1.016 0.17 1.496-5.455-0.274-10.292-2.887-13.529-6.859-0.566 0.968-0.888 2.096-0.888 3.299 0 2.278 1.16 4.287 2.919 5.463-1.076-0.036-2.088-0.332-2.973-0.824v0.082c0 3.179 2.264 5.833 5.265 6.437-0.55 0.148-1.13 0.23-1.73 0.23-0.424 0-0.834-0.042-1.236-0.122 0.836 2.61 3.259 4.507 6.131 4.559-2.246 1.76-5.077 2.805-8.152 2.805-0.53 0-1.052-0.032-1.566-0.090 2.905 1.866 6.355 2.953 10.062 2.953 12.076 0 18.677-10.002 18.677-18.677l-0.022-0.85c1.29-0.92 2.405-2.076 3.283-3.391z\\"></path>\\n</svg>\\n"},"label":"Twitter","link":{"url":"https://www.twitter.com/"},"color":"","backgroundColor":"","borderColor":"","hoverColor":"","hoverBackgroundColor":"#1da1f2","hoverBorderColor":""},{"icon":{"title":"pinterest-g","label":"Pinterest G","type":"gkit","src":"<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"32\\" height=\\"32\\" viewBox=\\"0 0 32 32\\">\\n<title>pinterest-g</title>\\n<path d=\\"M16.75 0.4c-8.733 0-13.137 6.261-13.137 11.482 0 3.161 1.197 5.973 3.763 7.022 0.421 0.172 0.799 0.006 0.921-0.46 0.085-0.323 0.285-1.136 0.375-1.475 0.123-0.461 0.075-0.622-0.264-1.024-0.74-0.873-1.213-2.003-1.213-3.605 0-4.645 3.475-8.803 9.050-8.803 4.935 0 7.647 3.016 7.647 7.044 0 5.3-2.345 9.772-5.827 9.772-1.923 0-3.362-1.59-2.901-3.541 0.552-2.328 1.622-4.842 1.622-6.522 0-1.504-0.807-2.76-2.479-2.76-1.966 0-3.545 2.034-3.545 4.757 0 1.735 0.586 2.909 0.586 2.909s-2.012 8.523-2.364 10.016c-0.703 2.972-0.105 6.616-0.055 6.984 0.029 0.218 0.309 0.27 0.436 0.105 0.182-0.237 2.523-3.127 3.319-6.015 0.225-0.818 1.292-5.052 1.292-5.052 0.639 1.218 2.505 2.291 4.49 2.291 5.908 0 9.918-5.387 9.918-12.597 0-5.452-4.618-10.53-11.637-10.53z\\"></path>\\n</svg>\\n"},"label":"Pinterest","link":{"url":"https://www.pinterest.com/"},"color":"","backgroundColor":"","borderColor":"","hoverColor":"","hoverBackgroundColor":"#e60023","hoverBorderColor":""}],"excludeCopy":true},"enablePopup":{"type":"boolean","default":true,"excludeCopy":true},"memberDescription":{"type":"string","default":"A small river named Duden flows by their place and supplies it with the necessary","excludeCopy":true},"memberPhone":{"type":"string","default":"+1 (859) 254-6589","excludeCopy":true},"memberEmail":{"type":"string","default":"info@example.com","excludeCopy":true},"closeIcon":{"type":"object","default":{"title":"cancel","src":"<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"32\\" height=\\"32\\" viewBox=\\"0 0 32 32\\">\\n<title>cancel</title>\\n<path d=\\"M18.556 16.027l12.169-12.169c0.706-0.706 0.706-1.85 0-2.555s-1.851-0.706-2.555 0l-12.169 12.169-12.167-12.169c-0.705-0.706-1.85-0.706-2.555 0s-0.706 1.85 0 2.555l12.167 12.169-12.915 12.915c-0.706 0.706-0.706 1.85 0 2.555 0.352 0.353 0.815 0.53 1.278 0.53s0.925-0.176 1.278-0.53l12.915-12.915 12.915 12.915c0.353 0.353 0.815 0.53 1.278 0.53s0.924-0.176 1.278-0.53c0.706-0.706 0.706-1.85 0-2.555l-12.915-12.915z\\"></path>\\n</svg>\\n"}},"contentAlignmentDesktop":{"type":"string","default":"center"},"contentAlignmentTablet":{"type":"string"},"contentAlignmentMobile":{"type":"string"},"contentAlignmentTabletLandscape":{"type":"string"},"contentAlignmentMobileLandscape":{"type":"string"},"contentAlignmentLaptop":{"type":"string"},"contentAlignmentWideScreen":{"type":"string"},"background":{"type":"object"},"boxShadow":{"type":"object"},"backgroundHover":{"type":"object"},"backgroundHoverOverlay":{"type":"object"},"boxShadowHover":{"type":"object"},"border":{"type":"object"},"borderHover":{"type":"object"},"borderRadius":{"type":"object"},"paddingDesktop":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"paddingTabletLandscape":{"type":"object"},"paddingMobileLandscape":{"type":"object"},"paddingLaptop":{"type":"object"},"paddingWideScreen":{"type":"object"},"longHeightOverlayDesktop":{"type":"object"},"longHeightOverlayTablet":{"type":"object"},"longHeightOverlayMobile":{"type":"object"},"longHeightOverlayTabletLandscape":{"type":"object"},"longHeightOverlayMobileLandscape":{"type":"object"},"longHeightOverlayLaptop":{"type":"object"},"longHeightOverlayWideScreen":{"type":"object"},"contentPaddingDesktop":{"type":"object"},"contentPaddingTablet":{"type":"object"},"contentPaddingMobile":{"type":"object"},"contentPaddingTabletLandscape":{"type":"object"},"contentPaddingMobileLandscape":{"type":"object"},"contentPaddingLaptop":{"type":"object"},"contentPaddingWideScreen":{"type":"object"},"teamFooterPaddingDesktop":{"type":"object"},"teamFooterPaddingTablet":{"type":"object"},"teamFooterPaddingMobile":{"type":"object"},"teamFooterPaddingTabletLandscape":{"type":"object"},"teamFooterPaddingMobileLandscape":{"type":"object"},"teamFooterPaddingLaptop":{"type":"object"},"teamFooterPaddingWideScreen":{"type":"object"},"imageSizeDesktop":{"type":"object"},"imageSizeTablet":{"type":"object"},"imageSizeMobile":{"type":"object"},"imageSizeTabletLandscape":{"type":"object"},"imageSizeMobileLandscape":{"type":"object"},"imageSizeLaptop":{"type":"object"},"imageSizeWideScreen":{"type":"object"},"imageMarginDesktop":{"type":"object"},"imageMarginTablet":{"type":"object"},"imageMarginMobile":{"type":"object"},"imageMarginTabletLandscape":{"type":"object"},"imageMarginMobileLandscape":{"type":"object"},"imageMarginLaptop":{"type":"object"},"imageMarginWideScreen":{"type":"object"},"imageShadow":{"type":"object"},"imageBorder":{"type":"object"},"imageBorderRadius":{"type":"object"},"nameTypography":{"type":"object"},"nameColor":{"type":"string"},"nameHoverColor":{"type":"string"},"nameMarginDesktop":{"type":"object"},"nameMarginTablet":{"type":"object"},"nameMarginMobile":{"type":"object"},"nameMarginTabletLandscape":{"type":"object"},"nameMarginMobileLandscape":{"type":"object"},"nameMarginLaptop":{"type":"object"},"nameMarginWideScreen":{"type":"object"},"designationTypography":{"type":"object"},"designationColor":{"type":"string"},"designationHoverColor":{"type":"string"},"designationMarginDesktop":{"type":"object"},"designationMarginTablet":{"type":"object"},"designationMarginMobile":{"type":"object"},"designationMarginTabletLandscape":{"type":"object"},"designationMarginMobileLandscape":{"type":"object"},"designationMarginLaptop":{"type":"object"},"designationMarginWideScreen":{"type":"object"},"descriptionTypography":{"type":"object"},"descriptionColor":{"type":"string"},"descriptionHoverColor":{"type":"string"},"descriptionMarginDesktop":{"type":"object"},"descriptionMarginTablet":{"type":"object"},"descriptionMarginMobile":{"type":"object"},"descriptionMarginTabletLandscape":{"type":"object"},"descriptionMarginMobileLandscape":{"type":"object"},"descriptionMarginLaptop":{"type":"object"},"descriptionMarginWideScreen":{"type":"object"},"iconSizeDesktop":{"type":"object"},"iconSizeTablet":{"type":"object"},"iconSizeMobile":{"type":"object"},"iconSizeTabletLandscape":{"type":"object"},"iconSizeMobileLandscape":{"type":"object"},"iconSizeLaptop":{"type":"object"},"iconSizeWideScreen":{"type":"object"},"iconBorder":{"type":"object"},"iconBorderRadius":{"type":"object"},"iconboxShadow":{"type":"object"},"iconMarginDesktop":{"type":"object"},"iconMarginTablet":{"type":"object"},"iconMarginMobile":{"type":"object"},"iconMarginTabletLandscape":{"type":"object"},"iconMarginMobileLandscape":{"type":"object"},"iconMarginLaptop":{"type":"object"},"iconMarginWideScreen":{"type":"object"},"teamSocialIconPaddingDesktop":{"type":"object"},"teamSocialIconPaddingTablet":{"type":"object"},"teamSocialIconPaddingMobile":{"type":"object"},"teamSocialIconPaddingTabletLandscape":{"type":"object"},"teamSocialIconPaddingMobileLandscape":{"type":"object"},"teamSocialIconPaddingLaptop":{"type":"object"},"teamSocialIconPaddingWideScreen":{"type":"object"},"showSocialProfilesHeight":{"type":"boolean","default":false},"iconHeightDesktop":{"type":"object"},"iconHeightTablet":{"type":"object"},"iconHeightMobile":{"type":"object"},"iconHeightTabletLandscape":{"type":"object"},"iconHeightMobileLandscape":{"type":"object"},"iconHeightLaptop":{"type":"object"},"iconHeightWideScreen":{"type":"object"},"iconWidthDesktop":{"type":"object"},"iconWidthTablet":{"type":"object"},"iconWidthMobile":{"type":"object"},"iconWidthTabletLandscape":{"type":"object"},"iconWidthMobileLandscape":{"type":"object"},"iconWidthLaptop":{"type":"object"},"iconWidthWideScreen":{"type":"object"},"popupBackground":{"type":"object"},"popupNameTypography":{"type":"object"},"popupNameColor":{"type":"string"},"popupNameMarginDesktop":{"type":"object"},"popupNameMarginTablet":{"type":"object"},"popupNameMarginMobile":{"type":"object"},"popupNameMarginTabletLandscape":{"type":"object"},"popupNameMarginMobileLandscape":{"type":"object"},"popupNameMarginLaptop":{"type":"object"},"popupNameMarginWideScreen":{"type":"object"},"popupDesignationTypography":{"type":"object"},"popupDesignationColor":{"type":"string"},"popupDesignationMarginDesktop":{"type":"object"},"popupDesignationMarginTablet":{"type":"object"},"popupDesignationMarginMobile":{"type":"object"},"popupDesignationMarginTabletLandscape":{"type":"object"},"popupDesignationMarginMobileLandscape":{"type":"object"},"popupDesignationMarginLaptop":{"type":"object"},"popupDesignationMarginWideScreen":{"type":"object"},"popupDescriptionTypography":{"type":"object"},"popupDescriptionColor":{"type":"string"},"popupDescriptionMarginDesktop":{"type":"object"},"popupDescriptionMarginTablet":{"type":"object"},"popupDescriptionMarginMobile":{"type":"object"},"popupDescriptionMarginTabletLandscape":{"type":"object"},"popupDescriptionMarginMobileLandscape":{"type":"object"},"popupDescriptionMarginLaptop":{"type":"object"},"popupDescriptionMarginWideScreen":{"type":"object"},"popupPhoneTypography":{"type":"object"},"popupPhoneColor":{"type":"string"},"popupPhoneHoverColor":{"type":"string"},"popupIconSizeDesktop":{"type":"object"},"popupIconSizeTablet":{"type":"object"},"popupIconSizeMobile":{"type":"object"},"popupIconSizeTabletLandscape":{"type":"object"},"popupIconSizeMobileLandscape":{"type":"object"},"popupIconSizeLaptop":{"type":"object"},"popupIconSizeWideScreen":{"type":"object"},"popupIconColor":{"type":"string"},"popupIconBackgroundColor":{"type":"string"},"popupIconHoverColor":{"type":"string"},"popupIconBackgroundHoverColor":{"type":"string"},"popupIconPaddingDesktop":{"type":"object"},"popupIconPaddingTablet":{"type":"object"},"popupIconPaddingMobile":{"type":"object"},"popupIconPaddingTabletLandscape":{"type":"object"},"popupIconPaddingMobileLandscape":{"type":"object"},"popupIconPaddingLaptop":{"type":"object"},"popupIconPaddingWideScreen":{"type":"object"},"popupIconBorder":{"type":"object"},"popupIconBorderRadius":{"type":"object"},"hoverAnimationSwitch":{"type":"boolean","default":false},"hoverAnimation":{"type":"object","default":{"effect":{"label":"Grow","value":"grow"}}}}}'),f=({attributes:e,setAttributes:t,isEdit:o,teamRef:i})=>{const{style:n,name:l,designation:c,description:p,socialProfiles:b,showDescription:m,showSocialProfiles:u,enablePopup:y}=e;let h={};return o&&y&&(h.onClick=()=>s(i)),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"profile-body",children:[l&&(0,d.jsx)("h2",{className:"profile-title",...h,children:l}),o?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.RichText,{identifier:"designation",tagName:"p",className:"profile-designation",value:c,onChange:e=>{t({designation:e})},placeholder:(0,r.__)("Enter your Designation..","gutenkit-blocks-addon")}),m&&(0,d.jsx)(a.RichText,{identifier:"description",tagName:"p",className:"profile-content",value:p,onChange:e=>{t({description:e})},placeholder:(0,r.__)("Write your description..","gutenkit-blocks-addon")})]}):(0,d.jsxs)(d.Fragment,{children:[c&&(0,d.jsx)("p",{className:"profile-designation",children:c}),m&&p&&(0,d.jsx)("p",{className:"profile-content",children:p})]}),"hover_info"===n&&u&&(0,d.jsx)("div",{className:"profile-footer",children:(0,d.jsx)(g,{items:b})})]}),u&&"hover_info"!==n&&(0,d.jsx)("div",{className:"profile-footer",children:(0,d.jsx)(g,{items:b,isEdit:o})})]})},j=({attributes:e,setAttributes:t,isEdit:o,teamRef:i})=>{const{style:r,image:a,enablePopup:n}=e,{GkitImage:l}=window.GkitComponents,p=["default","centered_style","centered_style_details","long_height_details","long_height_details_hover","hover_info"],g=["overlay","overlay_details","long_height_hover","overlay_circle","overlay_circle_hover"],b={className:c()("gkit-team",{"profile-square-v":"centered_style"===r},{"profile-square-v square-v5 no_gutters":"centered_style_details"===r},{"profile-square-v square-v6 no_gutters":"long_height_details"===r},{"profile-square-v square-v6 square-v6-v2 no_gutters":"long_height_details_hover"===r},{"image-card-v2":"overlay_details"===r},{"image-card-v3 small-gutters":"long_height_hover"===r},{"style-circle gkit-team-img-fit":"overlay_circle"===r},{"image-card-v2 style-circle":"overlay_circle_hover"===r},{[`profile-square-v square-v4 gkit-team-style-${r}`]:"hover_info"===r})},u={className:c()({"profile-card":p.includes(r)},{[`gkit-team-style-${r}`]:"hover_info"!==r},{"profile-image-card gkit-team-img":g.includes(r)})},y={className:c()("profile-header","gkit-team-img",{"gkit-img-overlay gkit-team-img-block":"default"===r})};let h={};o&&n&&(h.onClick=()=>s(i));const v=p.includes(r)?(0,d.jsx)("div",{...y,children:(0,d.jsx)(l,{image:a,...h,className:"gkit-profile-img",isEdit:o})}):(0,d.jsx)(l,{image:a,...h,className:"gkit-profile-img",isEdit:o}),j=g.includes(r)?(0,d.jsx)("div",{className:"hover-area",children:(0,d.jsx)(f,{attributes:e,isEdit:o,teamRef:i})}):(0,d.jsx)(f,{attributes:e,setAttributes:t,isEdit:o,teamRef:i});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{...b,children:(0,d.jsxs)("div",{...u,children:[v,j]})}),(0,d.jsx)(m,{attributes:e,setAttributes:t,isEdit:o})]})},k=[{attributes:v.uK,save(e){const{attributes:t}=e,o=a.useBlockProps.save({className:c()({[`gkit-animation-${t?.hoverAnimation?.effect?.value}`]:t?.hoverAnimationSwitch})});return(0,d.jsx)("div",{...o,"data-team-popup":t.enablePopup,children:(0,d.jsx)(j,{attributes:t,isEdit:!1,teamRef:null})})}}],{team:x}=window.gutenkit.editorIcon;(0,i.registerBlockType)(v.UU,{edit:function({attributes:e,setAttributes:t,advancedControl:o,isSelected:i}){const{GkitStyle:r,GkitSuspense:l}=window.GkitComponents,{useDeviceType:s,useBlockStyles:g,useDeviceList:b}=window.GkitHelpers,m=b(),v=(0,n.useRef)(null),f=(0,a.useBlockProps)({className:c()({[`gkit-animation-${e?.hoverAnimation?.effect?.value}`]:e?.hoverAnimationSwitch}),ref:(0,y.useMergeRefs)([v])}),j=s();(0,n.useEffect)(()=>{const t=v.current;e.enablePopup?p(t,!0,!0):p(t,!1,!0)},[e.enablePopup,e.style]);const k=g(e,t,"blocksCSS",((e,t)=>{const{parseCSS:o,backgroundGenerator:i,getBoxValue:r,getBorderValue:a,getTypographyValue:n,getSliderValue:l,getBoxShadowValue:c,getColor:s}=window.GkitHelpers,p=`.${e?.blockClass}.wp-block-gutenkit-team`;return o([[{selector:`${p} .profile-card, ${p} .profile-image-card`,background:i(e?.background).background,"box-shadow":c(e.boxShadow),...a(e?.border),...r(e?.borderRadius,"border-radius")},{selector:`${p} .profile-card:hover, ${p} .profile-image-card:hover, ${p} .profile-card::before, ${p} .profile-image-card::before, ${p} div .profile-card .profile-body::before, ${p} .image-card-v3 .profile-image-card:after`,background:i(e?.backgroundHover).background},{selector:`${p} .profile-card:hover, ${p} .profile-image-card:hover`,"box-shadow":c(e.boxShadowHover),...a(e?.borderHover)},{selector:`${p} .profile-square-v.square-v6 .profile-card:hover`,"box-shadow":c(e.boxShadowHover)},{selector:`${p} .profile-square-v.square-v4 .profile-card .profile-body::before`,background:i(e?.backgroundHoverOverlay).background},{selector:`${p} .gkit-team :is(.profile-header > img, .profile-image-card img, .profile-image-card, .profile-header),\n ${p} .image-card-v2.style-circle .profile-image-card > img`,...r(e?.imageBorderRadius,"border-radius")},{selector:`${p} .profile-card .profile-header`,"box-shadow":c(e.imageShadow),...a(e?.imageBorder)},{selector:`${p} .profile-body .profile-title`,color:s(e.nameColor)},{selector:`${p} .profile-body .profile-title:hover, \n ${p} .profile-card .profile-title:hover, \n ${p} .profile-square-v .profile-card .profile-title:hover`,color:s(e.nameHoverColor)},{selector:`${p} .profile-body .profile-designation`,color:s(e.designationColor)},{selector:`${p} .profile-card:hover .profile-body .profile-designation, \n ${p} .gkit-team:hover .profile-body .profile-designation, \n ${p} profile-square-v .profile-card:hover .profile-designation`,color:s(e.designationHoverColor)},{selector:`${p} .profile-body .profile-content`,color:s(e.descriptionColor)},{selector:`${p} .gkit-team:hover .profile-body .profile-content,\n ${p} .profile-card:hover .profile-body .profile-content, \n ${p} .profile-image-card:hover .profile-body .profile-content`,color:s(e.descriptionHoverColor)},{selector:`${p} .gkit-team-social-list > li > a`,"box-shadow":c(e.iconboxShadow),...a(e?.iconBorder),...r(e?.iconBorderRadius,"border-radius")},{selector:`${p} .gkit-team-modal-content`,background:i(e?.popupBackground).background},{selector:`${p} .gkit-team-modal-title`,color:s(e.popupNameColor)},{selector:`${p} .gkit-team-modal-position`,color:s(e.popupDesignationColor)},{selector:`${p} .gkit-team-modal-description`,color:s(e.popupDescriptionColor)},{selector:`${p} .gkit-team-modal-list`,color:s(e.popupPhoneColor)},{selector:`${p} .gkit-team-modal-list a:hover`,color:s(e.popupPhoneHoverColor)},{selector:`${p} .gkit-team-modal-close`,fill:s(e.popupIconColor),"background-color":s(e.popupIconBackgroundColor),...a(e?.popupIconBorder),...r(e?.popupIconBorderRadius,"border-radius")},{selector:`${p} .gkit-team-modal-close:hover`,fill:s(e.popupIconHoverColor),"background-color":s(e.popupIconBackgroundHoverColor)},...(e=>{const t=e.map((e,t)=>[{selector:`${p} .gkit-team-social-list .gkit-team-social-list-item-${t} > a`,fill:s(e.color),"border-color":s(e.borderColor),"background-color":s(e.backgroundColor)},{selector:`${p} .gkit-team-social-list-item-${t} > a:hover`,fill:s(e.hoverColor),"border-color":s(e.hoverBorderColor),"background-color":s(e.hoverBackgroundColor)}]);let o=[];return t.forEach(e=>{o=[...o,...e]}),o})(e?.socialProfiles)],t=>[{selector:`${p} .gkit-team`,"text-align":e[`contentAlignment${t}`]},{selector:`${p} .profile-card, ${p} .profile-image-card`,...r(e[`padding${t}`],"padding")},{selector:`${p} .profile-body, ${p} .profile-square-v .profile-card .profile-body`,...r(e[`contentPadding${t}`],"padding")},{selector:`${p} .profile-footer, ${p} .profile-square-v .profile-card .profile-footer`,...r(e[`teamFooterPadding${t}`],"padding")},{selector:`${p} .gkit-team :is(.profile-header, .profile-image-card, .profile-header > img, .profile-image-card > img)`,height:l(e[`imageSize${t}`]),width:l(e[`imageSize${t}`])},{selector:`${p} .profile-card .profile-header`,...r(e[`imageMargin${t}`],"margin")},{selector:`${p} .profile-body .profile-title`,...n(e.nameTypography,t),"margin-bottom":l(e[`nameMargin${t}`])},{selector:`${p} .profile-body .profile-designation`,...n(e.designationTypography,t),...r(e[`designationMargin${t}`],"margin")},{selector:`${p} .profile-body .profile-content`,...n(e.descriptionTypography,t),"margin-bottom":l(e[`descriptionMargin${t}`])},{selector:`${p} .gkit-team-social-list > li > a`,"font-size":l(e[`iconSize${t}`]),...r(e[`iconMargin${t}`],"margin"),...r(!1===e?.showSocialProfilesHeight&&e[`teamSocialIconPadding${t}`],"padding"),height:l(e[`iconHeight${t}`]),width:l(e[`iconWidth${t}`])},{selector:`${p} .gkit-team-modal-title`,...n(e.popupNameTypography,t),"margin-bottom":l(e[`popupNameMargin${t}`])},{selector:`${p} .gkit-team-modal-position`,...n(e.popupDesignationTypography,t),"margin-bottom":l(e[`popupDesignationMargin${t}`])},{selector:`${p} .gkit-team-modal-description`,...n(e.popupDescriptionTypography,t),"margin-bottom":l(e[`popupDescriptionMargin${t}`])},{selector:`${p} .gkit-team-modal-close`,"font-size":l(e[`popupIconSize${t}`]),...r(e[`popupIconPadding${t}`],"padding")},{selector:`${p} .gkit-team-modal-list`,...n(e.popupPhoneTypography,t)},{selector:`${p} .image-card-v3 .profile-image-card:after`,height:l(e[`longHeightOverlay${t}`])}]],t)})(e,m));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r,{blocksCSS:k}),i&&(0,d.jsx)(l,{children:(0,d.jsx)(h,{attributes:e,setAttributes:t,device:j,advancedControl:o})}),(0,d.jsx)("div",{...f,"data-team-popup":e.enablePopup,children:(0,d.jsx)(u,{attributes:e,setAttributes:t,isEdit:!0,teamRef:v})})]})},icon:{src:x},save:function({attributes:e}){const t=a.useBlockProps.save({className:c()({[`gkit-animation-${e?.hoverAnimation?.effect?.value}`]:e?.hoverAnimationSwitch})});return(0,d.jsx)("div",{...t,"data-team-popup":e.enablePopup,children:(0,d.jsx)(u,{attributes:e,isEdit:!1,teamRef:null})})},deprecated:k})}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return i[e](o,o.exports,a),o.exports}a.m=i,e=[],a.O=(t,o,i,r)=>{if(!o){var n=1/0;for(p=0;p<e.length;p++){for(var[o,i,r]=e[p],l=!0,c=0;c<o.length;c++)(!1&r||n>=r)&&Object.keys(a.O).every(e=>a.O[e](o[c]))?o.splice(c--,1):(l=!1,r<n&&(n=r));if(l){e.splice(p--,1);var s=i();void 0!==s&&(t=s)}}return t}r=r||0;for(var p=e.length;p>0&&e[p-1][2]>r;p--)e[p]=e[p-1];e[p]=[o,i,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,o)=>(a.f[o](e,t),t),[])),a.u=e=>e+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},o="gutenkit-blocks-addon:",a.l=(e,i,r,n)=>{if(t[e])t[e].push(i);else{var l,c;if(void 0!==r)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var d=s[p];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+r){l=d;break}}l||(c=!0,(l=document.createElement("script")).charset="utf-8",a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",o+r),l.src=e),t[e]=[i];var g=(o,i)=>{l.onerror=l.onload=null,clearTimeout(b);var r=t[e];if(delete t[e],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach(e=>e(i)),o)return o(i)},b=setTimeout(g.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=g.bind(null,l.onerror),l.onload=g.bind(null,l.onload),c&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var i=o.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=o[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../../"})(),(()=>{var e={8326:0,5354:0};a.f.j=(t,o)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)o.push(i[2]);else if(5354!=t){var r=new Promise((o,r)=>i=e[t]=[o,r]);o.push(i[2]=r);var n=a.p+a.u(t),l=new Error;a.l(n,o=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;l.message="Loading chunk "+t+" failed.\n("+r+": "+n+")",l.name="ChunkLoadError",l.type=r,l.request=n,i[1](l)}},"chunk-"+t,t)}else e[t]=0},a.O.j=t=>0===e[t];var t=(t,o)=>{var i,r,[n,l,c]=o,s=0;if(n.some(t=>0!==e[t])){for(i in l)a.o(l,i)&&(a.m[i]=l[i]);if(c)var p=c(a)}for(t&&t(o);s<n.length;s++)r=n[s],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(p)},o=globalThis.webpackChunkgutenkit_blocks_addon=globalThis.webpackChunkgutenkit_blocks_addon||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=a.O(void 0,[5354],()=>a(8102));n=a.O(n)})();
💾 保存文件
← 返回文件管理器