import { RichText } from "@wordpress/block-editor";
import {
sanitizeURL,
BlockProps
} from "@essential-blocks/controls";
const save = ({ attributes }) => {
const {
blockId,
image,
imageCaption,
horizontalAlign,
verticalAlign,
verticalAlignCap2,
stylePreset,
captionStyle,
hoverEffect,
openInNewTab,
imageLink,
enableLink,
classHook,
imgSource
} = attributes;
if (imgSource !== 'custom') {
return null;
}
let imageURL = image.url;
const linkTarget = openInNewTab ? "_blank" : undefined;
if (imageURL === "") return null;
return (
\u8a18\u4e8b<\/p>\n
\u552f\u4e00\u306e\u6761\u4ef6\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u753b\u50cf\u304c\u5e38\u306b\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u753b\u9762\u306e\u7aef\u306b\u3042\u308b\u4ed6\u306e\u30ea\u30fc\u30eb\u306e\u30db\u30fc\u30e0\u306b\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u7279\u5b9a\u306e\u5834\u6240\u306b\u512a\u308c\u305f\u91e3\u308a\u7aff\u3092\u7f6e\u304f\u306b\u306f\u3001\u305d\u308c\u3089\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30fc\u30eb\u306e\u30b9\u30c6\u30c3\u30d7 1 \u3068 5 \u306e\u65b0\u3057\u3044\u6f01\u5e2b\u30b7\u30f3\u30dc\u30eb\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30d5\u30e9\u30a4 \u30d5\u30a3\u30c3\u30b7\u30f3\u30b0 \u30dc\u30fc\u30ca\u30b9 \u30b2\u30fc\u30e0\u304c\u6b21\u306e\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u753b\u9762\u3067\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<\/p>\n
\u6d77\u6d0b\u751f\u7269\u3092\u6355\u307e\u3048\u306b\u51fa\u304b\u3051\u308b\u3053\u3068\u306b\u8208\u5473\u304c\u306a\u304f\u3066\u3082\u3001\u305d\u306e\u30e9\u30d9\u30eb\u306f\u304d\u3063\u3068\u7686\u3092\u9b45\u4e86\u3059\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u306e\u305f\u3081\u3001\u58ee\u5927\u306a\u30b9\u30ed\u30c3\u30c8\u30b2\u30fc\u30e0\u306b\u306f\u91e3\u308a\u306e\u30b9\u30ea\u30eb\u3092\u30c6\u30fc\u30de\u306b\u3057\u305f\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u5bd2\u3055\u3084\u6691\u3055\u304b\u3089\u591a\u69d8\u306a\u751f\u6d3b\u307e\u3067\u3001\u7c73\u56fd\u3067\u306e\u91e3\u308a\u306f\u7d50\u8ad6\u3092\u51fa\u3059\u3053\u3068\u3092\u597d\u307f\u307e\u3057\u305f\u3002\u305d\u308c\u3092\u4f53\u9a13\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u5b89\u5168\u306a\u74b0\u5883\u3067\u65b0\u3057\u3044\u30b9\u30ed\u30c3\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30c3\u30c8\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0\u306e1\u3064\u306e\u30da\u30a4\u30e9\u30a4\u30f3\u3067\u7372\u5f97\u3067\u304d\u308b\u8cde\u91d1\u306f\u3001\u30da\u30a4\u30e9\u30a4\u30f3\u3054\u3068\u306b\u9078\u629e\u3057\u305f\u91d1\u984d\u306e500\u500d\u306e\u4fa1\u5024\u304c\u3042\u308b\u30dc\u30fc\u30ca\u30b9\u3067\u3042\u308a\u3001\u59a5\u5f53\u306a\u91d1\u984d\u3067\u3059\u304c\u3001\u3053\u308c\u307e\u3067\u898b\u305f\u4e2d\u3067\u6700\u5927\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5e78\u3044\u306a\u3053\u3068\u306b\u3001\u30ea\u30fc\u30eb\u3067\u4f7f\u7528\u3059\u308b\u6700\u5927\u306e\u30b7\u30f3\u30dc\u30eb\u3067\u3042\u308b\u65b0\u3057\u3044\u30b7\u30f3\u30dc\u30eb\u306f\u3001\u7a4d\u307f\u91cd\u306d\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
\u5f7c\u306f\u65b0\u3057\u3044\u30c6\u30fc\u30de\u306b\u3074\u3063\u305f\u308a\u5408\u3046\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u53c2\u52a0\u8005\u306f\u901a\u5e38\u3001\u6c34\u8def\u3001\u659c\u9762\u3001\u305d\u3057\u3066\u30a2\u30e9\u30b9\u30ab\u306e\u81ea\u7136\u3067\u6709\u540d\u306a\u6728\u3092\u76ee\u306b\u3057\u307e\u3059\u3002\u30a2\u30e9\u30b9\u30ab\u30f3\u30fb\u30a2\u30f3\u30b0\u30ea\u30f3\u30b0\u30fb\u30b9\u30ed\u30c3\u30c8\u3067\u306f\u3001\u65b0\u3057\u3044\u30af\u30ec\u30a4\u30b8\u30fc\u30b7\u30f3\u30dc\u30eb\u306f\u30a2\u30e9\u30b9\u30ab\u30f3\u30fb\u30a2\u30f3\u30b0\u30ea\u30f3\u30b0\u30fb\u30b7\u30f3\u30dc\u30eb\u30a2\u30a4\u30b3\u30f3\u3067\u3059\u3002\u3069\u306e\u30ef\u30a4\u30eb\u30c9\u30b7\u30f3\u30dc\u30eb\u304c\u4ed6\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u4ee3\u308f\u308a\u306b\u306a\u308b\u304b\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30f3\u30dc\u30eb\u3068\u30a8\u30af\u30b9\u30c8\u30e9\u30b7\u30f3\u30dc\u30eb\u3092\u8003\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n
\u30ea\u30fc\u30eb\u306e\u7279\u5b9a\u306e\u57fa\u6e96\u3082\u4f4d\u7f6e\u306e\u30eb\u30fc\u30eb\u3082\u30bc\u30ed\u3002\u30b9\u30ad\u30e3\u30c3\u30bf\u30fc\u304c3\u3064\u3042\u308c\u3070\u3001\u3042\u306a\u305f\u306f\u660e\u3089\u304b\u306b\u30b2\u30fc\u30e0\u306b\u53c2\u52a0\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b2\u30fc\u30e0\u3067\u306f15\u56de\u306e\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u304c\u63d0\u4f9b\u3055\u308c\u3001\u5404\u30b9\u30d4\u30f3\u4e2d\u306e\u52dd\u5229\u306f\u81ea\u52d5\u7684\u306b2\u500d\u306b\u306a\u308a\u307e\u3059\u30021\uff5e2\u500d\u306e\u30de\u30eb\u30c1\u30d7\u30e9\u30a4\u30e4\u30fc\u306f\u3001\u30cf\u30a4\u30b7\u30f3\u30dc\u30eb\u3001\u30ed\u30fc\u30b7\u30f3\u30dc\u30eb\u3001\u30ef\u30a4\u30eb\u30c9\u30b3\u30f3\u30d3\u30cd\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u3042\u306a\u305f\u304c\u9078\u3093\u3060\u3082\u306e\u306b\u95a2\u9023\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u964d\u96e8\u6642\u306e\u5f13\u5f62\u30d0\u30b9\u3092\u91e3\u308b\u30c1\u30e3\u30f3\u30b9\u304c\u3042\u308a\u3001\u30ed\u30c3\u30af\u30b5\u30fc\u30e2\u30f3\u3092\u91e3\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002ADF&G\u304b\u3089\u4e88\u7d04\u3067\u304d\u308b\u516c\u5171\u306e\u904a\u5177\u65bd\u8a2d\u3082\u3042\u308a\u307e\u3059\u3002\u30a2\u30e9\u30b9\u30ab\u5dde\u30d1\u30fc\u30de\u30fc\u306b\u3042\u308b\u5c0f\u3055\u306a\u6e56\u306b\u306f\u3001\u516c\u5171\u306e\u904a\u5177\u65bd\u8a2d\uff08\u6599\u91d1\u6240\uff09\u304c\u3042\u308a\u307e\u3059\u3002\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u30c9\u30e9\u30a4\u30d6\u306e\u6e56\u306e\u5357\u5074\u306b\u306f\u5927\u304d\u306a\u30dc\u30fc\u30c8\u306e\u653e\u6d41\u53e3\u304c\u3042\u308a\u3001\u99d0\u8eca\u5834\uff08\u7d043\u53f0\u306e\u8eca\u304c\u99d0\u8eca\u3067\u304d\u308b\u5834\u6240\uff09\u304c\u3042\u308a\u3001\u30d0\u30e9\u30fc\u30c9\u30d7\u30c3\u30b7\u30e5\u306e\u5317\u5074\u306b\u3042\u308b\u65b0\u9bae\u306a\u5ddd\u307e\u3067\u6b69\u3044\u3066\u884c\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30e9\u30b9\u30ab\u5dde\u30d2\u30fc\u30ea\u30fc\u306b\u3042\u308b\u964d\u96e8\u6642\u306e\u5f13\u5f62\u30de\u30b9\u3092\u91e3\u308b\u30b9\u30dd\u30c3\u30c8\u306f\u3001\u30c7\u30ca\u30ea\u56fd\u7acb\u516c\u5712\u306e\u5165\u308a\u53e3\u306e\u3059\u3050\u5317\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u7121\u6599\u30c4\u30a4\u30b9\u30c8\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u7372\u5f97\u3057\u305f\u30dd\u30a4\u30f3\u30c8\u306f\u901a\u5e382\u500d\u306b\u306a\u308a\u3001\u6700\u65b0\u306e\u7121\u6599\u30c4\u30a4\u30b9\u30c8\u30a2\u30a4\u30b3\u30f3\u3092\u898b\u3064\u3051\u308b\u305f\u3081\u306b\u3055\u3089\u306b\u52aa\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30f3\u30d3\u30cd\u30fc\u30b7\u30e7\u30f3\u30d1\u30c3\u30af\u306f\u3001\u8a2a\u554f\u8005\u306b11\u6708\u4e0b\u65ec\u304b\u30899\u6708\u4e2d\u65ec\u307e\u3067\u306e3\uff5e5\u304b\u6708\u307e\u305f\u306f\u305d\u308c\u4ee5\u4e0a\u306e\u65c5\u884c\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3092\u6c7a\u5b9a\u3059\u308b\u65b0\u3057\u3044\u67d4\u8edf\u6027\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30a2\u30e9\u30b9\u30ab\u65c5\u884c\u306e\u7b2c\u4e00\u306e\u76ee\u7684\u304c\u91e3\u308a\u3067\u3042\u308c\u3070\u3001\u7d20\u6674\u3089\u3057\u3044\u91e3\u308a\u30ea\u30be\u30fc\u30c8\u306b\u6ede\u5728\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u6ede\u5728\u4e2d\u306f\u3001\u4ed6\u306e\u91e3\u308a\u4eba\u306e\u55a7\u9a12\u304b\u3089\u96e2\u308c\u3066\u3001\u3042\u306a\u305f\u3068\u4ed6\u306e\u30ea\u30be\u30fc\u30c8\u306e\u5bbf\u6cca\u5ba2\u3060\u3051\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u4f11\u6687\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\u3002\u5f7c\u3089\u306f\u3042\u306a\u305f\u306e\u8377\u9020\u308a\u3092\u624b\u4f1d\u3044\u3001\u3042\u306a\u305f\u306f\u5927\u5207\u306a\u91e3\u308a\u91dd\u3092\u30dc\u30fc\u30c8\u3067\u5bb6\u65cf\u306e\u3082\u3068\u306b\u6301\u3061\u5e30\u308a\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u4e16\u754c\u30af\u30e9\u30b9\u306e\u91e3\u308a\u30ed\u30c3\u30b8\u306f\u3001\u7802\u6f20\u306e\u6700\u9ad8\u306e\u8d05\u6ca2\u3067\u3059\u3002<\/p>\n
\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u306a\u308b\u9b5a\u7a2e\u306f\u30ad\u30f3\u30b0\u30b5\u30fc\u30e2\u30f3\u3067\u3001\u30b3\u30db\u30d5\u30a3\u30c3\u30b7\u30e5\u3001\u30aa\u30d2\u30e7\u30a6\u3001\u30ea\u30f3\u30b3\u30c3\u30c9\u3001\u305d\u306e\u4ed6\u7d0420\u7a2e\u985e\u304c\u91e3\u308c\u307e\u3059\u3002\u8239\u306b\u306f\u5408\u8a085\u4eba\u306e\u4e57\u5ba2\u304c\u4e57\u8239\u3067\u304d\u3001\u30d7\u30ed\u4ed5\u69d8\u306e\u8239\u5ba4\u3001\u30b9\u30ab\u30a4\u30b5\u30b9\u30da\u30f3\u30b7\u30e7\u30f3\u30c1\u30a7\u30a2\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u7a7a\u9593\u304c\u5099\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u65b0\u3057\u3044\u30db\u30c6\u30eb\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30b2\u30fc\u30e0\u30d5\u30a3\u30c3\u30b7\u30e5\u3001\u30c8\u30ed\u30d5\u30a3\u30fc\u30b5\u30a4\u30ba\u306e\u30ec\u30a4\u30f3\u30dc\u30fc\u30d0\u30b9\u3001\u30b9\u30ce\u30fc\u30a4\u30ef\u30ca\u3001\u30ec\u30a4\u30af\u30c8\u30e9\u30a6\u30c8\u3001\u30b0\u30ec\u30a4\u30ea\u30f3\u30b0\u3001\u30ce\u30fc\u30b6\u30f3\u30d1\u30a4\u30af\u306b\u5bfe\u3057\u3066\u30ad\u30e3\u30c3\u30c1\u30a2\u30f3\u30c9\u30ea\u30ea\u30fc\u30b9\u30dd\u30ea\u30b7\u30fc\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u30d9\u30cb\u30b6\u30b1\u3001\u30b3\u30db\u30b5\u30fc\u30e2\u30f3\u3001\u30af\u30a4\u30fc\u30f3\u30b5\u30fc\u30e2\u30f3\u3082\u6b63\u78ba\u306b\u6355\u7372\u3067\u304d\u307e\u3059\u3002\u30a2\u30e9\u30b9\u30ab\u30f3\u30d5\u30a3\u30c3\u30b7\u30f3\u30b0\u30b9\u30ed\u30c3\u30c8\u3067\u306f\u3001243\u901a\u308a\u306e\u52dd\u5229\u306e\u30c1\u30e3\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u5e73\u65e5\u306b\u51fa\u767a\u3059\u308b\u591a\u304f\u306e\u65c5\u884c\u8005\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304c\u898b\u3064\u304b\u308b\u3067\u3057\u3087\u3046\u3002\u65e9\u671d\u5230\u7740 \u30a2\u30e9\u30b9\u30ab\u306b\u306f\u65e9\u671d\u306b\u5230\u7740\u3057\u3001\u6b63\u5348\u307e\u3067\u306b\u91e3\u308a\u3084\u72e9\u731f\u306e\u76ee\u7684\u5730\u3078\u51fa\u767a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u591c\u9593\u5230\u7740\u306e\u5834\u5408\u306f\u57fa\u672c\u7684\u306b\u30ed\u30c3\u30b8\u3067\u306e\u5bbf\u6cca\u304c\u5fc5\u8981\u3067\u3001\u590f\u306e\u6599\u91d1\u306f\u901a\u5e381\u6cca\u3042\u305f\u308a\u7d04125\u30c9\u30eb\u3067\u3059\u3002<\/p>\n