From 965b708b76fd1b27fb1ba737273134dcf118fdae Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 8 Apr 2026 16:46:25 +0200 Subject: [PATCH] REBUILD --- .../build/audio-player/index.css | 17 +- .../build/audio-player/index.css.map | 1 + .../carhop-blocks/build/audio-player/index.js | 590 +++++++++++- .../build/audio-player/index.js.map | 1 + .../build/audio-player/style-index.css | 45 +- .../build/audio-player/style-index.css.map | 1 + .../carhop-blocks/build/audio-player/view.js | 38 +- .../build/audio-player/view.js.map | 1 + .../carhop-blocks/build/card-grid/index.css | 36 +- .../build/card-grid/index.css.map | 1 + .../carhop-blocks/build/card-grid/index.js | 413 +++++++- .../build/card-grid/index.js.map | 1 + .../build/card-grid/style-index.css | 28 +- .../build/card-grid/style-index.css.map | 1 + plugins/carhop-blocks/build/card-grid/view.js | 7 + plugins/carhop-blocks/build/chapo/index.css | 14 +- .../carhop-blocks/build/chapo/index.css.map | 1 + plugins/carhop-blocks/build/chapo/index.js | 365 +++++++- .../carhop-blocks/build/chapo/index.js.map | 1 + .../carhop-blocks/build/chapo/style-index.css | 17 +- .../build/chapo/style-index.css.map | 1 + plugins/carhop-blocks/build/chapo/view.js | 33 +- plugins/carhop-blocks/build/chapo/view.js.map | 1 + .../build/chapter-section/index.css | 23 +- .../build/chapter-section/index.css.map | 1 + .../build/chapter-section/index.js | 878 ++++++++++++++++- .../build/chapter-section/index.js.map | 1 + .../build/chapter-section/style-index.css | 9 +- .../build/chapter-section/style-index.css.map | 1 + .../build/chapter-section/view.js | 7 + .../build/company-timeline/index.css | 31 +- .../build/company-timeline/index.css.map | 1 + .../build/company-timeline/index.js | 604 +++++++++++- .../build/company-timeline/index.js.map | 1 + .../build/company-timeline/style-index.css | 175 +++- .../company-timeline/style-index.css.map | 1 + .../build/company-timeline/view.js | 69 +- .../build/company-timeline/view.js.map | 1 + .../carhop-blocks/build/content-box/index.css | 25 +- .../build/content-box/index.css.map | 1 + .../carhop-blocks/build/content-box/index.js | 881 +++++++++++++++++- .../build/content-box/index.js.map | 1 + .../build/content-box/style-index.css | 3 + .../carhop-blocks/build/content-box/view.js | 7 + .../build/content-card/index.css | 3 + .../carhop-blocks/build/content-card/index.js | 494 +++++++++- .../build/content-card/index.js.map | 1 + .../build/content-card/style-index.css | 32 +- .../build/content-card/style-index.css.map | 1 + .../carhop-blocks/build/content-card/view.js | 7 + .../carhop-blocks/build/cta-group/index.css | 35 +- .../build/cta-group/index.css.map | 1 + .../carhop-blocks/build/cta-group/index.js | 385 +++++++- .../build/cta-group/index.js.map | 1 + .../build/cta-group/style-index.css | 31 +- .../build/cta-group/style-index.css.map | 1 + plugins/carhop-blocks/build/cta-group/view.js | 7 + plugins/carhop-blocks/build/cta/index.js.map | 2 +- .../carhop-blocks/build/cta/style-index.css | 42 +- .../build/cta/style-index.css.map | 1 + plugins/carhop-blocks/build/cta/view.js | 7 + .../build/dbmob-archives/index.css | 3 + .../build/dbmob-archives/index.js | 313 ++++++- .../build/dbmob-archives/index.js.map | 1 + .../build/dbmob-archives/style-index.css | 3 + .../build/dbmob-archives/view.js | 88 +- .../build/dbmob-archives/view.js.map | 1 + .../build/decorative-shapes/index.css | 3 + .../build/decorative-shapes/index.js | 527 ++++++++++- .../build/decorative-shapes/index.js.map | 1 + .../build/decorative-shapes/style-index.css | 36 +- .../decorative-shapes/style-index.css.map | 1 + .../build/decorative-shapes/view.js | 7 + .../src/decouvrez-prochainement/index.js | 287 +++++- .../src/decouvrez-prochainement/index.js.map | 1 + .../decouvrez-prochainement/style-index.css | 26 +- .../style-index.css.map | 1 + .../build/document-card/index.css | 3 + .../build/document-card/index.js | 682 +++++++++++++- .../build/document-card/index.js.map | 1 + .../build/document-card/style-index.css | 3 + .../build/explore-tags/index.css | 14 +- .../build/explore-tags/index.css.map | 1 + .../carhop-blocks/build/explore-tags/index.js | 359 ++++++- .../build/explore-tags/index.js.map | 1 + .../build/explore-tags/style-index.css | 17 +- .../build/explore-tags/style-index.css.map | 1 + .../carhop-blocks/build/explore-tags/view.js | 7 + .../build/featured-news/index.css | 3 + .../build/featured-news/index.js | 370 +++++++- .../build/featured-news/index.js.map | 1 + .../build/featured-news/style-index.css | 11 +- .../build/featured-news/style-index.css.map | 1 + .../carhop-blocks/build/featured-news/view.js | 71 +- .../build/featured-news/view.js.map | 1 + .../build/front-header/index.css | 9 +- .../build/front-header/index.css.map | 1 + .../carhop-blocks/build/front-header/index.js | 394 +++++++- .../build/front-header/index.js.map | 1 + .../build/front-header/style-index.css | 3 + .../carhop-blocks/build/front-header/view.js | 7 + plugins/carhop-blocks/build/heading/index.css | 3 + plugins/carhop-blocks/build/heading/index.js | 417 ++++++++- .../carhop-blocks/build/heading/index.js.map | 1 + .../build/heading/style-index.css | 3 + plugins/carhop-blocks/build/heading/view.js | 7 + .../build/highlight-timeline-step/index.css | 3 + .../build/highlight-timeline-step/index.js | 414 +++++++- .../highlight-timeline-step/index.js.map | 1 + .../highlight-timeline-step/style-index.css | 36 +- .../style-index.css.map | 1 + .../build/highlight-timeline-step/view.js | 7 + .../build/highlight-timeline/index.css | 3 + .../build/highlight-timeline/index.js | 375 +++++++- .../build/highlight-timeline/index.js.map | 1 + .../build/highlight-timeline/style-index.css | 18 +- .../highlight-timeline/style-index.css.map | 1 + .../build/highlight-timeline/view.js | 63 +- .../build/highlight-timeline/view.js.map | 1 + .../carhop-blocks/build/image-stack/index.css | 54 +- .../build/image-stack/index.css.map | 1 + .../carhop-blocks/build/image-stack/index.js | 603 +++++++++++- .../build/image-stack/index.js.map | 1 + .../build/image-stack/style-index.css | 25 +- .../build/image-stack/style-index.css.map | 1 + .../carhop-blocks/build/latest-news/index.css | 14 +- .../build/latest-news/index.css.map | 1 + .../carhop-blocks/build/latest-news/index.js | 316 ++++++- .../build/latest-news/index.js.map | 1 + .../build/latest-news/style-index.css | 3 + .../carhop-blocks/build/latest-news/view.js | 30 +- .../build/latest-news/view.js.map | 1 + .../build/localisation-map/index.js | 700 +++++++++++++- .../build/localisation-map/index.js.map | 1 + .../build/localisation-map/style-index.css | 26 +- .../localisation-map/style-index.css.map | 1 + .../build/localisation-map/view.js | 400 +++++++- .../build/localisation-map/view.js.map | 1 + .../build/narrative-card/index.css | 35 +- .../build/narrative-card/index.css.map | 1 + .../build/narrative-card/index.js | 616 +++++++++++- .../build/narrative-card/index.js.map | 1 + .../build/narrative-card/style-index.css | 40 +- .../build/narrative-card/style-index.css.map | 1 + .../build/narrative-card/view.js | 7 + .../build/notice-panel/index.css | 3 + .../carhop-blocks/build/notice-panel/index.js | 402 +++++++- .../build/notice-panel/index.js.map | 1 + .../build/notice-panel/style-index.css | 3 + .../carhop-blocks/build/notice-panel/view.js | 7 + .../build/our-collection/index.css | 14 +- .../build/our-collection/index.css.map | 1 + .../build/our-collection/index.js | 502 +++++++++- .../build/our-collection/index.js.map | 1 + .../build/our-collection/style-index.css | 3 + .../build/our-collection/view.js | 33 +- .../build/our-collection/view.js.map | 1 + .../build/picture-of-the-day/index.css | 14 +- .../build/picture-of-the-day/index.css.map | 1 + .../build/picture-of-the-day/index.js | 399 +++++++- .../build/picture-of-the-day/index.js.map | 1 + .../build/picture-of-the-day/style-index.css | 17 +- .../picture-of-the-day/style-index.css.map | 1 + .../build/picture-of-the-day/view.js | 7 + .../build/press-ressources/index.css | 14 +- .../build/press-ressources/index.css.map | 1 + .../build/press-ressources/index.js | 328 ++++++- .../build/press-ressources/index.js.map | 1 + .../build/press-ressources/style-index.css | 17 +- .../press-ressources/style-index.css.map | 1 + .../build/press-ressources/view.js | 29 +- .../build/press-ressources/view.js.map | 1 + .../build/scroll-story-block/index.css | 35 +- .../build/scroll-story-block/index.css.map | 1 + .../build/scroll-story-block/index.js | 402 +++++++- .../build/scroll-story-block/index.js.map | 1 + .../build/scroll-story-block/style-index.css | 40 +- .../scroll-story-block/style-index.css.map | 1 + .../build/scroll-story-block/view.js | 106 ++- .../build/scroll-story-block/view.js.map | 1 + .../carhop-blocks/build/see-also/index.css | 3 + plugins/carhop-blocks/build/see-also/index.js | 354 ++++++- .../carhop-blocks/build/see-also/index.js.map | 1 + .../build/see-also/style-index.css | 3 + plugins/carhop-blocks/build/see-also/view.js | 7 + .../build/story-timeline-step/index.css | 3 + .../build/story-timeline-step/index.js | 409 +++++++- .../build/story-timeline-step/index.js.map | 1 + .../build/story-timeline-step/style-index.css | 3 + .../build/story-timeline-step/view.js | 7 + .../build/story-timeline/index.css | 3 + .../build/story-timeline/index.js | 386 +++++++- .../build/story-timeline/index.js.map | 1 + .../build/story-timeline/style-index.css | 3 + .../build/story-timeline/view.js | 59 +- .../build/story-timeline/view.js.map | 1 + .../build/subscribe-infolettre/index.css | 14 +- .../build/subscribe-infolettre/index.css.map | 1 + .../build/subscribe-infolettre/index.js | 395 +++++++- .../build/subscribe-infolettre/index.js.map | 1 + .../subscribe-infolettre/style-index.css | 3 + .../build/subscribe-infolettre/view.js | 7 + .../carhop-blocks/build/tab-group/index.css | 14 +- .../build/tab-group/index.css.map | 1 + .../carhop-blocks/build/tab-group/index.js | 396 +++++++- .../build/tab-group/index.js.map | 1 + .../build/tab-group/style-index.css | 40 +- .../build/tab-group/style-index.css.map | 1 + plugins/carhop-blocks/build/tab-group/view.js | 39 +- .../carhop-blocks/build/tab-group/view.js.map | 1 + plugins/carhop-blocks/build/tab/index.css | 14 +- plugins/carhop-blocks/build/tab/index.css.map | 1 + plugins/carhop-blocks/build/tab/index.js | 455 ++++++++- plugins/carhop-blocks/build/tab/index.js.map | 1 + .../carhop-blocks/build/tab/style-index.css | 17 +- .../build/tab/style-index.css.map | 1 + plugins/carhop-blocks/build/tab/view.js | 33 +- plugins/carhop-blocks/build/tab/view.js.map | 1 + plugins/carhop-blocks/build/variations.css | 93 +- .../carhop-blocks/build/variations.css.map | 1 + plugins/carhop-blocks/build/variations.js | 567 ++++++++++- plugins/carhop-blocks/build/variations.js.map | 1 + 222 files changed, 18525 insertions(+), 91 deletions(-) create mode 100644 plugins/carhop-blocks/build/audio-player/index.css.map create mode 100644 plugins/carhop-blocks/build/audio-player/index.js.map create mode 100644 plugins/carhop-blocks/build/audio-player/style-index.css.map create mode 100644 plugins/carhop-blocks/build/audio-player/view.js.map create mode 100644 plugins/carhop-blocks/build/card-grid/index.css.map create mode 100644 plugins/carhop-blocks/build/card-grid/index.js.map create mode 100644 plugins/carhop-blocks/build/card-grid/style-index.css.map create mode 100644 plugins/carhop-blocks/build/chapo/index.css.map create mode 100644 plugins/carhop-blocks/build/chapo/index.js.map create mode 100644 plugins/carhop-blocks/build/chapo/style-index.css.map create mode 100644 plugins/carhop-blocks/build/chapo/view.js.map create mode 100644 plugins/carhop-blocks/build/chapter-section/index.css.map create mode 100644 plugins/carhop-blocks/build/chapter-section/index.js.map create mode 100644 plugins/carhop-blocks/build/chapter-section/style-index.css.map create mode 100644 plugins/carhop-blocks/build/company-timeline/index.css.map create mode 100644 plugins/carhop-blocks/build/company-timeline/index.js.map create mode 100644 plugins/carhop-blocks/build/company-timeline/style-index.css.map create mode 100644 plugins/carhop-blocks/build/company-timeline/view.js.map create mode 100644 plugins/carhop-blocks/build/content-box/index.css.map create mode 100644 plugins/carhop-blocks/build/content-box/index.js.map create mode 100644 plugins/carhop-blocks/build/content-card/index.js.map create mode 100644 plugins/carhop-blocks/build/content-card/style-index.css.map create mode 100644 plugins/carhop-blocks/build/cta-group/index.css.map create mode 100644 plugins/carhop-blocks/build/cta-group/index.js.map create mode 100644 plugins/carhop-blocks/build/cta-group/style-index.css.map create mode 100644 plugins/carhop-blocks/build/cta/style-index.css.map create mode 100644 plugins/carhop-blocks/build/dbmob-archives/index.js.map create mode 100644 plugins/carhop-blocks/build/dbmob-archives/view.js.map create mode 100644 plugins/carhop-blocks/build/decorative-shapes/index.js.map create mode 100644 plugins/carhop-blocks/build/decorative-shapes/style-index.css.map create mode 100644 plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js.map create mode 100644 plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css.map create mode 100644 plugins/carhop-blocks/build/document-card/index.js.map create mode 100644 plugins/carhop-blocks/build/explore-tags/index.css.map create mode 100644 plugins/carhop-blocks/build/explore-tags/index.js.map create mode 100644 plugins/carhop-blocks/build/explore-tags/style-index.css.map create mode 100644 plugins/carhop-blocks/build/featured-news/index.js.map create mode 100644 plugins/carhop-blocks/build/featured-news/style-index.css.map create mode 100644 plugins/carhop-blocks/build/featured-news/view.js.map create mode 100644 plugins/carhop-blocks/build/front-header/index.css.map create mode 100644 plugins/carhop-blocks/build/front-header/index.js.map create mode 100644 plugins/carhop-blocks/build/heading/index.js.map create mode 100644 plugins/carhop-blocks/build/highlight-timeline-step/index.js.map create mode 100644 plugins/carhop-blocks/build/highlight-timeline-step/style-index.css.map create mode 100644 plugins/carhop-blocks/build/highlight-timeline/index.js.map create mode 100644 plugins/carhop-blocks/build/highlight-timeline/style-index.css.map create mode 100644 plugins/carhop-blocks/build/highlight-timeline/view.js.map create mode 100644 plugins/carhop-blocks/build/image-stack/index.css.map create mode 100644 plugins/carhop-blocks/build/image-stack/index.js.map create mode 100644 plugins/carhop-blocks/build/image-stack/style-index.css.map create mode 100644 plugins/carhop-blocks/build/latest-news/index.css.map create mode 100644 plugins/carhop-blocks/build/latest-news/index.js.map create mode 100644 plugins/carhop-blocks/build/latest-news/view.js.map create mode 100644 plugins/carhop-blocks/build/localisation-map/index.js.map create mode 100644 plugins/carhop-blocks/build/localisation-map/style-index.css.map create mode 100644 plugins/carhop-blocks/build/localisation-map/view.js.map create mode 100644 plugins/carhop-blocks/build/narrative-card/index.css.map create mode 100644 plugins/carhop-blocks/build/narrative-card/index.js.map create mode 100644 plugins/carhop-blocks/build/narrative-card/style-index.css.map create mode 100644 plugins/carhop-blocks/build/notice-panel/index.js.map create mode 100644 plugins/carhop-blocks/build/our-collection/index.css.map create mode 100644 plugins/carhop-blocks/build/our-collection/index.js.map create mode 100644 plugins/carhop-blocks/build/our-collection/view.js.map create mode 100644 plugins/carhop-blocks/build/picture-of-the-day/index.css.map create mode 100644 plugins/carhop-blocks/build/picture-of-the-day/index.js.map create mode 100644 plugins/carhop-blocks/build/picture-of-the-day/style-index.css.map create mode 100644 plugins/carhop-blocks/build/press-ressources/index.css.map create mode 100644 plugins/carhop-blocks/build/press-ressources/index.js.map create mode 100644 plugins/carhop-blocks/build/press-ressources/style-index.css.map create mode 100644 plugins/carhop-blocks/build/press-ressources/view.js.map create mode 100644 plugins/carhop-blocks/build/scroll-story-block/index.css.map create mode 100644 plugins/carhop-blocks/build/scroll-story-block/index.js.map create mode 100644 plugins/carhop-blocks/build/scroll-story-block/style-index.css.map create mode 100644 plugins/carhop-blocks/build/scroll-story-block/view.js.map create mode 100644 plugins/carhop-blocks/build/see-also/index.js.map create mode 100644 plugins/carhop-blocks/build/story-timeline-step/index.js.map create mode 100644 plugins/carhop-blocks/build/story-timeline/index.js.map create mode 100644 plugins/carhop-blocks/build/story-timeline/view.js.map create mode 100644 plugins/carhop-blocks/build/subscribe-infolettre/index.css.map create mode 100644 plugins/carhop-blocks/build/subscribe-infolettre/index.js.map create mode 100644 plugins/carhop-blocks/build/tab-group/index.css.map create mode 100644 plugins/carhop-blocks/build/tab-group/index.js.map create mode 100644 plugins/carhop-blocks/build/tab-group/style-index.css.map create mode 100644 plugins/carhop-blocks/build/tab-group/view.js.map create mode 100644 plugins/carhop-blocks/build/tab/index.css.map create mode 100644 plugins/carhop-blocks/build/tab/index.js.map create mode 100644 plugins/carhop-blocks/build/tab/style-index.css.map create mode 100644 plugins/carhop-blocks/build/tab/view.js.map create mode 100644 plugins/carhop-blocks/build/variations.css.map create mode 100644 plugins/carhop-blocks/build/variations.js.map diff --git a/plugins/carhop-blocks/build/audio-player/index.css b/plugins/carhop-blocks/build/audio-player/index.css index 2dbd3ae..bc22937 100644 --- a/plugins/carhop-blocks/build/audio-player/index.css +++ b/plugins/carhop-blocks/build/audio-player/index.css @@ -1 +1,16 @@ -.wp-block-create-block-audio-player .audio-player-preview{background:#f0f0f0;border-radius:8px;padding:16px}.wp-block-create-block-audio-player .audio-player-preview .plyr{max-width:100%} +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/audio-player/editor.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * Styles for the block editor + */ +.wp-block-create-block-audio-player .audio-player-preview { + padding: 16px; + background: #f0f0f0; + border-radius: 8px; +} +.wp-block-create-block-audio-player .audio-player-preview .plyr { + max-width: 100%; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/index.css.map b/plugins/carhop-blocks/build/audio-player/index.css.map new file mode 100644 index 0000000..5a5e9f1 --- /dev/null +++ b/plugins/carhop-blocks/build/audio-player/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"audio-player/index.css","mappings":";;;AAAA;;EAAA;AAIC;EACC;EACA;EACA;AAAF;AAGE;EACC;AADH,C","sources":["webpack://carhop-blocks/./src/audio-player/editor.scss"],"sourcesContent":["/**\n * Styles for the block editor\n */\n.wp-block-create-block-audio-player {\n\t.audio-player-preview {\n\t\tpadding: 16px;\n\t\tbackground: #f0f0f0;\n\t\tborder-radius: 8px;\n\t\t\n\t\t// Ensure Plyr player has appropriate styling in the editor\n\t\t.plyr {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/index.js b/plugins/carhop-blocks/build/audio-player/index.js index bd8a4e3..cd5ec18 100644 --- a/plugins/carhop-blocks/build/audio-player/index.js +++ b/plugins/carhop-blocks/build/audio-player/index.js @@ -1 +1,589 @@ -(()=>{"use strict";var e,a={9650:()=>{const e=window.wp.blocks,a=window.wp.i18n,s=window.wp.blockEditor,i=window.wp.components,o=window.wp.element,l=window.wp.data,r=window.wp.coreData,t=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/audio-player"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{audioUrl:c,audioId:d,title:u,caption:p}=e,h=(0,o.useRef)(null),_=(0,o.useRef)(null),{saveEntityRecord:m}=(0,l.useDispatch)(r.store),[b,w]=(0,o.useState)(!1),[x,y]=(0,o.useState)(""),v=e=>{n({caption:e}),d&&(async e=>{if(d)try{w(!0),y(""),await m("postType","attachment",{id:d,caption:e}),y((0,a.__)("Légende mise à jour dans la médiathèque.","carhop-blocks"))}catch(e){y((0,a.__)("Erreur lors de la mise à jour dans la médiathèque.","carhop-blocks"))}finally{w(!1)}})(e)},j=e=>{n({audioUrl:e.url,audioId:e.id,caption:e.caption||""})},g=e=>{n({audioUrl:e,audioId:0})};return(0,o.useEffect)(()=>{if(c&&h.current&&void 0!==window.Plyr)return _.current&&_.current.destroy(),_.current=new window.Plyr(h.current,{controls:["play-large","play","progress","current-time","mute","volume","settings"],settings:["speed"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]}}),()=>{_.current&&(_.current.destroy(),_.current=null)}},[c]),(0,t.jsxs)("div",{...(0,s.useBlockProps)({className:"audio-player"}),children:[(0,t.jsx)(s.InspectorControls,{children:(0,t.jsxs)(i.PanelBody,{title:(0,a.__)("Informations","carhop-blocks"),initialOpen:!0,children:[(0,t.jsx)(i.TextControl,{label:(0,a.__)("Titre","carhop-blocks"),value:u,onChange:e=>n({title:e})}),(0,t.jsx)(i.TextControl,{label:(0,a.__)("Légende","carhop-blocks"),value:p,onChange:v}),d?b?(0,t.jsx)(i.Notice,{status:"info",isDismissible:!1,children:(0,a.__)("Sauvegarde…","carhop-blocks")}):x?(0,t.jsx)(i.Notice,{status:"success",isDismissible:!1,children:x}):null:(0,t.jsx)(i.Notice,{status:"info",isDismissible:!1,children:(0,a.__)("Média externe : la légende n'est pas synchronisée dans la médiathèque.","carhop-blocks")})]})}),(0,t.jsx)(s.RichText,{className:"audio-player__title",value:u,onChange:e=>n({title:e}),tagName:"h4"}),c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.BlockControls,{children:[(0,t.jsx)(s.MediaReplaceFlow,{mediaId:d,mediaURL:c,allowedTypes:["audio"],accept:"audio/*",onSelectURL:g,onSelect:j}),(0,t.jsx)(i.ToolbarButton,{onClick:()=>{n({audioUrl:"",audioId:0,caption:""})},children:(0,a.__)("Retirer","carhop-blocks")})]}),(0,t.jsx)("div",{className:"audio-player-preview",children:(0,t.jsx)("audio",{ref:h,className:"js-plyr",src:c,preload:"metadata",children:(0,a.__)("Votre navigateur ne supporte pas l'élément audio.","carhop-blocks")})})]}):(0,t.jsx)(s.MediaPlaceholder,{icon:"format-audio",onSelect:j,onSelectURL:g,accept:"audio/*",allowedTypes:["audio"],labels:{title:(0,a.__)("Fichier audio","carhop-blocks"),instructions:(0,a.__)("Téléchargez un fichier audio, sélectionnez-en un depuis la médiathèque ou insérez-en un depuis une URL.","carhop-blocks")}}),(0,t.jsxs)("p",{className:"audio-player__details",children:[(0,t.jsx)("span",{className:"audio-player__details__label",children:"Audio"}),(0,t.jsx)(s.RichText,{className:"audio-player__details__caption",placeholder:(0,a.__)("Renseignez ici la légende de l'audio","carhop-blocks"),value:p,onChange:e=>v(e),tagName:"span"})]})]})},save:function({attributes:e}){const{audioUrl:a,title:i,caption:o}=e;return a?(0,t.jsxs)("div",{...s.useBlockProps.save({className:"audio-player"}),children:[(0,t.jsx)(s.RichText.Content,{value:i,className:"audio-player__title",tagName:"h4"}),(0,t.jsx)("audio",{className:"js-plyr",src:a,preload:"metadata",children:"Votre navigateur ne supporte pas l'élément audio."}),(0,t.jsxs)("p",{className:"audio-player__details",children:[(0,t.jsx)("span",{className:"audio-player__details__label",children:"Audio"}),(0,t.jsx)("span",{className:"audio-player__details__caption",children:null!=o?o:""})]})]}):null}})}},s={};function i(e){var o=s[e];if(void 0!==o)return o.exports;var l=s[e]={exports:{}};return a[e](l,l.exports,i),l.exports}i.m=a,e=[],i.O=(a,s,o,l)=>{if(!s){var r=1/0;for(d=0;d=l)&&Object.keys(i.O).every(e=>i.O[e](s[n]))?s.splice(n--,1):(t=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[s,o,l]},i.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={7962:0,7710:0};i.O.j=a=>0===e[a];var a=(a,s)=>{var o,l,[r,t,n]=s,c=0;if(r.some(a=>0!==e[a])){for(o in t)i.o(t,o)&&(i.m[o]=t[o]);if(n)var d=n(i)}for(a&&a(s);ci(9650));o=i.O(o)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/audio-player/block.json": +/*!*************************************!*\ + !*** ./src/audio-player/block.json ***! + \*************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/audio-player","version":"0.1.0","title":"Lecteur audio","category":"carhop-blocks","icon":{"src":"format-audio","foreground":"#136f63"},"description":"Lecteur audio pour intégrer un fichier audio dans votre contenu","example":{},"attributes":{"audioUrl":{"type":"string","default":""},"audioId":{"type":"number","default":0},"title":{"type":"string","default":"Titre du bloc audio"},"description":{"type":"string","default":""},"caption":{"type":"string","default":""}},"supports":{"html":false},"keywords":["audio","player","lecteur audio"],"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/audio-player/edit.js": +/*!**********************************!*\ + !*** ./src/audio-player/edit.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/core-data */ "@wordpress/core-data"); +/* harmony import */ var _wordpress_core_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editor.scss */ "./src/audio-player/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__); + + + + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + audioUrl, + audioId, + title, + caption + } = attributes; + const audioRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useRef)(null); + const plyrInstance = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useRef)(null); + const { + saveEntityRecord + } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useDispatch)(_wordpress_core_data__WEBPACK_IMPORTED_MODULE_5__.store); + const [isSavingCaption, setIsSavingCaption] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(false); + const [saveMessage, setSaveMessage] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(""); + const saveCaptionToMedia = async newCaption => { + if (!audioId) return; + try { + setIsSavingCaption(true); + setSaveMessage(""); + await saveEntityRecord("postType", "attachment", { + id: audioId, + caption: newCaption + }); + setSaveMessage((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Légende mise à jour dans la médiathèque.", "carhop-blocks")); + } catch (e) { + setSaveMessage((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Erreur lors de la mise à jour dans la médiathèque.", "carhop-blocks")); + } finally { + setIsSavingCaption(false); + } + }; + const handleCaptionChange = value => { + setAttributes({ + caption: value + }); + if (audioId) { + void saveCaptionToMedia(value); + } + }; + const onSelectAudio = media => { + setAttributes({ + audioUrl: media.url, + audioId: media.id, + // Récupérer les métadonnées depuis la médiathèque + caption: media.caption || "" + }); + }; + const onSelectURL = url => { + setAttributes({ + audioUrl: url, + audioId: 0 + }); + }; + const onRemoveAudio = () => { + setAttributes({ + audioUrl: "", + audioId: 0, + caption: "" + }); + }; + + // Initialize Plyr in the editor + (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => { + // Wait for Plyr to be loaded (via PHP) + if (!audioUrl || !audioRef.current || typeof window.Plyr === "undefined") { + return; + } + + // Destroy previous instance if it exists + if (plyrInstance.current) { + plyrInstance.current.destroy(); + } + + // Create new Plyr instance + plyrInstance.current = new window.Plyr(audioRef.current, { + controls: ["play-large", "play", "progress", "current-time", "mute", "volume", "settings"], + settings: ["speed"], + speed: { + selected: 1, + options: [0.5, 0.75, 1, 1.25, 1.5, 2] + } + }); + + // Cleanup on unmount + return () => { + if (plyrInstance.current) { + plyrInstance.current.destroy(); + plyrInstance.current = null; + } + }; + }, [audioUrl]); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "audio-player" + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Informations", "carhop-blocks"), + initialOpen: true, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Titre", "carhop-blocks"), + value: title, + onChange: value => setAttributes({ + title: value + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Légende", "carhop-blocks"), + value: caption, + onChange: handleCaptionChange + }), audioId ? isSavingCaption ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Notice, { + status: "info", + isDismissible: false, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Sauvegarde…", "carhop-blocks") + }) : saveMessage ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Notice, { + status: "success", + isDismissible: false, + children: saveMessage + }) : null : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Notice, { + status: "info", + isDismissible: false, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Média externe : la légende n'est pas synchronisée dans la médiathèque.", "carhop-blocks") + })] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + className: "audio-player__title", + value: title, + onChange: value => setAttributes({ + title: value + }), + tagName: "h4" + }), !audioUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaPlaceholder, { + icon: "format-audio", + onSelect: onSelectAudio, + onSelectURL: onSelectURL, + accept: "audio/*", + allowedTypes: ["audio"], + labels: { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Fichier audio", "carhop-blocks"), + instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Téléchargez un fichier audio, sélectionnez-en un depuis la médiathèque ou insérez-en un depuis une URL.", "carhop-blocks") + } + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaReplaceFlow, { + mediaId: audioId, + mediaURL: audioUrl, + allowedTypes: ["audio"], + accept: "audio/*", + onSelectURL: onSelectURL, + onSelect: onSelectAudio + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { + onClick: onRemoveAudio, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Retirer", "carhop-blocks") + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", { + className: "audio-player-preview", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("audio", { + ref: audioRef, + className: "js-plyr", + src: audioUrl, + preload: "metadata", + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Votre navigateur ne supporte pas l'élément audio.", "carhop-blocks") + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("p", { + className: "audio-player__details", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("span", { + className: "audio-player__details__label", + children: "Audio" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + className: "audio-player__details__caption", + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Renseignez ici la légende de l'audio", "carhop-blocks"), + value: caption, + onChange: value => handleCaptionChange(value), + tagName: "span" + })] + })] + }); +} + +/***/ }), + +/***/ "./src/audio-player/editor.scss": +/*!**************************************!*\ + !*** ./src/audio-player/editor.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/audio-player/index.js": +/*!***********************************!*\ + !*** ./src/audio-player/index.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/audio-player/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/audio-player/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/audio-player/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/audio-player/block.json"); + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + /** + * @see ./save.js + */ + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/audio-player/save.js": +/*!**********************************!*\ + !*** ./src/audio-player/save.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save({ + attributes +}) { + const { + audioUrl, + title, + caption + } = attributes; + if (!audioUrl) { + return null; + } + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "audio-player" + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, { + value: title, + className: "audio-player__title", + tagName: "h4" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("audio", { + className: "js-plyr", + src: audioUrl, + preload: "metadata", + children: "Votre navigateur ne supporte pas l'\xE9l\xE9ment audio." + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("p", { + className: "audio-player__details", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span", { + className: "audio-player__details__label", + children: "Audio" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("span", { + className: "audio-player__details__caption", + children: caption !== null && caption !== void 0 ? caption : "" + })] + })] + }); +} + +/***/ }), + +/***/ "./src/audio-player/style.scss": +/*!*************************************!*\ + !*** ./src/audio-player/style.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/core-data": +/*!**********************************!*\ + !*** external ["wp","coreData"] ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["coreData"]; + +/***/ }), + +/***/ "@wordpress/data": +/*!******************************!*\ + !*** external ["wp","data"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ "@wordpress/element": +/*!*********************************!*\ + !*** external ["wp","element"] ***! + \*********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "audio-player/index": 0, +/******/ "audio-player/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["audio-player/style-index"], () => (__webpack_require__("./src/audio-player/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/index.js.map b/plugins/carhop-blocks/build/audio-player/index.js.map new file mode 100644 index 0000000..536a205 --- /dev/null +++ b/plugins/carhop-blocks/build/audio-player/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"audio-player/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAOJ;AAMF;AACkC;AACnB;AACY;AACnC;AAC4B;AAAA;AACpC,SAASuB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,KAAK;IAAEC;EAAQ,CAAC,GAAGL,UAAU;EACxD,MAAMM,QAAQ,GAAGnB,0DAAM,CAAC,IAAI,CAAC;EAC7B,MAAMoB,YAAY,GAAGpB,0DAAM,CAAC,IAAI,CAAC;EACjC,MAAM;IAAEqB;EAAiB,CAAC,GAAGnB,4DAAW,CAACE,uDAAS,CAAC;EACnD,MAAM,CAACkB,eAAe,EAAEC,kBAAkB,CAAC,GAAGtB,4DAAQ,CAAC,KAAK,CAAC;EAC7D,MAAM,CAACuB,WAAW,EAAEC,cAAc,CAAC,GAAGxB,4DAAQ,CAAC,EAAE,CAAC;EAElD,MAAMyB,kBAAkB,GAAG,MAAOC,UAAU,IAAK;IAChD,IAAI,CAACX,OAAO,EAAE;IACd,IAAI;MACHO,kBAAkB,CAAC,IAAI,CAAC;MACxBE,cAAc,CAAC,EAAE,CAAC;MAClB,MAAMJ,gBAAgB,CAAC,UAAU,EAAE,YAAY,EAAE;QAChDO,EAAE,EAAEZ,OAAO;QACXE,OAAO,EAAES;MACV,CAAC,CAAC;MACFF,cAAc,CACbpC,mDAAE,CAAC,0CAA0C,EAAE,eAAe,CAC/D,CAAC;IACF,CAAC,CAAC,OAAOwC,CAAC,EAAE;MACXJ,cAAc,CACbpC,mDAAE,CACD,oDAAoD,EACpD,eACD,CACD,CAAC;IACF,CAAC,SAAS;MACTkC,kBAAkB,CAAC,KAAK,CAAC;I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WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/audio-player/edit.js","webpack://carhop-blocks/./src/audio-player/editor.scss?671f","webpack://carhop-blocks/./src/audio-player/index.js","webpack://carhop-blocks/./src/audio-player/save.js","webpack://carhop-blocks/./src/audio-player/style.scss?0ce3","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"coreData\"]","webpack://carhop-blocks/external window [\"wp\",\"data\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tMediaPlaceholder,\n\tBlockControls,\n\tMediaReplaceFlow,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport {\n\tToolbarButton,\n\tPanelBody,\n\tTextControl,\n\tNotice,\n} from \"@wordpress/components\";\nimport { useEffect, useRef, useState } from \"@wordpress/element\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as coreStore } from \"@wordpress/core-data\";\nimport \"./editor.scss\";\nimport { RichText } from \"@wordpress/block-editor\";\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { audioUrl, audioId, title, caption } = attributes;\n\tconst audioRef = useRef(null);\n\tconst plyrInstance = useRef(null);\n\tconst { saveEntityRecord } = useDispatch(coreStore);\n\tconst [isSavingCaption, setIsSavingCaption] = useState(false);\n\tconst [saveMessage, setSaveMessage] = useState(\"\");\n\n\tconst saveCaptionToMedia = async (newCaption) => {\n\t\tif (!audioId) return;\n\t\ttry {\n\t\t\tsetIsSavingCaption(true);\n\t\t\tsetSaveMessage(\"\");\n\t\t\tawait saveEntityRecord(\"postType\", \"attachment\", {\n\t\t\t\tid: audioId,\n\t\t\t\tcaption: newCaption,\n\t\t\t});\n\t\t\tsetSaveMessage(\n\t\t\t\t__(\"Légende mise à jour dans la médiathèque.\", \"carhop-blocks\")\n\t\t\t);\n\t\t} catch (e) {\n\t\t\tsetSaveMessage(\n\t\t\t\t__(\n\t\t\t\t\t\"Erreur lors de la mise à jour dans la médiathèque.\",\n\t\t\t\t\t\"carhop-blocks\"\n\t\t\t\t)\n\t\t\t);\n\t\t} finally {\n\t\t\tsetIsSavingCaption(false);\n\t\t}\n\t};\n\n\tconst handleCaptionChange = (value) => {\n\t\tsetAttributes({ caption: value });\n\t\tif (audioId) {\n\t\t\tvoid saveCaptionToMedia(value);\n\t\t}\n\t};\n\n\tconst onSelectAudio = (media) => {\n\t\tsetAttributes({\n\t\t\taudioUrl: media.url,\n\t\t\taudioId: media.id,\n\t\t\t// Récupérer les métadonnées depuis la médiathèque\n\t\t\tcaption: media.caption || \"\",\n\t\t});\n\t};\n\n\tconst onSelectURL = (url) => {\n\t\tsetAttributes({\n\t\t\taudioUrl: url,\n\t\t\taudioId: 0,\n\t\t});\n\t};\n\n\tconst onRemoveAudio = () => {\n\t\tsetAttributes({\n\t\t\taudioUrl: \"\",\n\t\t\taudioId: 0,\n\t\t\tcaption: \"\",\n\t\t});\n\t};\n\n\t// Initialize Plyr in the editor\n\tuseEffect(() => {\n\t\t// Wait for Plyr to be loaded (via PHP)\n\t\tif (!audioUrl || !audioRef.current || typeof window.Plyr === \"undefined\") {\n\t\t\treturn;\n\t\t}\n\n\t\t// Destroy previous instance if it exists\n\t\tif (plyrInstance.current) {\n\t\t\tplyrInstance.current.destroy();\n\t\t}\n\n\t\t// Create new Plyr instance\n\t\tplyrInstance.current = new window.Plyr(audioRef.current, {\n\t\t\tcontrols: [\n\t\t\t\t\"play-large\",\n\t\t\t\t\"play\",\n\t\t\t\t\"progress\",\n\t\t\t\t\"current-time\",\n\t\t\t\t\"mute\",\n\t\t\t\t\"volume\",\n\t\t\t\t\"settings\",\n\t\t\t],\n\t\t\tsettings: [\"speed\"],\n\t\t\tspeed: { selected: 1, options: [0.5, 0.75, 1, 1.25, 1.5, 2] },\n\t\t});\n\n\t\t// Cleanup on unmount\n\t\treturn () => {\n\t\t\tif (plyrInstance.current) {\n\t\t\t\tplyrInstance.current.destroy();\n\t\t\t\tplyrInstance.current = null;\n\t\t\t}\n\t\t};\n\t}, [audioUrl]);\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ title: value })}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t{audioId ? (\n\t\t\t\t\t\tisSavingCaption ? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{__(\"Sauvegarde…\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : saveMessage ? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{saveMessage}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t\t) : (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t\"Média externe : la légende n'est pas synchronisée dans la médiathèque.\",\n\t\t\t\t\t\t\t\t\"carhop-blocks\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t\n\t\t\t setAttributes({ title: value })}\n\t\t\t\ttagName=\"h4\"\n\t\t\t/>\n\t\t\t{!audioUrl ? (\n\t\t\t\t\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\"Retirer\", \"carhop-blocks\")}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t\"Votre navigateur ne supporte pas l'élément audio.\",\n\t\t\t\t\t\t\t\t\"carhop-blocks\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t)}\n\t\t\t

\n\t\t\t\tAudio\n\t\t\t\t handleCaptionChange(value)}\n\t\t\t\t\ttagName=\"span\"\n\t\t\t\t/>\n\t\t\t

\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\n\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: Edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { audioUrl, title, caption } = attributes;\n\n\tif (!audioUrl) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\n\n\t\t\t

\n\t\t\t\tAudio\n\t\t\t\t{caption ?? \"\"}\n\t\t\t

\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"coreData\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"audio-player/index\": 0,\n\t\"audio-player/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"audio-player/style-index\"], () => (__webpack_require__(\"./src/audio-player/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","MediaPlaceholder","BlockControls","MediaReplaceFlow","InspectorControls","ToolbarButton","PanelBody","TextControl","Notice","useEffect","useRef","useState","useDispatch","store","coreStore","RichText","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","audioUrl","audioId","title","caption","audioRef","plyrInstance","saveEntityRecord","isSavingCaption","setIsSavingCaption","saveMessage","setSaveMessage","saveCaptionToMedia","newCaption","id","e","handleCaptionChange","value","onSelectAudio","media","url","onSelectURL","onRemoveAudio","current","window","Plyr","destroy","controls","settings","speed","selected","options","className","children","initialOpen","label","onChange","status","isDismissible","tagName","icon","onSelect","accept","allowedTypes","labels","instructions","mediaId","mediaURL","onClick","ref","src","preload","placeholder","registerBlockType","save","metadata","name","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/style-index.css b/plugins/carhop-blocks/build/audio-player/style-index.css index 18064cc..9c5fa19 100644 --- a/plugins/carhop-blocks/build/audio-player/style-index.css +++ b/plugins/carhop-blocks/build/audio-player/style-index.css @@ -1 +1,44 @@ -.wp-block-carhop-blocks-audio-player .plyr__controls{padding:2rem 0!important}.wp-block-carhop-blocks-audio-player{--plyr-color-main:var(--wp--preset--color--primary);--plyr-menu-border-color:var(--wp--preset--color--carhop-green);--plyr-menu-border-shadow-color:var(--wp--preset--color--carhop-green);--plyr-control-icon-size:20px;--plyr-audio-control-color:var(--wp--preset--color--primary);--plyr-audio-range-track-background:var( --wp--preset--color--carhop-green--200 );border:1px solid var(--wp--preset--color--primary);padding:2rem}.wp-block-carhop-blocks-audio-player button[data-plyr=mute],.wp-block-carhop-blocks-audio-player button[data-plyr=play]{border:1px solid var(--wp--preset--color--primary);border-radius:50%;padding:2rem}.wp-block-carhop-blocks-audio-player button[data-plyr=mute]{padding:1rem}.wp-block-carhop-blocks-audio-player .audio-player__title{color:var(--wp--preset--color--primary);font-size:1.5rem;font-weight:600;margin:0;text-transform:uppercase}.wp-block-carhop-blocks-audio-player .audio-player__details__label{margin-right:.5rem;text-transform:uppercase} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/audio-player/style.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * Styles for Plyr audio player block + * These styles are applied both in the editor and on the front-end + */ +.wp-block-carhop-blocks-audio-player .plyr__controls { + padding: 2rem 0 !important; +} +.wp-block-carhop-blocks-audio-player { + --plyr-color-main: var(--wp--preset--color--primary); + --plyr-menu-border-color: var(--wp--preset--color--carhop-green); + --plyr-menu-border-shadow-color: var(--wp--preset--color--carhop-green); + --plyr-control-icon-size: 20px; + --plyr-audio-control-color: var(--wp--preset--color--primary); + --plyr-audio-range-track-background: var( + --wp--preset--color--carhop-green--200 + ); + border: 1px solid var(--wp--preset--color--primary); + padding: 2rem; +} +.wp-block-carhop-blocks-audio-player button[data-plyr=play], +.wp-block-carhop-blocks-audio-player button[data-plyr=mute] { + border-radius: 50%; + border: 1px solid var(--wp--preset--color--primary); + padding: 2rem; +} +.wp-block-carhop-blocks-audio-player button[data-plyr=mute] { + padding: 1rem; +} +.wp-block-carhop-blocks-audio-player .audio-player__title { + text-transform: uppercase; + font-size: 1.5rem; + font-weight: 600; + color: var(--wp--preset--color--primary); + margin: 0; +} +.wp-block-carhop-blocks-audio-player .audio-player__details__label { + margin-right: 0.5rem; + text-transform: uppercase; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/style-index.css.map b/plugins/carhop-blocks/build/audio-player/style-index.css.map new file mode 100644 index 0000000..73b744a --- /dev/null +++ b/plugins/carhop-blocks/build/audio-player/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"audio-player/style-index.css","mappings":";;;AAAA;;;EAAA;AAMC;EACC;AADF;AADA;EAIC;EACA;EACA;EAGA;EACA;EAGA;;GAAA;EAGA;EACA;AAJD;AAMC;;EAEC;EACA;EACA;AAJF;AAOC;EACC;AALF;AAQC;EACC;EACA;EACA;EACA;EACA;AANF;AAUE;EACC;EACA;AARH,C","sources":["webpack://carhop-blocks/./src/audio-player/style.scss"],"sourcesContent":["/**\n * Styles for Plyr audio player block\n * These styles are applied both in the editor and on the front-end\n */\n\n.wp-block-carhop-blocks-audio-player {\n\t.plyr__controls {\n\t\tpadding: 2rem 0 !important;\n\t}\n\t--plyr-color-main: var(--wp--preset--color--primary);\n\t--plyr-menu-border-color: var(--wp--preset--color--carhop-green);\n\t--plyr-menu-border-shadow-color: var(--wp--preset--color--carhop-green);\n\t// --plyr-control-radius: 50%;\n\n\t--plyr-control-icon-size: 20px;\n\t--plyr-audio-control-color: var(--wp--preset--color--primary);\n\t// Utiliser la couleur directement depuis tailwind.config.js ligne 32\n\t// --plyr-audio-range-track-background: #9df2de;\n\t--plyr-audio-range-track-background: var(\n\t\t--wp--preset--color--carhop-green--200\n\t);\n\tborder: 1px solid var(--wp--preset--color--primary);\n\tpadding: 2rem;\n\n\tbutton[data-plyr=\"play\"],\n\tbutton[data-plyr=\"mute\"] {\n\t\tborder-radius: 50%;\n\t\tborder: 1px solid var(--wp--preset--color--primary);\n\t\tpadding: 2rem;\n\t}\n\n\tbutton[data-plyr=\"mute\"] {\n\t\tpadding: 1rem;\n\t}\n\n\t.audio-player__title {\n\t\ttext-transform: uppercase;\n\t\tfont-size: 1.5rem;\n\t\tfont-weight: 600;\n\t\tcolor: var(--wp--preset--color--primary);\n\t\tmargin: 0;\n\t}\n\n\t.audio-player__details {\n\t\t&__label {\n\t\t\tmargin-right: 0.5rem;\n\t\t\ttext-transform: uppercase;\n\t\t}\n\t}\n\n\t// Plyr container styles\n\t// .plyr {\n\t// \tborder-radius: 8px;\n\t// }\n\n\t// // Customize Plyr colors if needed\n\t// .plyr--audio .plyr__control.plyr__tab-focus,\n\t// .plyr--audio .plyr__control:hover,\n\t// .plyr--audio .plyr__control[aria-expanded=\"true\"] {\n\t// \tbackground: #21759b;\n\t// }\n\n\t// .plyr__control--overlaid {\n\t// \tbackground: rgba(33, 117, 155, 0.8);\n\t// }\n}\n\n// .plyr--full-ui input[type=\"range\"] {\n// \tcolor: red;\n// }\n\n// .plyr__control--overlaid {\n// \tbackground: rgba(red, 0.8);\n// }\n\n// .plyr--video .plyr__control.plyr__tab-focus,\n// .plyr--video .plyr__control:hover,\n// .plyr--video .plyr__control[aria-expanded=\"true\"] {\n// \tbackground: red;\n// }\n\n// .plyr__control.plyr__tab-focus {\n// \tbox-shadow: 0 0 0 5px rgba(red, 0.5);\n// }\n\n// .plyr__menu__container\n// \t.plyr__control[role=\"menuitemradio\"][aria-checked=\"true\"]::before {\n// \tbackground: red;\n// }\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/view.js b/plugins/carhop-blocks/build/audio-player/view.js index ee90e14..12576d4 100644 --- a/plugins/carhop-blocks/build/audio-player/view.js +++ b/plugins/carhop-blocks/build/audio-player/view.js @@ -1 +1,37 @@ -document.addEventListener("DOMContentLoaded",()=>{if("undefined"==typeof Plyr)return void console.error("Plyr library not loaded");const e=Array.from(document.querySelectorAll(".js-plyr")).map(e=>new Plyr(e,{controls:["play-large","play","progress","current-time","duration","mute","volume","settings"],settings:["speed"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]}}));e.length>0&&console.log("Plyr audio players initialized:",e.length)}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!**********************************!*\ + !*** ./src/audio-player/view.js ***! + \**********************************/ +/** + * Initializes Plyr audio player on the front-end + * Note: Plyr is loaded as a dependency via PHP (see audio-player.php) + */ + +// Initialize Plyr on all audio elements with the js-plyr class +document.addEventListener("DOMContentLoaded", () => { + // Check if Plyr is available (loaded via PHP) + if (typeof Plyr === "undefined") { + /* eslint-disable no-console */ + console.error("Plyr library not loaded"); + /* eslint-enable no-console */ + return; + } + const players = Array.from(document.querySelectorAll(".js-plyr")).map(element => new Plyr(element, { + controls: ["play-large", "play", "progress", "current-time", "duration", "mute", "volume", "settings"], + settings: ["speed"], + speed: { + selected: 1, + options: [0.5, 0.75, 1, 1.25, 1.5, 2] + } + })); + + // Optional: Log players for debugging + if (players.length > 0) { + /* eslint-disable no-console */ + console.log("Plyr audio players initialized:", players.length); + /* eslint-enable no-console */ + } +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/audio-player/view.js.map b/plugins/carhop-blocks/build/audio-player/view.js.map new file mode 100644 index 0000000..43a5146 --- /dev/null +++ b/plugins/carhop-blocks/build/audio-player/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"audio-player/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;;AAEA;AACAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,MAAM;EACnD;EACA,IAAI,OAAOC,IAAI,KAAK,WAAW,EAAE;IAChC;IACAC,OAAO,CAACC,KAAK,CAAC,yBAAyB,CAAC;IACxC;IACA;EACD;EAEA,MAAMC,OAAO,GAAGC,KAAK,CAACC,IAAI,CAACP,QAAQ,CAACQ,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAACC,GAAG,CACnEC,OAAO,IACP,IAAIR,IAAI,CAACQ,OAAO,EAAE;IACjBC,QAAQ,EAAE,CACT,YAAY,EACZ,MAAM,EACN,UAAU,EACV,cAAc,EACd,UAAU,EACV,MAAM,EACN,QAAQ,EACR,UAAU,CACV;IACDC,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnBC,KAAK,EAAE;MAAEC,QAAQ,EAAE,CAAC;MAAEC,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IAAE;EAC7D,CAAC,CACH,CAAC;;EAED;EACA,IAAIV,OAAO,CAACW,MAAM,GAAG,CAAC,EAAE;IACvB;IACAb,OAAO,CAACc,GAAG,CAAC,iCAAiC,EAAEZ,OAAO,CAACW,MAAM,CAAC;IAC9D;EACD;AACD,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/audio-player/view.js"],"sourcesContent":["/**\n * Initializes Plyr audio player on the front-end\n * Note: Plyr is loaded as a dependency via PHP (see audio-player.php)\n */\n\n// Initialize Plyr on all audio elements with the js-plyr class\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n\t// Check if Plyr is available (loaded via PHP)\n\tif (typeof Plyr === \"undefined\") {\n\t\t/* eslint-disable no-console */\n\t\tconsole.error(\"Plyr library not loaded\");\n\t\t/* eslint-enable no-console */\n\t\treturn;\n\t}\n\n\tconst players = Array.from(document.querySelectorAll(\".js-plyr\")).map(\n\t\t(element) =>\n\t\t\tnew Plyr(element, {\n\t\t\t\tcontrols: [\n\t\t\t\t\t\"play-large\",\n\t\t\t\t\t\"play\",\n\t\t\t\t\t\"progress\",\n\t\t\t\t\t\"current-time\",\n\t\t\t\t\t\"duration\",\n\t\t\t\t\t\"mute\",\n\t\t\t\t\t\"volume\",\n\t\t\t\t\t\"settings\",\n\t\t\t\t],\n\t\t\t\tsettings: [\"speed\"],\n\t\t\t\tspeed: { selected: 1, options: [0.5, 0.75, 1, 1.25, 1.5, 2] },\n\t\t\t})\n\t);\n\n\t// Optional: Log players for debugging\n\tif (players.length > 0) {\n\t\t/* eslint-disable no-console */\n\t\tconsole.log(\"Plyr audio players initialized:\", players.length);\n\t\t/* eslint-enable no-console */\n\t}\n});\n"],"names":["document","addEventListener","Plyr","console","error","players","Array","from","querySelectorAll","map","element","controls","settings","speed","selected","options","length","log"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/index.css b/plugins/carhop-blocks/build/card-grid/index.css index e5cc415..06cddae 100644 --- a/plugins/carhop-blocks/build/card-grid/index.css +++ b/plugins/carhop-blocks/build/card-grid/index.css @@ -1 +1,35 @@ -.card-grid__innerblocks{display:block}.card-grid .card-grid__innerblocks>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;gap:1rem}.card-grid--columns-2 .card-grid__innerblocks>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:repeat(2,1fr)}.card-grid--columns-3 .card-grid__innerblocks>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:repeat(3,1fr)}.card-grid--columns-4 .card-grid__innerblocks>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:repeat(4,1fr)}.card-grid--columns-5 .card-grid__innerblocks>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:repeat(5,1fr)}.card-grid.alignwide{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,1200px)}.card-grid.alignfull{margin-left:0;margin-right:0;max-width:none;width:100%} +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/card-grid/editor.scss ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.card-grid__innerblocks { + display: block; +} +.card-grid .card-grid__innerblocks > .block-editor-inner-blocks > .block-editor-block-list__layout { + display: grid; + gap: 1rem; +} +.card-grid--columns-2 .card-grid__innerblocks > .block-editor-inner-blocks > .block-editor-block-list__layout { + grid-template-columns: repeat(2, 1fr); +} +.card-grid--columns-3 .card-grid__innerblocks > .block-editor-inner-blocks > .block-editor-block-list__layout { + grid-template-columns: repeat(3, 1fr); +} +.card-grid--columns-4 .card-grid__innerblocks > .block-editor-inner-blocks > .block-editor-block-list__layout { + grid-template-columns: repeat(4, 1fr); +} +.card-grid--columns-5 .card-grid__innerblocks > .block-editor-inner-blocks > .block-editor-block-list__layout { + grid-template-columns: repeat(5, 1fr); +} +.card-grid.alignwide { + max-width: var(--wp--style--global--wide-size, 1200px); + margin-left: auto; + margin-right: auto; +} +.card-grid.alignfull { + max-width: none; + margin-left: 0; + margin-right: 0; + width: 100%; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/index.css.map b/plugins/carhop-blocks/build/card-grid/index.css.map new file mode 100644 index 0000000..5b0b061 --- /dev/null +++ b/plugins/carhop-blocks/build/card-grid/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"card-grid/index.css","mappings":";;;AACC;EACC;AAAF;AAGC;EAGC;EACA;AAHF;AAKC;EAIC;AANF;AAQC;EAIC;AATF;AAWC;EAIC;AAZF;AAcC;EAIC;AAfF;AAoBA;EACC;EACA;EACA;AAjBD;AAoBA;EACC;EACA;EACA;EACA;AAjBD,C","sources":["webpack://carhop-blocks/./src/card-grid/editor.scss"],"sourcesContent":[".card-grid {\n\t&__innerblocks {\n\t\tdisplay: block;\n\t}\n\n\t.card-grid__innerblocks\n\t\t> .block-editor-inner-blocks\n\t\t> .block-editor-block-list__layout {\n\t\tdisplay: grid;\n\t\tgap: 1rem;\n\t}\n\t&--columns-2\n\t\t.card-grid__innerblocks\n\t\t> .block-editor-inner-blocks\n\t\t> .block-editor-block-list__layout {\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n\t&--columns-3\n\t\t.card-grid__innerblocks\n\t\t> .block-editor-inner-blocks\n\t\t> .block-editor-block-list__layout {\n\t\tgrid-template-columns: repeat(3, 1fr);\n\t}\n\t&--columns-4\n\t\t.card-grid__innerblocks\n\t\t> .block-editor-inner-blocks\n\t\t> .block-editor-block-list__layout {\n\t\tgrid-template-columns: repeat(4, 1fr);\n\t}\n\t&--columns-5\n\t\t.card-grid__innerblocks\n\t\t> .block-editor-inner-blocks\n\t\t> .block-editor-block-list__layout {\n\t\tgrid-template-columns: repeat(5, 1fr);\n\t}\n}\n\n// Styles pour les alignements dans l'éditeur\n.card-grid.alignwide {\n\tmax-width: var(--wp--style--global--wide-size, 1200px);\n\tmargin-left: auto;\n\tmargin-right: auto;\n}\n\n.card-grid.alignfull {\n\tmax-width: none;\n\tmargin-left: 0;\n\tmargin-right: 0;\n\twidth: 100%;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/index.js b/plugins/carhop-blocks/build/card-grid/index.js index 0fbce1c..990d881 100644 --- a/plugins/carhop-blocks/build/card-grid/index.js +++ b/plugins/carhop-blocks/build/card-grid/index.js @@ -1 +1,412 @@ -(()=>{"use strict";var r,e={6120:()=>{const r=window.wp.blocks,e=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components,n=window.ReactJSXRuntime,s=JSON.parse('{"UU":"carhop-blocks/card-grid"}');(0,r.registerBlockType)(s.UU,{icon:{foreground:"#136f63",src:(0,n.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 100 100",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"m50,99.84988l-43.14852,-24.92494l0,-49.84988l43.14852,-24.92494l43.14852,24.92494l0,49.84988l-43.14852,24.92494zm-40.75518,-26.32675l40.75518,23.52312l40.75518,-23.52312l0,-47.04625l-40.75518,-23.55731l-40.75518,23.55731l0,47.04625z"}),(0,n.jsx)("path",{d:"m50,86.13945l-31.28439,-18.05263l0,-36.13945l31.28439,-18.05263l31.28439,18.05263l0,36.13945l-31.28439,18.05263zm-13.50528,-28.344l13.50528,7.79545l13.50528,-7.79545l0,-15.59091l-13.50528,-7.79545l-13.50528,7.79545l0,15.59091z"})]})})},edit:function({attributes:r,setAttributes:s,...c}){const{columns:t,cardsWithBorder:i}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.InspectorControls,{children:[(0,n.jsx)(l.PanelBody,{title:(0,e.__)("Nombre de colonnes","carhop-blocks"),children:(0,n.jsx)(l.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,initialPosition:3,label:"Nombre de colonnes",max:4,min:2,onChange:r=>s({columns:r})})}),(0,n.jsx)(l.PanelBody,{title:(0,e.__)("Bordure des cartes","carhop-blocks"),children:(0,n.jsx)(l.CheckboxControl,{label:"Avec bordure",checked:i,onChange:r=>s({cardsWithBorder:r})})})]}),(0,n.jsx)("section",{...(0,o.useBlockProps)({className:`card-grid card-grid--columns-${t} card-grid--cards-${i?"with-border":"without-border"}`}),children:(0,n.jsx)("div",{className:"card-grid__innerblocks",children:(0,n.jsx)(o.InnerBlocks,{template:[["carhop-blocks/content-card",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["carhop-blocks/content-card"]})})})]})},save:function({attributes:r}){const{columns:e,cardsWithBorder:l,align:s}=r;return(0,n.jsx)("section",{...o.useBlockProps.save({className:`card-grid card-grid--columns-${e} card-grid--cards-${l?"with-border":"without-border"}${s?` align${s}`:""}`}),children:(0,n.jsx)("div",{className:"card-grid__innerblocks",children:(0,n.jsx)(o.InnerBlocks.Content,{})})})}})}},o={};function l(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,l),s.exports}l.m=e,r=[],l.O=(e,o,n,s)=>{if(!o){var c=1/0;for(d=0;d=s)&&Object.keys(l.O).every(r=>l.O[r](o[i]))?o.splice(i--,1):(t=!1,s0&&r[d-1][2]>s;d--)r[d]=r[d-1];r[d]=[o,n,s]},l.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={7227:0,5235:0};l.O.j=e=>0===r[e];var e=(e,o)=>{var n,s,[c,t,i]=o,a=0;if(c.some(e=>0!==r[e])){for(n in t)l.o(t,n)&&(l.m[n]=t[n]);if(i)var d=i(l)}for(e&&e(o);al(6120));n=l.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/card-grid/block.json": +/*!**********************************!*\ + !*** ./src/card-grid/block.json ***! + \**********************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/card-grid","version":"0.1.0","title":"Card Grid","category":"carhop-blocks","icon":"smiley","description":"Boite de contenu pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false,"align":["wide","full"],"alignWide":true},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"align":{"type":"string","default":""},"columns":{"type":"number","default":3},"cardsWithBorder":{"type":"boolean","default":true}}}'); + +/***/ }), + +/***/ "./src/card-grid/edit.js": +/*!*******************************!*\ + !*** ./src/card-grid/edit.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/card-grid/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const { + columns, + cardsWithBorder + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Nombre de colonnes", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.RangeControl, { + __next40pxDefaultSize: true, + __nextHasNoMarginBottom: true, + initialPosition: 3, + label: "Nombre de colonnes", + max: 4, + min: 2, + onChange: value => setAttributes({ + columns: value + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Bordure des cartes", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.CheckboxControl, { + label: "Avec bordure", + checked: cardsWithBorder, + onChange: value => setAttributes({ + cardsWithBorder: value + }) + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `card-grid card-grid--columns-${columns} card-grid--cards-${cardsWithBorder ? "with-border" : "without-border"}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "card-grid__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["carhop-blocks/content-card", { + placeholder: "Ajouter ici le texte" + }]], + allowedBlocks: ["carhop-blocks/content-card"] + }) + }) + })] + }); +} + +/***/ }), + +/***/ "./src/card-grid/editor.scss": +/*!***********************************!*\ + !*** ./src/card-grid/editor.scss ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/card-grid/index.js": +/*!********************************!*\ + !*** ./src/card-grid/index.js ***! + \********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/card-grid/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/card-grid/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/card-grid/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/card-grid/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "40", + height: "40", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m50,99.84988l-43.14852,-24.92494l0,-49.84988l43.14852,-24.92494l43.14852,24.92494l0,49.84988l-43.14852,24.92494zm-40.75518,-26.32675l40.75518,23.52312l40.75518,-23.52312l0,-47.04625l-40.75518,-23.55731l-40.75518,23.55731l0,47.04625z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m50,86.13945l-31.28439,-18.05263l0,-36.13945l31.28439,-18.05263l31.28439,18.05263l0,36.13945l-31.28439,18.05263zm-13.50528,-28.344l13.50528,7.79545l13.50528,-7.79545l0,-15.59091l-13.50528,-7.79545l-13.50528,7.79545l0,15.59091z" + })] + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/card-grid/save.js": +/*!*******************************!*\ + !*** ./src/card-grid/save.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + columns, + cardsWithBorder, + align + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("section", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `card-grid card-grid--columns-${columns} card-grid--cards-${cardsWithBorder ? "with-border" : "without-border"}${align ? ` align${align}` : ""}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "card-grid__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }) + }); +} + +/***/ }), + +/***/ "./src/card-grid/style.scss": +/*!**********************************!*\ + !*** ./src/card-grid/style.scss ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "card-grid/index": 0, +/******/ "card-grid/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["card-grid/style-index"], () => (__webpack_require__("./src/card-grid/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/index.js.map b/plugins/carhop-blocks/build/card-grid/index.js.map new file mode 100644 index 0000000..ee96d15 --- /dev/null +++ b/plugins/carhop-blocks/build/card-grid/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"card-grid/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAKJ;AACV;AAQQ;AAAA;AAEhB,SAASiB,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAM;IAAEC,OAAO;IAAEC;EAAgB,CAAC,GAAGJ,UAAU;EAE/C,oBACCJ,uDAAA,CAAAE,uDAAA;IAAAO,QAAA,gBACCT,uDAAA,CAACX,sEAAiB;MAAAoB,QAAA,gBACjBX,sDAAA,CAACR,4DAAS;QAACoB,KAAK,EAAExB,mDAAE,CAAC,oBAAoB,EAAE,eAAe,CAAE;QAAAuB,QAAA,eAC3DX,sDAAA,CAACH,+DAAY;UACZgB,qBAAqB;UACrBC,uBAAuB;UACvBC,eAAe,EAAE,CAAE;UACnBC,KAAK,EAAC,oBAAoB;UAC1BC,GAAG,EAAE,CAAE;UACPC,GAAG,EAAE,CAAE;UACPC,QAAQ,EAAGC,KAAK,IAAKb,aAAa,CAAC;YAAEE,OAAO,EAAEW;UAAM,CAAC;QAAE,CACvD;MAAC,CACQ,CAAC,eACZpB,sDAAA,CAACR,4DAAS;QAACoB,KAAK,EAAExB,mDAAE,CAAC,oBAAoB,E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AEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/card-grid/edit.js","webpack://carhop-blocks/./src/card-grid/editor.scss?1231","webpack://carhop-blocks/./src/card-grid/index.js","webpack://carhop-blocks/./src/card-grid/save.js","webpack://carhop-blocks/./src/card-grid/style.scss?b0f4","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tRangeControl,\n\tCheckboxControl,\n} from \"@wordpress/components\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst { columns, cardsWithBorder } = attributes;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ columns: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ cardsWithBorder: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { columns, cardsWithBorder, align } = attributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"card-grid/index\": 0,\n\t\"card-grid/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"card-grid/style-index\"], () => (__webpack_require__(\"./src/card-grid/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","InspectorControls","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","RangeControl","CheckboxControl","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","columns","cardsWithBorder","children","title","__next40pxDefaultSize","__nextHasNoMarginBottom","initialPosition","label","max","min","onChange","value","checked","className","template","placeholder","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","d","edit","align","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/style-index.css b/plugins/carhop-blocks/build/card-grid/style-index.css index 272b7ec..d9650a2 100644 --- a/plugins/carhop-blocks/build/card-grid/style-index.css +++ b/plugins/carhop-blocks/build/card-grid/style-index.css @@ -1 +1,27 @@ -.card-grid__innerblocks{display:grid;gap:1rem}.card-grid--cards-with-border .content-card{border:1px solid var(--wp--preset--color--primary);padding:2rem}.card-grid--cards-without-border .content-card{border:none}.card-grid.alignwide{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,1200px)}.card-grid.alignfull{margin-left:0;margin-right:0;max-width:none;width:100%} +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/card-grid/style.scss ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.card-grid__innerblocks { + display: grid; + gap: 1rem; +} +.card-grid--cards-with-border .content-card { + border: 1px solid var(--wp--preset--color--primary); + padding: 2rem; +} +.card-grid--cards-without-border .content-card { + border: none; +} +.card-grid.alignwide { + max-width: var(--wp--style--global--wide-size, 1200px); + margin-left: auto; + margin-right: auto; +} +.card-grid.alignfull { + max-width: none; + margin-left: 0; + margin-right: 0; + width: 100%; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/style-index.css.map b/plugins/carhop-blocks/build/card-grid/style-index.css.map new file mode 100644 index 0000000..0ea49e8 --- /dev/null +++ b/plugins/carhop-blocks/build/card-grid/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"card-grid/style-index.css","mappings":";;;AACC;EACC;EACA;AAAF;AAIE;EACC;EACA;AAFH;AAME;EACC;AAJH;AAUA;EACC;EACA;EACA;AAPD;AAUA;EACC;EACA;EACA;EACA;AAPD,C","sources":["webpack://carhop-blocks/./src/card-grid/style.scss"],"sourcesContent":[".card-grid {\r\n\t&__innerblocks {\r\n\t\tdisplay: grid;\r\n\t\tgap: 1rem;\r\n\t}\r\n\r\n\t&--cards-with-border {\r\n\t\t.content-card {\r\n\t\t\tborder: 1px solid var(--wp--preset--color--primary);\r\n\t\t\tpadding: 2rem;\r\n\t\t}\r\n\t}\r\n\t&--cards-without-border {\r\n\t\t.content-card {\r\n\t\t\tborder: none;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// Styles pour les alignements\r\n.card-grid.alignwide {\r\n\tmax-width: var(--wp--style--global--wide-size, 1200px);\r\n\tmargin-left: auto;\r\n\tmargin-right: auto;\r\n}\r\n\r\n.card-grid.alignfull {\r\n\tmax-width: none;\r\n\tmargin-left: 0;\r\n\tmargin-right: 0;\r\n\twidth: 100%;\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/card-grid/view.js b/plugins/carhop-blocks/build/card-grid/view.js index e69de29..a900e91 100644 --- a/plugins/carhop-blocks/build/card-grid/view.js +++ b/plugins/carhop-blocks/build/card-grid/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*******************************!*\ + !*** ./src/card-grid/view.js ***! + \*******************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/index.css b/plugins/carhop-blocks/build/chapo/index.css index 99581b6..232c216 100644 --- a/plugins/carhop-blocks/build/chapo/index.css +++ b/plugins/carhop-blocks/build/chapo/index.css @@ -1 +1,13 @@ -.wp-block-create-block-chapo{border:1px dotted red} +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/chapo/editor.scss ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/index.css.map b/plugins/carhop-blocks/build/chapo/index.css.map new file mode 100644 index 0000000..b5270ff --- /dev/null +++ b/plugins/carhop-blocks/build/chapo/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"chapo/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/chapo/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/index.js b/plugins/carhop-blocks/build/chapo/index.js index 2a20af6..4ca0f35 100644 --- a/plugins/carhop-blocks/build/chapo/index.js +++ b/plugins/carhop-blocks/build/chapo/index.js @@ -1 +1,364 @@ -(()=>{"use strict";var e,o={3118:()=>{const e=window.wp.blocks,o=window.wp.i18n,t=window.wp.blockEditor,r=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/chapo"}');(0,e.registerBlockType)(n.UU,{icon:{src:(0,r.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{d:"M16 24L8 16L16 8L24 16L16 24Z"})})},edit:function({attributes:e,setAttributes:n}){const{content:a}=e,c=(0,t.useBlockProps)({className:"block-chapo"});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(t.RichText,{...c,tagName:"p",placeholder:(0,o.__)("Un bien beau chapo","chapo"),value:a,onChange:e=>n({content:e})})})},save:function({attributes:e}){const{content:o}=e,n=t.useBlockProps.save({className:"block-chapo"});return(0,r.jsx)(t.RichText.Content,{...n,value:o,tagName:"p"})}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var c=1/0;for(p=0;p=a)&&Object.keys(r.O).every(e=>r.O[e](t[i]))?t.splice(i--,1):(s=!1,a0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[t,n,a]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={7505:0,5029:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,[c,s,i]=t,l=0;if(c.some(o=>0!==e[o])){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(i)var p=i(r)}for(o&&o(t);lr(3118));n=r.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/chapo/block.json": +/*!******************************!*\ + !*** ./src/chapo/block.json ***! + \******************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/chapo","version":"0.1.0","title":"Chapo","category":"carhop-blocks","icon":"smiley","description":"Chapo pour la mise en forme supérieure d\'éléments de contenu","example":{},"supports":{"html":false,"color":{"text":true,"background":false,"link":false}},"textdomain":"chapo","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"content":{"type":"string","source":"html","selector":"p"}}}'); + +/***/ }), + +/***/ "./src/chapo/edit.js": +/*!***************************!*\ + !*** ./src/chapo/edit.js ***! + \***************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/chapo/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + content + } = attributes; + const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "block-chapo" + }); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + ...blockProps, + tagName: "p", + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Un bien beau chapo", "chapo"), + value: content, + onChange: content => setAttributes({ + content + }) + }) + }); +} + +/***/ }), + +/***/ "./src/chapo/editor.scss": +/*!*******************************!*\ + !*** ./src/chapo/editor.scss ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/chapo/index.js": +/*!****************************!*\ + !*** ./src/chapo/index.js ***! + \****************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/chapo/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/chapo/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/chapo/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/chapo/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M16 24L8 16L16 8L24 16L16 24Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/chapo/save.js": +/*!***************************!*\ + !*** ./src/chapo/save.js ***! + \***************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save({ + attributes +}) { + const { + content + } = attributes; + const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "block-chapo" + }); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, { + ...blockProps, + value: content, + tagName: "p" + }); +} + +/***/ }), + +/***/ "./src/chapo/style.scss": +/*!******************************!*\ + !*** ./src/chapo/style.scss ***! + \******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "chapo/index": 0, +/******/ "chapo/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["chapo/style-index"], () => (__webpack_require__("./src/chapo/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/index.js.map b/plugins/carhop-blocks/build/chapo/index.js.map new file mode 100644 index 0000000..ff37ef7 --- /dev/null +++ b/plugins/carhop-blocks/build/chapo/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chapo/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAC6B;AAC3C;AAAA;AAER,SAASO,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAQ,CAAC,GAAGF,UAAU;EAC9B,MAAMG,UAAU,GAAGV,sEAAa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A;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/chapo/edit.js","webpack://carhop-blocks/./src/chapo/editor.scss?6624","webpack://carhop-blocks/./src/chapo/index.js","webpack://carhop-blocks/./src/chapo/save.js","webpack://carhop-blocks/./src/chapo/style.scss?42cc","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { content } = attributes;\n\tconst blockProps = useBlockProps({\n\t\tclassName: \"block-chapo\",\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t setAttributes({ content })}\n\t\t\t/>\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { content } = attributes;\n\tconst blockProps = useBlockProps.save({\n\t\tclassName: \"block-chapo\",\n\t});\n\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"chapo/index\": 0,\n\t\"chapo/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"chapo/style-index\"], () => (__webpack_require__(\"./src/chapo/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","jsx","_jsx","Fragment","_Fragment","Edit","attributes","setAttributes","content","blockProps","className","children","tagName","placeholder","value","onChange","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/style-index.css b/plugins/carhop-blocks/build/chapo/style-index.css index 7ab7da4..ee55630 100644 --- a/plugins/carhop-blocks/build/chapo/style-index.css +++ b/plugins/carhop-blocks/build/chapo/style-index.css @@ -1 +1,16 @@ -.wp-block-create-block-chapo{background-color:#21759b;color:#fff;padding:2px} +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/chapo/style.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/style-index.css.map b/plugins/carhop-blocks/build/chapo/style-index.css.map new file mode 100644 index 0000000..210dcb9 --- /dev/null +++ b/plugins/carhop-blocks/build/chapo/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"chapo/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/chapo/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/view.js b/plugins/carhop-blocks/build/chapo/view.js index 49825eb..1e0b480 100644 --- a/plugins/carhop-blocks/build/chapo/view.js +++ b/plugins/carhop-blocks/build/chapo/view.js @@ -1 +1,32 @@ -console.log("Hello World! (from create-block-chapo block)"); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!***************************!*\ + !*** ./src/chapo/view.js ***! + \***************************/ +/** + * Use this file for JavaScript code that you want to run in the front-end + * on posts/pages that contain this block. + * + * When this file is defined as the value of the `viewScript` property + * in `block.json` it will be enqueued on the front end of the site. + * + * Example: + * + * ```js + * { + * "viewScript": "file:./view.js" + * } + * ``` + * + * If you're not making any changes to this file because your project doesn't need any + * JavaScript running in the front-end, then you should delete this file and remove + * the `viewScript` property from `block.json`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script + */ + +/* eslint-disable no-console */ +console.log('Hello World! (from create-block-chapo block)'); +/* eslint-enable no-console */ +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapo/view.js.map b/plugins/carhop-blocks/build/chapo/view.js.map new file mode 100644 index 0000000..6e532dc --- /dev/null +++ b/plugins/carhop-blocks/build/chapo/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chapo/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACAA,OAAO,CAACC,GAAG,CAAE,8CAA+C,CAAC;AAC7D,8B","sources":["webpack://carhop-blocks/./src/chapo/view.js"],"sourcesContent":["/**\n * Use this file for JavaScript code that you want to run in the front-end\n * on posts/pages that contain this block.\n *\n * When this file is defined as the value of the `viewScript` property\n * in `block.json` it will be enqueued on the front end of the site.\n *\n * Example:\n *\n * ```js\n * {\n * \"viewScript\": \"file:./view.js\"\n * }\n * ```\n *\n * If you're not making any changes to this file because your project doesn't need any\n * JavaScript running in the front-end, then you should delete this file and remove\n * the `viewScript` property from `block.json`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script\n */\n\n/* eslint-disable no-console */\nconsole.log( 'Hello World! (from create-block-chapo block)' );\n/* eslint-enable no-console */\n"],"names":["console","log"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/index.css b/plugins/carhop-blocks/build/chapter-section/index.css index 79d091c..7df43cb 100644 --- a/plugins/carhop-blocks/build/chapter-section/index.css +++ b/plugins/carhop-blocks/build/chapter-section/index.css @@ -1 +1,22 @@ -.wp-block-carhop-blocks-chapter-section{margin:2rem calc(50% - 50vw)}.chapter-section--bg-light,.chapter-section--bg-light .wp-block-carhop-blocks-cta{--cta-current-color:var(--wp--preset--color--carhop-green,inherit)}.chapter-section--bg-light .wp-block-carhop-blocks-cta circle,.chapter-section--bg-light .wp-block-carhop-blocks-cta path,.chapter-section--bg-light .wp-block-carhop-blocks-cta svg{stroke:var(--wp--preset--color--carhop-green,inherit)} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/chapter-section/editor.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-chapter-section { + margin: 2rem calc(50% - 50vw); +} + +.chapter-section--bg-light { + --cta-current-color: var(--wp--preset--color--carhop-green, inherit); +} + +.chapter-section--bg-light .wp-block-carhop-blocks-cta { + --cta-current-color: var(--wp--preset--color--carhop-green, inherit); +} + +.chapter-section--bg-light .wp-block-carhop-blocks-cta svg, +.chapter-section--bg-light .wp-block-carhop-blocks-cta path, +.chapter-section--bg-light .wp-block-carhop-blocks-cta circle { + stroke: var(--wp--preset--color--carhop-green, inherit); +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/index.css.map b/plugins/carhop-blocks/build/chapter-section/index.css.map new file mode 100644 index 0000000..4692713 --- /dev/null +++ b/plugins/carhop-blocks/build/chapter-section/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"chapter-section/index.css","mappings":";;;AAAA;EACC;AACD;;AAEA;EACC;AACD;;AACC;EACC;AACF;;AAAE;;;EAGC;AAEH,C","sources":["webpack://carhop-blocks/./src/chapter-section/editor.scss"],"sourcesContent":[".wp-block-carhop-blocks-chapter-section {\n\tmargin: 2rem calc(50% - 50vw);\n}\n\n.chapter-section--bg-light {\n\t--cta-current-color: var(--wp--preset--color--carhop-green, inherit);\n\n\t.wp-block-carhop-blocks-cta {\n\t\t--cta-current-color: var(--wp--preset--color--carhop-green, inherit);\n\t\tsvg,\n\t\tpath,\n\t\tcircle {\n\t\t\tstroke: var(--wp--preset--color--carhop-green, inherit);\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/index.js b/plugins/carhop-blocks/build/chapter-section/index.js index ececa11..a419458 100644 --- a/plugins/carhop-blocks/build/chapter-section/index.js +++ b/plugins/carhop-blocks/build/chapter-section/index.js @@ -1 +1,877 @@ -(()=>{"use strict";var e,o={3603:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,l=(window.React,window.ReactJSXRuntime);function a({backgroundOrientation:e,backgroundColor:o,borderColor:r}){return(0,l.jsx)("svg",{width:"1440",height:"744",viewBox:"0 0 1440 744",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`chapter-section__background chapter-section__background--${e}`,preserveAspectRatio:"none",vectorEffect:"non-scaling-stroke",overflow:"visible",children:(0,l.jsx)("path",{d:"M0 0H1440V686.701L0 744V0Z",fill:o,stroke:r,strokeWidth:r?"2px":"0",style:{strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}})})}function t({backgroundOrientation:e,backgroundColor:o,borderColor:r}){return(0,l.jsx)("svg",{className:`chapter-section__background chapter-section__background--${e}`,width:"1302",height:"654",viewBox:"0 0 1302 654",preserveAspectRatio:"none",vectorEffect:"non-scaling-stroke",overflow:"visible",children:(0,l.jsx)("path",{d:"M1302 0L0 15.8281V654L1302 642.633L1302 0Z",fill:o,stroke:r,strokeWidth:r?"2px":"0",style:{strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}})})}const n=window.wp.primitives;var i=(0,l.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});const c=window.wp.components,s=JSON.parse('{"UU":"carhop-blocks/chapter-section"}');(0,e.registerBlockType)(s.UU,{icon:{src:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{d:"M21,7H3V4A1,1,0,0,1,4,3H20a1,1,0,0,1,1,1ZM3,20V9H21V20a1,1,0,0,1-1,1H4A1,1,0,0,1,3,20Zm3-6H18V12H6Zm0,4h6V16H6Z"})}),foreground:"#136f63"},edit:function({attributes:e,setAttributes:n,...s}){const p=(0,r.useSetting)("color.palette.theme"),{hasLightBackground:d,disposition:g,coverType:u,coverUrl:h,coverAlt:b,coverId:m,coverSize:v,backgroundColor:_,blockWidth:x,textColor:k,shapeType:C,blockVariant:j,borderColor:f}=e;function w(e){n({coverId:e.id,coverAlt:e.alt,coverUrl:e.url})}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.InspectorControls,{children:[(0,l.jsxs)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Aspect & Variante de bloc","deligraph-blocks"),children:[(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Largeur du bloc",onChange:e=>n({blockWidth:e}),value:x,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Contenue",value:"contained"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Pleine largeur",value:"full"})]}),(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Modèle de bloc",onChange:function(e){n({blockVariant:e}),"framed"!==e&&"nude"!==e||(n({backgroundColor:"#fff"}),n({hasLightBackground:!0}))},value:j,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Nu",value:"nude"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Encadré",value:"framed"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Fond Coloré",value:"backgrounded"})]}),(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Disposition",onChange:function(e){n({disposition:e})},value:g,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Gauche",value:"left"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Droite",value:"right"})]})]}),"backgrounded"===j&&(0,l.jsxs)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Arrière plan","deligraph-blocks"),children:[(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Type de forme",onChange:e=>n({shapeType:e}),value:C,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Variation A",value:"variationA"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Variation B",value:"variationB"})]}),(0,l.jsx)(c.ColorPalette,{colors:p,value:_,onChange:function(e){e&&(n({backgroundColor:e}),function(e){if(!e)return;const o=function(e){if(!e)return!0;let o=e.replace("#","");return 3===o.length&&(o=o.split("").map(e=>e+e).join("")),(.299*parseInt(o.substr(0,2),16)+.587*parseInt(o.substr(2,2),16)+.114*parseInt(o.substr(4,2),16))/255>.5}(e);n({hasLightBackground:o})}(e))}})]}),"framed"===j&&(0,l.jsxs)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Bordure","deligraph-blocks"),children:[(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Type de forme",onChange:e=>n({shapeType:e}),value:C,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Variation A",value:"variationA"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Variation B",value:"variationB"})]}),(0,l.jsx)(c.ColorPalette,{colors:p,value:f,onChange:e=>n({borderColor:e})})]}),(0,l.jsxs)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Image d'accompagnement","deligraph-blocks"),initialOpen:!1,children:[h&&(0,l.jsx)("img",{src:h,alt:b}),(0,l.jsxs)("div",{className:"media-replace-container",children:[(0,l.jsx)(r.MediaReplaceFlow,{mediaId:m,mediaUrl:h,allowedTypes:["image"],accept:"image/*",onSelect:w,name:h?(0,o.__)("Remplacer","homegrade-blocks"):(0,o.__)("Ajouter votre image manuellement","homegrade-blocks")}),h&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(c.Button,{className:"custom-flow-button",variant:"primary",icon:i,label:"Supprimer",onClick:function(){n({coverId:null,coverAlt:null,coverUrl:null})}})})]}),(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Type d'image",onChange:function(e){n({coverType:e})},value:u,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Classique",value:"classic"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Encadrée",value:"photoframe"})]}),(0,l.jsxs)(c.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Taille de l'image",onChange:e=>n({coverSize:e}),value:v,children:[(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Big",value:"large"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Grande",value:"grande"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Moyenne",value:"medium"}),(0,l.jsx)(c.__experimentalToggleGroupControlOption,{label:"Petite",value:"small"})]})]}),(0,l.jsx)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Couleur du texte","deligraph-blocks"),initialOpen:!1,children:(0,l.jsx)(c.ColorPalette,{colors:p,value:k,onChange:e=>n({textColor:e})})})]}),(0,l.jsxs)("section",{...(0,r.useBlockProps)({className:`deligraph-blocks-chapter-section chapter-section chapter-section--${g} chapter-section--${j}\n\t\t\t\t\t\t${"full"===x?"chapter-section--width-full":"chapter-section--width-contained"}\n\t\t\t\n\t\t\t\t\t\t${d?"chapter-section--bg-light":"chapter-section--bg-dark"}`,style:{"--chapter-section-text-color":k||"#136f63","--cta-current-color":"backgrounded"===j?"inherit":"var(--wp--preset--color--primary) !important"}}),children:["backgrounded"===j&&_&&"variationA"===C&&(0,l.jsx)(a,{backgroundColor:_,borderColor:"none"}),"backgrounded"===j&&_&&"variationB"===C&&(0,l.jsx)(t,{backgroundColor:_,borderColor:"none"}),"framed"===j&&_&&"variationA"===C&&(0,l.jsx)(a,{backgroundColor:"none",borderColor:f}),"framed"===j&&_&&"variationB"===C&&(0,l.jsx)(t,{backgroundColor:"none",borderColor:f}),(0,l.jsx)("div",{className:"chapter-section__content",children:(0,l.jsx)("div",{className:"chapter-section__innerblocks",children:(0,l.jsx)(r.InnerBlocks,{template:[["carhop-blocks/heading",{innerBlocks:[["core/heading",{content:"Un titre précis "}]]}],["core/paragraph",{className:"chapter-section__title",placeholder:"Chapter Title",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue augue, sagittis quis mauris in, consequat vehicula est. Aliquam quis nulla ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras bibendum eget lorem eget aliquet. Fusce vel consequat neque. "}]],allowedBlocks:["core/heading","core/paragraph","core/list","core/file","core/button","core/buttons","carhop-blocks/heading","carhop-blocks/cta","carhop-blocks/cta-group"]})})}),h&&(0,l.jsx)("img",{className:`chapter-section__cover chapter-section__cover--${v} chapter-section__cover--${u}`,src:h,alt:b}),!h&&(0,l.jsx)(r.MediaPlaceholder,{accept:"image/*",allowedTypes:["image"],onSelect:w,multiple:!1,handleUpload:!0})]})]})},save:function({attributes:e}){const{hasLightBackground:o,disposition:n,coverUrl:i,coverAlt:c,coverSize:s,coverType:p,backgroundColor:d,blockWidth:g,textColor:u,shapeType:h,blockVariant:b,borderColor:m}=e;return(0,l.jsxs)("section",{...r.useBlockProps.save({className:`deligraph-blocks-chapter-section chapter-section chapter-section--${n} chapter-section--${b}\n\t\t\t${"full"===g?"chapter-section--width-full":"chapter-section--width-contained"}\n\t\t\t\n\t\t\t\t\t${o?"chapter-section--bg-light":"chapter-section--bg-dark"}`,style:{"--chapter-section-text-color":u||"var(--advised-text-color)","--cta-current-color":"backgrounded"===b?"inherit":"var(--wp--preset--color--primary) !important"}}),children:["backgrounded"===b&&d&&"variationA"===h&&(0,l.jsx)(a,{backgroundColor:d,borderColor:"none"}),"backgrounded"===b&&d&&"variationB"===h&&(0,l.jsx)(t,{backgroundColor:d,borderColor:"none"}),"framed"===b&&d&&"variationA"===h&&(0,l.jsx)(a,{backgroundColor:"none",borderColor:m}),"framed"===b&&d&&"variationB"===h&&(0,l.jsx)(t,{backgroundColor:"none",borderColor:m}),(0,l.jsx)("div",{className:"chapter-section__content",children:(0,l.jsx)("div",{className:"chapter-section__innerblocks",children:(0,l.jsx)(r.InnerBlocks.Content,{})})}),i&&(0,l.jsx)("img",{className:`chapter-section__cover chapter-section__cover--${s} chapter-section__cover--${p}`,src:i,alt:c})]})}})}},r={};function l(e){var a=r[e];if(void 0!==a)return a.exports;var t=r[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,r,a,t)=>{if(!r){var n=1/0;for(p=0;p=t)&&Object.keys(l.O).every(e=>l.O[e](r[c]))?r.splice(c--,1):(i=!1,t0&&e[p-1][2]>t;p--)e[p]=e[p-1];e[p]=[r,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={1509:0,6969:0};l.O.j=o=>0===e[o];var o=(o,r)=>{var a,t,[n,i,c]=r,s=0;if(n.some(o=>0!==e[o])){for(a in i)l.o(i,a)&&(l.m[a]=i[a]);if(c)var p=c(l)}for(o&&o(r);sl(3603));a=l.O(a)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./_utilities/utilities.js": +/*!*********************************!*\ + !*** ./_utilities/utilities.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ isColorLight: () => (/* binding */ isColorLight) +/* harmony export */ }); +// Fonction pour déterminer si une couleur est claire ou sombre +function isColorLight(color) { + // Si pas de couleur, considérer comme claire + if (!color) return true; + + // Convertir hex en RGB + let hex = color.replace("#", ""); + if (hex.length === 3) { + hex = hex.split("").map(char => char + char).join(""); + } + const r = parseInt(hex.substr(0, 2), 16); + const g = parseInt(hex.substr(2, 2), 16); + const b = parseInt(hex.substr(4, 2), 16); + + // Calculer la luminance relative (formule standard) + const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255; + + // Si luminance > 0.5, la couleur est claire + return luminance > 0.5; +} + +/***/ }), + +/***/ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js ***! + \*****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ trash_default) +/* harmony export */ }); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +// packages/icons/src/library/trash.tsx + + +var trash_default = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)( + _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, + { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z" + } +) }); + +//# sourceMappingURL=trash.js.map + + +/***/ }), + +/***/ "./src/chapter-section/block.json": +/*!****************************************!*\ + !*** ./src/chapter-section/block.json ***! + \****************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/chapter-section","version":"0.1.0","title":" Section Chapitre","category":"carhop-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false,"border":{"color":true,"style":true,"width":true}},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php","attributes":{"align":{"type":"string","default":"full"},"blockWidth":{"type":"string","default":"full","enum":["full","contained"]},"coverType":{"type":"string","default":"image","enum":["classic","photoframe"]},"coverUrl":{"type":"string"},"coverAlt":{"type":"string"},"coverId":{"type":"number"},"coverSize":{"type":"string","default":"large","enum":["small","medium","grande","large"]},"disposition":{"type":"string","default":"left","enum":["left","right"]},"hasBorder":{"type":"boolean","default":false},"blockVariant":{"type":"string","default":"framed","enum":["framed","backgrounded","nude"]},"borderColor":{"type":"string","default":"#136f63"},"backgroundColor":{"type":"string","default":"#ffffff"},"hasLightBackground":{"type":"boolean","default":true},"textColor":{"type":"string","default":"#136f63"},"shapeType":{"type":"string","default":"variationA","enum":["variationA","variationB"]}},"usesContext":["postType","postId"]}'); + +/***/ }), + +/***/ "./src/chapter-section/edit.js": +/*!*************************************!*\ + !*** ./src/chapter-section/edit.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _shapeA_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapeA.jsx */ "./src/chapter-section/shapeA.jsx"); +/* harmony import */ var _shapeB_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapeB.jsx */ "./src/chapter-section/shapeB.jsx"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./editor.scss */ "./src/chapter-section/editor.scss"); +/* harmony import */ var _utilities_utilities__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_utilities/utilities */ "./_utilities/utilities.js"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__); + + + + + + + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme"); + const { + hasLightBackground, + disposition, + coverType, + coverUrl, + coverAlt, + coverId, + coverSize, + backgroundColor, + blockWidth, + textColor, + shapeType, + blockVariant, + borderColor + } = attributes; + function onDispositionChange(disposition) { + setAttributes({ + disposition + }); + } + function setCoverAttributes(cover) { + setAttributes({ + coverId: cover.id, + coverAlt: cover.alt, + coverUrl: cover.url + }); + } + function removeCoverAttributes() { + setAttributes({ + coverId: null, + coverAlt: null, + coverUrl: null + }); + } + function onBackgroundColorChange(value) { + if (!value) return; + setAttributes({ + backgroundColor: value + }); + setHasLightBackground(value); + } + function onCoverTypeChange(value) { + setAttributes({ + coverType: value + }); + } + function onBlockVariantChange(value) { + setAttributes({ + blockVariant: value + }); + if (value === "framed" || value === "nude") { + setAttributes({ + backgroundColor: "#fff" + }); + setAttributes({ + hasLightBackground: true + }); + } + } + function setHasLightBackground(backgroundColor) { + if (!backgroundColor) return; + const isLightBackgroundColor = (0,_utilities_utilities__WEBPACK_IMPORTED_MODULE_7__.isColorLight)(backgroundColor); + setAttributes({ + hasLightBackground: isLightBackgroundColor + }); + } + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Aspect & Variante de bloc", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Largeur du bloc", + onChange: value => setAttributes({ + blockWidth: value + }), + value: blockWidth, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Contenue", + value: "contained" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Pleine largeur", + value: "full" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Mod\xE8le de bloc", + onChange: onBlockVariantChange, + value: blockVariant, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Nu", + value: "nude" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Encadr\xE9", + value: "framed" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Fond Color\xE9", + value: "backgrounded" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Disposition", + onChange: onDispositionChange, + value: disposition, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Gauche", + value: "left" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Droite", + value: "right" + })] + })] + }), blockVariant === "backgrounded" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Arrière plan", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Type de forme", + onChange: value => setAttributes({ + shapeType: value + }), + value: shapeType, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Variation A", + value: "variationA" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Variation B", + value: "variationB" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.ColorPalette, { + colors: colors, + value: backgroundColor, + onChange: onBackgroundColorChange + })] + }), blockVariant === "framed" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Bordure", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Type de forme", + onChange: value => setAttributes({ + shapeType: value + }), + value: shapeType, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Variation A", + value: "variationA" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Variation B", + value: "variationB" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.ColorPalette, { + colors: colors, + value: borderColor, + onChange: value => setAttributes({ + borderColor: value + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Image d'accompagnement", "deligraph-blocks"), + initialOpen: false, + children: [coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("img", { + src: coverUrl, + alt: coverAlt + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", { + className: "media-replace-container", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaReplaceFlow, { + mediaId: coverId, + mediaUrl: coverUrl, + allowedTypes: ["image"], + accept: "image/*", + onSelect: setCoverAttributes, + name: !coverUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Ajouter votre image manuellement", "homegrade-blocks") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remplacer", "homegrade-blocks") + }), coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.Button, { + className: "custom-flow-button", + variant: "primary", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"], + label: "Supprimer", + onClick: removeCoverAttributes + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Type d'image", + onChange: onCoverTypeChange, + value: coverType, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Classique", + value: "classic" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Encadr\xE9e", + value: "photoframe" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Taille de l'image", + onChange: coverSize => setAttributes({ + coverSize + }), + value: coverSize, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Big", + value: "large" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Grande", + value: "grande" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Moyenne", + value: "medium" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalToggleGroupControlOption, { + label: "Petite", + value: "small" + })] + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Couleur du texte", "deligraph-blocks"), + initialOpen: false, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.ColorPalette, { + colors: colors, + value: textColor, + onChange: value => setAttributes({ + textColor: value + }) + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `deligraph-blocks-chapter-section chapter-section chapter-section--${disposition} chapter-section--${blockVariant} + ${blockWidth === "full" ? "chapter-section--width-full" : "chapter-section--width-contained"} + + ${hasLightBackground ? "chapter-section--bg-light" : "chapter-section--bg-dark"}`, + style: { + "--chapter-section-text-color": textColor ? textColor : "#136f63", + "--cta-current-color": blockVariant === "backgrounded" ? "inherit" : "var(--wp--preset--color--primary) !important" + } + }), + children: [blockVariant === "backgrounded" && backgroundColor && shapeType === "variationA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "variationB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "framed" && backgroundColor && shapeType === "variationA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "variationB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", { + className: "chapter-section__content", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", { + className: "chapter-section__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["carhop-blocks/heading", { + innerBlocks: [["core/heading", { + content: "Un titre précis " + }]] + }], ["core/paragraph", { + className: "chapter-section__title", + placeholder: "Chapter Title", + content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue augue, sagittis quis mauris in, consequat vehicula est. Aliquam quis nulla ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras bibendum eget lorem eget aliquet. Fusce vel consequat neque. " + }]], + allowedBlocks: ["core/heading", "core/paragraph", "core/list", "core/file", "core/button", "core/buttons", "carhop-blocks/heading", "carhop-blocks/cta", "carhop-blocks/cta-group"] + }) + }) + }), coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("img", { + className: `chapter-section__cover chapter-section__cover--${coverSize} chapter-section__cover--${coverType}`, + src: coverUrl, + alt: coverAlt + }), !coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaPlaceholder, { + accept: "image/*", + allowedTypes: ["image"], + onSelect: setCoverAttributes, + multiple: false, + handleUpload: true + })] + })] + }); +} + +/***/ }), + +/***/ "./src/chapter-section/editor.scss": +/*!*****************************************!*\ + !*** ./src/chapter-section/editor.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/chapter-section/index.js": +/*!**************************************!*\ + !*** ./src/chapter-section/index.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/chapter-section/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/chapter-section/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/chapter-section/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/chapter-section/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M21,7H3V4A1,1,0,0,1,4,3H20a1,1,0,0,1,1,1ZM3,20V9H21V20a1,1,0,0,1-1,1H4A1,1,0,0,1,3,20Zm3-6H18V12H6Zm0,4h6V16H6Z" + }) + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/chapter-section/save.js": +/*!*************************************!*\ + !*** ./src/chapter-section/save.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shapeA.jsx */ "./src/chapter-section/shapeA.jsx"); +/* harmony import */ var _shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapeB.jsx */ "./src/chapter-section/shapeB.jsx"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + +function save({ + attributes +}) { + const { + hasLightBackground, + disposition, + coverUrl, + coverAlt, + coverSize, + coverType, + backgroundColor, + blockWidth, + textColor, + shapeType, + blockVariant, + borderColor + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `deligraph-blocks-chapter-section chapter-section chapter-section--${disposition} chapter-section--${blockVariant} + ${blockWidth === "full" ? "chapter-section--width-full" : "chapter-section--width-contained"} + + ${hasLightBackground ? "chapter-section--bg-light" : "chapter-section--bg-dark"}`, + style: { + "--chapter-section-text-color": textColor ? textColor : "var(--advised-text-color)", + "--cta-current-color": blockVariant === "backgrounded" ? "inherit" : "var(--wp--preset--color--primary) !important" + } + }), + children: [blockVariant === "backgrounded" && backgroundColor && shapeType === "variationA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "variationB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "framed" && backgroundColor && shapeType === "variationA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "variationB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", { + className: "chapter-section__content", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", { + className: "chapter-section__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }) + }), coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", { + className: `chapter-section__cover chapter-section__cover--${coverSize} chapter-section__cover--${coverType}`, + src: coverUrl, + alt: coverAlt + })] + }); +} + +/***/ }), + +/***/ "./src/chapter-section/shapeA.jsx": +/*!****************************************!*\ + !*** ./src/chapter-section/shapeA.jsx ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ ShapeA) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function ShapeA({ + backgroundOrientation, + backgroundColor, + borderColor +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "1440", + height: "744", + viewBox: "0 0 1440 744", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + className: `chapter-section__background chapter-section__background--${backgroundOrientation}`, + preserveAspectRatio: "none", + vectorEffect: "non-scaling-stroke", + overflow: "visible", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("path", { + d: "M0 0H1440V686.701L0 744V0Z", + fill: backgroundColor, + stroke: borderColor, + strokeWidth: borderColor ? "2px" : "0", + style: { + strokeLinejoin: "round", + vectorEffect: "non-scaling-stroke" + } + }) + }); +} + +/***/ }), + +/***/ "./src/chapter-section/shapeB.jsx": +/*!****************************************!*\ + !*** ./src/chapter-section/shapeB.jsx ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ ShapeB) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function ShapeB({ + backgroundOrientation, + backgroundColor, + borderColor +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + className: `chapter-section__background chapter-section__background--${backgroundOrientation}`, + width: "1302", + height: "654", + viewBox: "0 0 1302 654", + preserveAspectRatio: "none", + vectorEffect: "non-scaling-stroke", + overflow: "visible", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("path", { + d: "M1302 0L0 15.8281V654L1302 642.633L1302 0Z", + fill: backgroundColor, + stroke: borderColor, + strokeWidth: borderColor ? "2px" : "0", + style: { + strokeLinejoin: "round", + vectorEffect: "non-scaling-stroke" + } + }) + }); +} + +/***/ }), + +/***/ "./src/chapter-section/style.scss": +/*!****************************************!*\ + !*** ./src/chapter-section/style.scss ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/primitives": +/*!************************************!*\ + !*** external ["wp","primitives"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["primitives"]; + +/***/ }), + +/***/ "react": +/*!************************!*\ + !*** external "React" ***! + \************************/ +/***/ ((module) => { + +module.exports = window["React"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "chapter-section/index": 0, +/******/ "chapter-section/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["chapter-section/style-index"], () => (__webpack_require__("./src/chapter-section/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/index.js.map b/plugins/carhop-blocks/build/chapter-section/index.js.map new file mode 100644 index 0000000..1884f2b --- /dev/null +++ b/plugins/carhop-blocks/build/chapter-section/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"chapter-section/index.js","mappings":";;;;;;;;;;;;;;AAAA;AACO,SAASA,YAAYA,CAACC,KAAK,EAAE;EACnC;EACA,IAAI,CAACA,KAAK,EAAE,OAAO,IAAI;;EAEvB;EACA,IAAIC,GAAG,GAAGD,KAAK,CA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;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./_utilities/utilities.js","webpack://carhop-blocks/./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js","webpack://carhop-blocks/./src/chapter-section/edit.js","webpack://carhop-blocks/./src/chapter-section/editor.scss?4f3a","webpack://carhop-blocks/./src/chapter-section/index.js","webpack://carhop-blocks/./src/chapter-section/save.js","webpack://carhop-blocks/./src/chapter-section/shapeA.jsx","webpack://carhop-blocks/./src/chapter-section/shapeB.jsx","webpack://carhop-blocks/./src/chapter-section/style.scss?ef55","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"primitives\"]","webpack://carhop-blocks/external window \"React\"","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["// Fonction pour déterminer si une couleur est claire ou sombre\r\nexport function isColorLight(color) {\r\n\t// Si pas de couleur, considérer comme claire\r\n\tif (!color) return true;\r\n\r\n\t// Convertir hex en RGB\r\n\tlet hex = color.replace(\"#\", \"\");\r\n\tif (hex.length === 3) {\r\n\t\thex = hex\r\n\t\t\t.split(\"\")\r\n\t\t\t.map((char) => char + char)\r\n\t\t\t.join(\"\");\r\n\t}\r\n\r\n\tconst r = parseInt(hex.substr(0, 2), 16);\r\n\tconst g = parseInt(hex.substr(2, 2), 16);\r\n\tconst b = parseInt(hex.substr(4, 2), 16);\r\n\r\n\t// Calculer la luminance relative (formule standard)\r\n\tconst luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\r\n\r\n\t// Si luminance > 0.5, la couleur est claire\r\n\treturn luminance > 0.5;\r\n}\r\n","// packages/icons/src/library/trash.tsx\nimport { Path, SVG } from \"@wordpress/primitives\";\nimport { jsx } from \"react/jsx-runtime\";\nvar trash_default = /* @__PURE__ */ jsx(SVG, { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", children: /* @__PURE__ */ jsx(\n Path,\n {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z\"\n }\n) });\nexport {\n trash_default as default\n};\n//# sourceMappingURL=trash.js.map\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tInnerBlocks,\n\tuseBlockProps,\n\tInspectorControls,\n\tMediaReplaceFlow,\n\tMediaPlaceholder,\n\tuseSetting,\n} from \"@wordpress/block-editor\";\nimport shapeA from \"./shapeA.jsx\";\nimport shapeB from \"./shapeB.jsx\";\nimport { lock, trash } from \"@wordpress/icons\";\nimport { ColorPalette } from \"@wordpress/components\";\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tButton,\n\tCheckboxControl,\n} from \"@wordpress/components\";\n\nimport \"./editor.scss\";\nimport { isColorLight } from \"../../_utilities/utilities\";\nimport ShapeA from \"./shapeA.jsx\";\nimport ShapeB from \"./shapeB.jsx\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst colors = useSetting(\"color.palette.theme\");\n\tconst {\n\t\thasLightBackground,\n\t\tdisposition,\n\t\tcoverType,\n\t\tcoverUrl,\n\t\tcoverAlt,\n\t\tcoverId,\n\t\tcoverSize,\n\t\tbackgroundColor,\n\t\tblockWidth,\n\t\ttextColor,\n\t\tshapeType,\n\t\tblockVariant,\n\t\tborderColor,\n\t} = attributes;\n\n\tfunction onDispositionChange(disposition) {\n\t\tsetAttributes({ disposition });\n\t}\n\n\tfunction setCoverAttributes(cover) {\n\t\tsetAttributes({\n\t\t\tcoverId: cover.id,\n\t\t\tcoverAlt: cover.alt,\n\t\t\tcoverUrl: cover.url,\n\t\t});\n\t}\n\tfunction removeCoverAttributes() {\n\t\tsetAttributes({\n\t\t\tcoverId: null,\n\t\t\tcoverAlt: null,\n\t\t\tcoverUrl: null,\n\t\t});\n\t}\n\tfunction onBackgroundColorChange(value) {\n\t\tif (!value) return;\n\t\tsetAttributes({ backgroundColor: value });\n\t\tsetHasLightBackground(value);\n\t}\n\n\tfunction onCoverTypeChange(value) {\n\t\tsetAttributes({ coverType: value });\n\t}\n\n\tfunction onBlockVariantChange(value) {\n\t\tsetAttributes({ blockVariant: value });\n\n\t\tif (value === \"framed\" || value === \"nude\") {\n\t\t\tsetAttributes({ backgroundColor: \"#fff\" });\n\t\t\tsetAttributes({ hasLightBackground: true });\n\t\t}\n\t}\n\n\tfunction setHasLightBackground(backgroundColor) {\n\t\tif (!backgroundColor) return;\n\n\t\tconst isLightBackgroundColor = isColorLight(backgroundColor);\n\t\tsetAttributes({ hasLightBackground: isLightBackgroundColor });\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{/* Largeur du bloc */}\n\t\t\t\t\t setAttributes({ blockWidth: value })}\n\t\t\t\t\t\tvalue={blockWidth}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{/* Modèle de bloc */}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{/* Disposition */}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{blockVariant === \"backgrounded\" && (\n\t\t\t\t\t\n\t\t\t\t\t\t setAttributes({ shapeType: value })}\n\t\t\t\t\t\t\tvalue={shapeType}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" && (\n\t\t\t\t\t\n\t\t\t\t\t\t setAttributes({ shapeType: value })}\n\t\t\t\t\t\t\tvalue={shapeType}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t setAttributes({ borderColor: value })}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\t\t{coverUrl && {coverAlt}}\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t{coverUrl && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t setAttributes({ coverSize })}\n\t\t\t\t\t\tvalue={coverSize}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t setAttributes({ textColor: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"variationA\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"variationB\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"variationA\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"variationB\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t{coverUrl && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t{!coverUrl && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\nimport ShapeA from \"./shapeA.jsx\";\nimport ShapeB from \"./shapeB.jsx\";\nexport default function save({ attributes }) {\n\tconst {\n\t\thasLightBackground,\n\t\tdisposition,\n\t\tcoverUrl,\n\t\tcoverAlt,\n\t\tcoverSize,\n\t\tcoverType,\n\t\tbackgroundColor,\n\t\tblockWidth,\n\t\ttextColor,\n\t\tshapeType,\n\t\tblockVariant,\n\t\tborderColor,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"variationA\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"variationB\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"variationA\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"variationB\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t{coverUrl && (\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n}\n","import React from \"react\";\r\n\r\nexport default function ShapeA({\r\n\tbackgroundOrientation,\r\n\tbackgroundColor,\r\n\tborderColor,\r\n}) {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React from \"react\";\r\n\r\nexport default function ShapeB({\r\n\tbackgroundOrientation,\r\n\tbackgroundColor,\r\n\tborderColor,\r\n}) {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"chapter-section/index\": 0,\n\t\"chapter-section/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"chapter-section/style-index\"], () => (__webpack_require__(\"./src/chapter-section/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["isColorLight","color","hex","replace","length","split","map","char","join","r","parseInt","substr","g","b","luminance","__","InnerBlocks","useBlockProps","InspectorControls","MediaReplaceFlow","MediaPlaceholder","useSetting","shapeA","shapeB","lock","trash","ColorPalette","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Button","CheckboxControl","ShapeA","ShapeB","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","colors","hasLightBackground","disposition","coverType","coverUrl","coverAlt","coverId","coverSize","backgroundColor","blockWidth","textColor","shapeType","blockVariant","borderColor","onDispositionChange","setCoverAttributes","cover","id","alt","url","removeCoverAttributes","onBackgroundColorChange","value","setHasLightBackground","onCoverTypeChange","onBlockVariantChange","isLightBackgroundColor","children","className","title","isBlock","label","onChange","initialOpen","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","variant","icon","onClick","style","template","innerBlocks","content","placeholder","allowedBlocks","multiple","handleUpload","registerBlockType","save","metadata","xmlns","viewBox","d","foreground","edit","RichText","Content","React","backgroundOrientation","width","height","fill","preserveAspectRatio","vectorEffect","overflow","stroke","strokeWidth","strokeLinejoin"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/style-index.css b/plugins/carhop-blocks/build/chapter-section/style-index.css index c2943d1..bdc8226 100644 --- a/plugins/carhop-blocks/build/chapter-section/style-index.css +++ b/plugins/carhop-blocks/build/chapter-section/style-index.css @@ -1 +1,8 @@ -.wp-block-carhop-blocks-chapter-section{margin:2rem calc(50% - 50vw)} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/chapter-section/style.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-chapter-section { + margin: 2rem calc(50% - 50vw); +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/style-index.css.map b/plugins/carhop-blocks/build/chapter-section/style-index.css.map new file mode 100644 index 0000000..fa9dadd --- /dev/null +++ b/plugins/carhop-blocks/build/chapter-section/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"chapter-section/style-index.css","mappings":";;;AAAA;EACC;AACD,C","sources":["webpack://carhop-blocks/./src/chapter-section/style.scss"],"sourcesContent":[".wp-block-carhop-blocks-chapter-section {\r\n\tmargin: 2rem calc(50% - 50vw);\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/chapter-section/view.js b/plugins/carhop-blocks/build/chapter-section/view.js index e69de29..7f20901 100644 --- a/plugins/carhop-blocks/build/chapter-section/view.js +++ b/plugins/carhop-blocks/build/chapter-section/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*************************************!*\ + !*** ./src/chapter-section/view.js ***! + \*************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/index.css b/plugins/carhop-blocks/build/company-timeline/index.css index 38964c4..d0c40d1 100644 --- a/plugins/carhop-blocks/build/company-timeline/index.css +++ b/plugins/carhop-blocks/build/company-timeline/index.css @@ -1 +1,30 @@ -.wp-block-telex-company-timeline .timeline-entry-content .timeline-description:focus,.wp-block-telex-company-timeline .timeline-entry-content .timeline-title:focus{outline:2px solid #3b82f6;outline-offset:2px}.wp-block-telex-company-timeline .timeline-entry-content .timeline-media button{margin-top:12px}.components-panel__body .components-card{margin-bottom:12px}.components-panel__body .components-card .components-card__header{border-bottom:1px solid #e2e8f0}.components-panel__body .components-card .components-card__body .components-base-control{margin-bottom:16px}.components-panel__body .components-card .components-card__body .components-base-control:last-child{margin-bottom:0} +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/company-timeline/editor.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-telex-company-timeline .timeline-entry-content .timeline-title:focus, +.wp-block-telex-company-timeline .timeline-entry-content .timeline-description:focus { + outline: 2px solid #3b82f6; + outline-offset: 2px; +} +.wp-block-telex-company-timeline .timeline-entry-content .timeline-media button { + margin-top: 12px; +} +.components-panel__body .components-card { + margin-bottom: 12px; +} +.components-panel__body .components-card .components-card__header { + border-bottom: 1px solid #e2e8f0; +} +.components-panel__body .components-card .components-card__body .components-base-control { + margin-bottom: 16px; +} +.components-panel__body .components-card .components-card__body .components-base-control:last-child { + margin-bottom: 0; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/index.css.map b/plugins/carhop-blocks/build/company-timeline/index.css.map new file mode 100644 index 0000000..64e04ce --- /dev/null +++ b/plugins/carhop-blocks/build/company-timeline/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"company-timeline/index.css","mappings":";;;AAAA;;;;EAAA;AAUG;;EACC;EACA;AAHJ;AAQG;EACC;AANJ;AAaC;EACC;AAVF;AAYE;EACC;AAVH;AAcG;EACC;AAZJ;AAcI;EACC;AAZL,C","sources":["webpack://carhop-blocks/./src/company-timeline/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-telex-company-timeline {\n\t.timeline-entry-content {\n\t\t.timeline-title,\n\t\t.timeline-description {\n\t\t\t&:focus {\n\t\t\t\toutline: 2px solid #3b82f6;\n\t\t\t\toutline-offset: 2px;\n\t\t\t}\n\t\t}\n\n\t\t.timeline-media {\n\t\t\tbutton {\n\t\t\t\tmargin-top: 12px;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.components-panel__body {\n\t.components-card {\n\t\tmargin-bottom: 12px;\n\n\t\t.components-card__header {\n\t\t\tborder-bottom: 1px solid #e2e8f0;\n\t\t}\n\n\t\t.components-card__body {\n\t\t\t.components-base-control {\n\t\t\t\tmargin-bottom: 16px;\n\n\t\t\t\t&:last-child {\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/index.js b/plugins/carhop-blocks/build/company-timeline/index.js index 3374789..7c1d6da 100644 --- a/plugins/carhop-blocks/build/company-timeline/index.js +++ b/plugins/carhop-blocks/build/company-timeline/index.js @@ -1 +1,603 @@ -(()=>{"use strict";var e,i={4171:()=>{const e=window.wp.blocks,i=window.wp.i18n,n=window.wp.blockEditor,t=window.wp.components,a=window.wp.element,r=window.ReactJSXRuntime,l=JSON.parse('{"UU":"telex/block-company-timeline"}');(0,e.registerBlockType)(l.UU,{edit:function({attributes:e,setAttributes:l}){const{entries:s}=e,[c,o]=(0,a.useState)(null),m=(e,i,n)=>{const t=[...s];t[e]={...t[e],[i]:n},l({entries:t})},d=[...s].sort((e,i)=>parseInt(e.year)-parseInt(i.year)),p=[...new Set(d.map(e=>e.year))];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.InspectorControls,{children:(0,r.jsxs)(t.PanelBody,{title:(0,i.__)("Timeline Entries","company-timeline"),children:[(0,r.jsx)(t.Button,{variant:"primary",onClick:()=>{const e=[...s,{year:(new Date).getFullYear().toString(),title:"",description:"",imageUrl:"",imageId:0}];l({entries:e})},style:{marginBottom:"16px"},children:(0,i.__)("Add Timeline Entry","company-timeline")}),d.map((e,n)=>{const a=s.findIndex(i=>i.year===e.year&&i.title===e.title&&i.description===e.description);return(0,r.jsxs)(t.Card,{style:{marginBottom:"12px"},children:[(0,r.jsx)(t.CardHeader,{children:(0,r.jsx)("strong",{children:e.year||(0,i.__)("New Entry","company-timeline")})}),(0,r.jsxs)(t.CardBody,{children:[(0,r.jsx)(t.TextControl,{label:(0,i.__)("Year","company-timeline"),value:e.year,onChange:e=>m(a,"year",e),type:"number"}),(0,r.jsx)(t.Button,{isDestructive:!0,onClick:()=>(e=>{const i=s.filter((i,n)=>n!==e);l({entries:i})})(a),style:{marginTop:"8px"},children:(0,i.__)("Remove Entry","company-timeline")})]})]},n)})]})}),(0,r.jsx)("div",{...(0,n.useBlockProps)(),children:(0,r.jsxs)("div",{className:"wp-block-telex-company-timeline",children:[(0,r.jsx)("div",{className:"timeline-sidebar",children:(0,r.jsxs)("div",{className:"timeline-years",children:[(0,r.jsx)("h3",{children:(0,i.__)("Timeline","company-timeline")}),p.map(e=>(0,r.jsx)("button",{className:"year-link "+(c===e?"active":""),onClick:()=>o(e),children:e},e))]})}),(0,r.jsx)("div",{className:"timeline-content",children:d.map((e,a)=>{const l=s.findIndex(i=>i.year===e.year&&i.title===e.title&&i.description===e.description);return(0,r.jsxs)("div",{className:"timeline-entry","data-year":e.year,children:[(0,r.jsx)("div",{className:"timeline-year-marker",children:(0,r.jsx)("h2",{children:e.year})}),(0,r.jsxs)("div",{className:"timeline-entry-content",children:[(0,r.jsx)(n.RichText,{tagName:"h3",value:e.title,onChange:e=>m(l,"title",e),placeholder:(0,i.__)("Enter milestone title...","company-timeline"),className:"timeline-title"}),(0,r.jsx)(n.RichText,{tagName:"p",value:e.description,onChange:e=>m(l,"description",e),placeholder:(0,i.__)("Enter milestone description...","company-timeline"),className:"timeline-description"}),(0,r.jsx)(n.MediaUploadCheck,{children:(0,r.jsx)(n.MediaUpload,{onSelect:e=>{m(l,"imageUrl",e.url),m(l,"imageId",e.id)},allowedTypes:["image"],value:e.imageId,render:({open:n})=>(0,r.jsx)("div",{className:"timeline-media",children:e.imageUrl?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:e.imageUrl,alt:e.title}),(0,r.jsx)(t.Button,{isDestructive:!0,onClick:()=>{m(l,"imageUrl",""),m(l,"imageId",0)},children:(0,i.__)("Remove Image","company-timeline")})]}):(0,r.jsx)(t.Button,{onClick:n,variant:"secondary",children:(0,i.__)("Add Image","company-timeline")})})})})]})]},a)})})]})})]})},save:function({attributes:e}){const{entries:i}=e,t=[...i].sort((e,i)=>parseInt(e.year)-parseInt(i.year)),a=[...new Set(t.map(e=>e.year))];return(0,r.jsx)("div",{...n.useBlockProps.save(),children:(0,r.jsxs)("div",{className:"wp-block-telex-company-timeline",children:[(0,r.jsx)("div",{className:"timeline-sidebar",children:(0,r.jsxs)("div",{className:"timeline-years",children:[(0,r.jsx)("h3",{children:"Timeline"}),a.map(e=>(0,r.jsx)("a",{href:`#year-${e}`,className:"year-link","data-year":e,children:e},e))]})}),(0,r.jsx)("div",{className:"timeline-content",children:t.map((e,i)=>(0,r.jsxs)("div",{className:"timeline-entry",id:`year-${e.year}`,"data-year":e.year,children:[(0,r.jsx)("div",{className:"timeline-year-marker",children:(0,r.jsx)("h2",{children:e.year})}),(0,r.jsxs)("div",{className:"timeline-entry-content",children:[e.title&&(0,r.jsx)(n.RichText.Content,{tagName:"h3",value:e.title,className:"timeline-title"}),e.description&&(0,r.jsx)(n.RichText.Content,{tagName:"p",value:e.description,className:"timeline-description"}),e.imageUrl&&(0,r.jsx)("div",{className:"timeline-media",children:(0,r.jsx)("img",{src:e.imageUrl,alt:e.title||""})})]})]},i))})]})})}})}},n={};function t(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return i[e](r,r.exports,t),r.exports}t.m=i,e=[],t.O=(i,n,a,r)=>{if(!n){var l=1/0;for(m=0;m=r)&&Object.keys(t.O).every(e=>t.O[e](n[c]))?n.splice(c--,1):(s=!1,r0&&e[m-1][2]>r;m--)e[m]=e[m-1];e[m]=[n,a,r]},t.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={9777:0,661:0};t.O.j=i=>0===e[i];var i=(i,n)=>{var a,r,[l,s,c]=n,o=0;if(l.some(i=>0!==e[i])){for(a in s)t.o(s,a)&&(t.m[a]=s[a]);if(c)var m=c(t)}for(i&&i(n);ot(4171));a=t.O(a)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/company-timeline/block.json": +/*!*****************************************!*\ + !*** ./src/company-timeline/block.json ***! + \*****************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"telex/block-company-timeline","version":"0.1.0","title":"Company Timeline","category":"design","icon":"calendar-alt","description":"Display company milestones with a fixed sidebar navigation and scroll-based highlighting","keywords":["timeline","history","milestones","chronology","events"],"attributes":{"entries":{"type":"array","default":[{"year":"2020","title":"Company Founded","description":"Our journey began with a vision to make a difference.","imageUrl":"","imageId":0}]}},"example":{"attributes":{"entries":[{"year":"2010","title":"The Beginning","description":"Founded with a mission to innovate.","imageUrl":"","imageId":0},{"year":"2015","title":"Major Milestone","description":"Reached 1 million customers worldwide.","imageUrl":"","imageId":0},{"year":"2020","title":"Global Expansion","description":"Opened offices in 25 countries.","imageUrl":"","imageId":0}]}},"supports":{"html":false,"anchor":true,"align":["wide","full"]},"textdomain":"company-timeline","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/company-timeline/edit.js": +/*!**************************************!*\ + !*** ./src/company-timeline/edit.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./editor.scss */ "./src/company-timeline/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + entries + } = attributes; + const [selectedYear, setSelectedYear] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(null); + const addEntry = () => { + const newEntries = [...entries, { + year: new Date().getFullYear().toString(), + title: "", + description: "", + imageUrl: "", + imageId: 0 + }]; + setAttributes({ + entries: newEntries + }); + }; + const updateEntry = (index, field, value) => { + const newEntries = [...entries]; + newEntries[index] = { + ...newEntries[index], + [field]: value + }; + setAttributes({ + entries: newEntries + }); + }; + const removeEntry = index => { + const newEntries = entries.filter((_, i) => i !== index); + setAttributes({ + entries: newEntries + }); + }; + const sortedEntries = [...entries].sort((a, b) => parseInt(a.year) - parseInt(b.year)); + const years = [...new Set(sortedEntries.map(entry => entry.year))]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Timeline Entries", "company-timeline"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "primary", + onClick: addEntry, + style: { + marginBottom: "16px" + }, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Add Timeline Entry", "company-timeline") + }), sortedEntries.map((entry, index) => { + const originalIndex = entries.findIndex(e => e.year === entry.year && e.title === entry.title && e.description === entry.description); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Card, { + style: { + marginBottom: "12px" + }, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CardHeader, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("strong", { + children: entry.year || (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("New Entry", "company-timeline") + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CardBody, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Year", "company-timeline"), + value: entry.year, + onChange: value => updateEntry(originalIndex, "year", value), + type: "number" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + isDestructive: true, + onClick: () => removeEntry(originalIndex), + style: { + marginTop: "8px" + }, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remove Entry", "company-timeline") + })] + })] + }, index); + })] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "wp-block-telex-company-timeline", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "timeline-sidebar", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "timeline-years", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("h3", { + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Timeline", "company-timeline") + }), years.map(year => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("button", { + className: `year-link ${selectedYear === year ? "active" : ""}`, + onClick: () => setSelectedYear(year), + children: year + }, year))] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "timeline-content", + children: sortedEntries.map((entry, index) => { + const originalIndex = entries.findIndex(e => e.year === entry.year && e.title === entry.title && e.description === entry.description); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "timeline-entry", + "data-year": entry.year, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "timeline-year-marker", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("h2", { + children: entry.year + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "timeline-entry-content", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + tagName: "h3", + value: entry.title, + onChange: value => updateEntry(originalIndex, "title", value), + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Enter milestone title...", "company-timeline"), + className: "timeline-title" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + tagName: "p", + value: entry.description, + onChange: value => updateEntry(originalIndex, "description", value), + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Enter milestone description...", "company-timeline"), + className: "timeline-description" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUploadCheck, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUpload, { + onSelect: media => { + updateEntry(originalIndex, "imageUrl", media.url); + updateEntry(originalIndex, "imageId", media.id); + }, + allowedTypes: ["image"], + value: entry.imageId, + render: ({ + open + }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "timeline-media", + children: entry.imageUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("img", { + src: entry.imageUrl, + alt: entry.title + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + isDestructive: true, + onClick: () => { + updateEntry(originalIndex, "imageUrl", ""); + updateEntry(originalIndex, "imageId", 0); + }, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remove Image", "company-timeline") + })] + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + onClick: open, + variant: "secondary", + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Add Image", "company-timeline") + }) + }) + }) + })] + })] + }, index); + }) + })] + }) + })] + }); +} + +/***/ }), + +/***/ "./src/company-timeline/editor.scss": +/*!******************************************!*\ + !*** ./src/company-timeline/editor.scss ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/company-timeline/index.js": +/*!***************************************!*\ + !*** ./src/company-timeline/index.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/company-timeline/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/company-timeline/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/company-timeline/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/company-timeline/block.json"); +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * Internal dependencies + */ + + + + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + /** + * @see ./save.js + */ + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/company-timeline/save.js": +/*!**************************************!*\ + !*** ./src/company-timeline/save.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ + + +/** + * The save function defines the way in which the different attributes should + * be combined into the final markup, which is then serialized by the block + * editor into `post_content`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save + * + * @param {Object} props Block properties + * @return {Element} Element to render. + */ + +function save({ + attributes +}) { + const { + entries + } = attributes; + const sortedEntries = [...entries].sort((a, b) => parseInt(a.year) - parseInt(b.year)); + const years = [...new Set(sortedEntries.map(entry => entry.year))]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "wp-block-telex-company-timeline", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "timeline-sidebar", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "timeline-years", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("h3", { + children: "Timeline" + }), years.map(year => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + href: `#year-${year}`, + className: "year-link", + "data-year": year, + children: year + }, year))] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "timeline-content", + children: sortedEntries.map((entry, index) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "timeline-entry", + id: `year-${entry.year}`, + "data-year": entry.year, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "timeline-year-marker", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("h2", { + children: entry.year + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "timeline-entry-content", + children: [entry.title && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, { + tagName: "h3", + value: entry.title, + className: "timeline-title" + }), entry.description && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, { + tagName: "p", + value: entry.description, + className: "timeline-description" + }), entry.imageUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "timeline-media", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img", { + src: entry.imageUrl, + alt: entry.title || '' + }) + })] + })] + }, index)) + })] + }) + }); +} + +/***/ }), + +/***/ "./src/company-timeline/style.scss": +/*!*****************************************!*\ + !*** ./src/company-timeline/style.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/element": +/*!*********************************!*\ + !*** external ["wp","element"] ***! + \*********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "company-timeline/index": 0, +/******/ "company-timeline/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["company-timeline/style-index"], () => (__webpack_require__("./src/company-timeline/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/index.js.map b/plugins/carhop-blocks/build/company-timeline/index.js.map new file mode 100644 index 0000000..fb98055 --- /dev/null +++ b/plugins/carhop-blocks/build/company-timeline/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"company-timeline/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAQJ;AAUF;AAEe;AAEvB;AAAA;AAER,SAASoB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAQ,CAAC,GAAGF,UAAU;EAC9B,MAAM,CAACG,YAAY,EAAEC,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;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/company-timeline/edit.js","webpack://carhop-blocks/./src/company-timeline/editor.scss?58d5","webpack://carhop-blocks/./src/company-timeline/index.js","webpack://carhop-blocks/./src/company-timeline/save.js","webpack://carhop-blocks/./src/company-timeline/style.scss?7b12","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\n\nimport {\n\tuseBlockProps,\n\tInspectorControls,\n\tMediaUpload,\n\tMediaUploadCheck,\n\tRichText,\n} from \"@wordpress/block-editor\";\n\nimport {\n\tPanelBody,\n\tButton,\n\tTextControl,\n\tCard,\n\tCardBody,\n\tCardHeader,\n\tIconButton,\n} from \"@wordpress/components\";\n\nimport { useState } from \"@wordpress/element\";\n\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { entries } = attributes;\n\tconst [selectedYear, setSelectedYear] = useState(null);\n\n\tconst addEntry = () => {\n\t\tconst newEntries = [\n\t\t\t...entries,\n\t\t\t{\n\t\t\t\tyear: new Date().getFullYear().toString(),\n\t\t\t\ttitle: \"\",\n\t\t\t\tdescription: \"\",\n\t\t\t\timageUrl: \"\",\n\t\t\t\timageId: 0,\n\t\t\t},\n\t\t];\n\t\tsetAttributes({ entries: newEntries });\n\t};\n\n\tconst updateEntry = (index, field, value) => {\n\t\tconst newEntries = [...entries];\n\t\tnewEntries[index] = {\n\t\t\t...newEntries[index],\n\t\t\t[field]: value,\n\t\t};\n\t\tsetAttributes({ entries: newEntries });\n\t};\n\n\tconst removeEntry = (index) => {\n\t\tconst newEntries = entries.filter((_, i) => i !== index);\n\t\tsetAttributes({ entries: newEntries });\n\t};\n\n\tconst sortedEntries = [...entries].sort(\n\t\t(a, b) => parseInt(a.year) - parseInt(b.year)\n\t);\n\n\tconst years = [...new Set(sortedEntries.map((entry) => entry.year))];\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{__(\"Add Timeline Entry\", \"company-timeline\")}\n\t\t\t\t\t\n\n\t\t\t\t\t{sortedEntries.map((entry, index) => {\n\t\t\t\t\t\tconst originalIndex = entries.findIndex(\n\t\t\t\t\t\t\t(e) =>\n\t\t\t\t\t\t\t\te.year === entry.year &&\n\t\t\t\t\t\t\t\te.title === entry.title &&\n\t\t\t\t\t\t\t\te.description === entry.description\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{entry.year || __(\"New Entry\", \"company-timeline\")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"year\", value)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t removeEntry(originalIndex)}\n\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: \"8px\" }}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{__(\"Remove Entry\", \"company-timeline\")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\n\t\t\t\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t

{__(\"Timeline\", \"company-timeline\")}

\n\t\t\t\t\t\t\t{years.map((year) => (\n\t\t\t\t\t\t\t\t setSelectedYear(year)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{year}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t\t\t{sortedEntries.map((entry, index) => {\n\t\t\t\t\t\t\tconst originalIndex = entries.findIndex(\n\t\t\t\t\t\t\t\t(e) =>\n\t\t\t\t\t\t\t\t\te.year === entry.year &&\n\t\t\t\t\t\t\t\t\te.title === entry.title &&\n\t\t\t\t\t\t\t\t\te.description === entry.description\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t

{entry.year}

\n\t\t\t\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"title\", value)\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tplaceholder={__(\n\t\t\t\t\t\t\t\t\t\t\t\t\"Enter milestone title...\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"company-timeline\"\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"timeline-title\"\n\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"description\", value)\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tplaceholder={__(\n\t\t\t\t\t\t\t\t\t\t\t\t\"Enter milestone description...\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"company-timeline\"\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"timeline-description\"\n\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"imageUrl\", media.url);\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"imageId\", media.id);\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tallowedTypes={[\"image\"]}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={entry.imageId}\n\t\t\t\t\t\t\t\t\t\t\t\trender={({ open }) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{entry.imageUrl ? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{entry.title}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"imageUrl\", \"\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateEntry(originalIndex, \"imageId\", 0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{__(\"Remove Image\", \"company-timeline\")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './style.scss';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport save from './save';\nimport metadata from './block.json';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType( metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: Edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n} );\n","/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps, RichText } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @param {Object} props Block properties\n * @return {Element} Element to render.\n */\nexport default function save( { attributes } ) {\n\tconst { entries } = attributes;\n\t\n\tconst sortedEntries = [ ...entries ].sort( ( a, b ) => \n\t\tparseInt( a.year ) - parseInt( b.year )\n\t);\n\n\tconst years = [ ...new Set( sortedEntries.map( entry => entry.year ) ) ];\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t

Timeline

\n\t\t\t\t\t\t{ years.map( ( year ) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{ year }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) ) }\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t{ sortedEntries.map( ( entry, index ) => (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t

{ entry.year }

\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{ entry.title && (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{ entry.description && (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{ entry.imageUrl && (\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t) ) }\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"company-timeline/index\": 0,\n\t\"company-timeline/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"company-timeline/style-index\"], () => (__webpack_require__(\"./src/company-timeline/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InspectorControls","MediaUpload","MediaUploadCheck","RichText","PanelBody","Button","TextControl","Card","CardBody","CardHeader","IconButton","useState","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","entries","selectedYear","setSelectedYear","addEntry","newEntries","year","Date","getFullYear","toString","title","description","imageUrl","imageId","updateEntry","index","field","value","removeEntry","filter","_","i","sortedEntries","sort","a","b","parseInt","years","Set","map","entry","children","variant","onClick","style","marginBottom","originalIndex","findIndex","e","label","onChange","type","isDestructive","marginTop","className","tagName","placeholder","onSelect","media","url","id","allowedTypes","render","open","src","alt","registerBlockType","save","metadata","name","edit","href","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/style-index.css b/plugins/carhop-blocks/build/company-timeline/style-index.css index bb3da03..9b5a672 100644 --- a/plugins/carhop-blocks/build/company-timeline/style-index.css +++ b/plugins/carhop-blocks/build/company-timeline/style-index.css @@ -1 +1,174 @@ -.wp-block-telex-company-timeline{display:flex;gap:60px;margin:0 auto;max-width:1200px;padding:40px 20px;position:relative}.wp-block-telex-company-timeline .timeline-sidebar{align-self:flex-start;flex:0 0 200px;height:-moz-fit-content;height:fit-content;position:sticky;top:100px}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years{background:#f8f9fa;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:24px}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years h3{border-bottom:2px solid #e2e8f0;color:#1e293b;font-size:18px;font-weight:700;margin:0 0 20px;padding-bottom:12px}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link{background:transparent;border:none;border-radius:6px;color:#64748b;cursor:pointer;display:block;font-size:16px;font-weight:600;margin-bottom:8px;padding:12px 16px;text-align:left;text-decoration:none;transition:all .3s ease;width:100%}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link:hover{background:#e2e8f0;color:#1e293b;transform:translateX(4px)}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link.active{background:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,.3);color:#fff}.wp-block-telex-company-timeline .timeline-content{flex:1;min-width:0}.wp-block-telex-company-timeline .timeline-content .timeline-entry{margin-bottom:80px;scroll-margin-top:100px}.wp-block-telex-company-timeline .timeline-content .timeline-entry:last-child{margin-bottom:0}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker{margin-bottom:24px;padding-left:40px;position:relative}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker:before{background:#3b82f6;border-radius:50%;box-shadow:0 0 0 4px rgba(59,130,246,.2);content:"";height:24px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:24px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker h2{color:#1e293b;font-size:32px;font-weight:800;line-height:1;margin:0}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content{background:#fff;border-left:4px solid #3b82f6;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.1);padding:32px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-title{color:#1e293b;font-size:24px;font-weight:700;margin:0 0 16px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-description{color:#475569;font-size:16px;line-height:1.8;margin:0 0 24px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-media{margin-top:24px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-media img{border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);height:auto;width:100%}@media(max-width:768px){.wp-block-telex-company-timeline{flex-direction:column;gap:30px;padding:20px 15px}.wp-block-telex-company-timeline .timeline-sidebar{flex:1;position:static}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years{padding:16px}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years h3{font-size:16px;margin-bottom:12px}.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link{font-size:14px;padding:10px 12px}.wp-block-telex-company-timeline .timeline-content .timeline-entry{margin-bottom:50px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker{padding-left:30px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker:before{height:18px;width:18px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker h2{font-size:24px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content{padding:20px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-title{font-size:20px}.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-description{font-size:15px}} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/company-timeline/style.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-telex-company-timeline { + display: flex; + gap: 60px; + max-width: 1200px; + margin: 0 auto; + padding: 40px 20px; + position: relative; +} +.wp-block-telex-company-timeline .timeline-sidebar { + flex: 0 0 200px; + position: sticky; + top: 100px; + height: -moz-fit-content; + height: fit-content; + align-self: flex-start; +} +.wp-block-telex-company-timeline .timeline-sidebar .timeline-years { + background: #f8f9fa; + border-radius: 8px; + padding: 24px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); +} +.wp-block-telex-company-timeline .timeline-sidebar .timeline-years h3 { + margin: 0 0 20px 0; + font-size: 18px; + font-weight: 700; + color: #1e293b; + border-bottom: 2px solid #e2e8f0; + padding-bottom: 12px; +} +.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link { + display: block; + padding: 12px 16px; + margin-bottom: 8px; + text-decoration: none; + color: #64748b; + font-weight: 600; + font-size: 16px; + border-radius: 6px; + transition: all 0.3s ease; + cursor: pointer; + background: transparent; + border: none; + width: 100%; + text-align: left; +} +.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link:hover { + background: #e2e8f0; + color: #1e293b; + transform: translateX(4px); +} +.wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link.active { + background: #3b82f6; + color: white; + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); +} +.wp-block-telex-company-timeline .timeline-content { + flex: 1; + min-width: 0; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry { + margin-bottom: 80px; + scroll-margin-top: 100px; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry:last-child { + margin-bottom: 0; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker { + margin-bottom: 24px; + position: relative; + padding-left: 40px; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker::before { + content: ""; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + width: 24px; + height: 24px; + background: #3b82f6; + border-radius: 50%; + box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker h2 { + margin: 0; + font-size: 32px; + font-weight: 800; + color: #1e293b; + line-height: 1; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content { + background: white; + border-radius: 12px; + padding: 32px; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); + border-left: 4px solid #3b82f6; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-title { + margin: 0 0 16px 0; + font-size: 24px; + font-weight: 700; + color: #1e293b; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-description { + margin: 0 0 24px 0; + font-size: 16px; + line-height: 1.8; + color: #475569; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-media { + margin-top: 24px; +} +.wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-media img { + width: 100%; + height: auto; + border-radius: 8px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); +} +@media (max-width: 768px) { + .wp-block-telex-company-timeline { + flex-direction: column; + gap: 30px; + padding: 20px 15px; + } + .wp-block-telex-company-timeline .timeline-sidebar { + position: static; + flex: 1; + } + .wp-block-telex-company-timeline .timeline-sidebar .timeline-years { + padding: 16px; + } + .wp-block-telex-company-timeline .timeline-sidebar .timeline-years h3 { + font-size: 16px; + margin-bottom: 12px; + } + .wp-block-telex-company-timeline .timeline-sidebar .timeline-years .year-link { + padding: 10px 12px; + font-size: 14px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry { + margin-bottom: 50px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker { + padding-left: 30px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker::before { + width: 18px; + height: 18px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-year-marker h2 { + font-size: 24px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content { + padding: 20px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-title { + font-size: 20px; + } + .wp-block-telex-company-timeline .timeline-content .timeline-entry .timeline-entry-content .timeline-description { + font-size: 15px; + } +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/style-index.css.map b/plugins/carhop-blocks/build/company-timeline/style-index.css.map new file mode 100644 index 0000000..34ccd89 --- /dev/null +++ b/plugins/carhop-blocks/build/company-timeline/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"company-timeline/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;EACA;EACA;EACA;AAAD;AAEC;EACC;EACA;EACA;EACA;EAAA;EACA;AAAF;AAEE;EACC;EACA;EACA;EACA;AAAH;AAEG;EACC;EACA;EACA;EACA;EACA;EACA;AAAJ;AAGG;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AADJ;AAGI;EACC;EACA;EACA;AADL;AAII;EACC;EACA;EACA;AAFL;AAQC;EACC;EACA;AANF;AAQE;EACC;EACA;AANH;AAQG;EACC;AANJ;AASG;EACC;EACA;EACA;AAPJ;AASI;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAPL;AAUI;EACC;EACA;EACA;EACA;EACA;AARL;AAYG;EACC;EACA;EACA;EACA;EACA;AAVJ;AAYI;EACC;EACA;EACA;EACA;AAVL;AAaI;EACC;EACA;EACA;EACA;AAXL;AAcI;EACC;AAZL;AAcK;EACC;EACA;EACA;EACA;AAZN;AAmBC;EAvID;IAwIE;IACA;IACA;EAhBA;EAkBA;IACC;IACA;EAhBD;EAkBC;IACC;EAhBF;EAkBE;IACC;IACA;EAhBH;EAmBE;IACC;IACA;EAjBH;EAuBC;IACC;EArBF;EAuBE;IACC;EArBH;EAuBG;IACC;IACA;EArBJ;EAwBG;IACC;EAtBJ;EA0BE;IACC;EAxBH;EA0BG;IACC;EAxBJ;EA2BG;IACC;EAzBJ;AACF,C","sources":["webpack://carhop-blocks/./src/company-timeline/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-telex-company-timeline {\n\tdisplay: flex;\n\tgap: 60px;\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n\tpadding: 40px 20px;\n\tposition: relative;\n\n\t.timeline-sidebar {\n\t\tflex: 0 0 200px;\n\t\tposition: sticky;\n\t\ttop: 100px;\n\t\theight: fit-content;\n\t\talign-self: flex-start;\n\n\t\t.timeline-years {\n\t\t\tbackground: #f8f9fa;\n\t\t\tborder-radius: 8px;\n\t\t\tpadding: 24px;\n\t\t\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n\n\t\t\th3 {\n\t\t\t\tmargin: 0 0 20px 0;\n\t\t\t\tfont-size: 18px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tcolor: #1e293b;\n\t\t\t\tborder-bottom: 2px solid #e2e8f0;\n\t\t\t\tpadding-bottom: 12px;\n\t\t\t}\n\n\t\t\t.year-link {\n\t\t\t\tdisplay: block;\n\t\t\t\tpadding: 12px 16px;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\ttext-decoration: none;\n\t\t\t\tcolor: #64748b;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tfont-size: 16px;\n\t\t\t\tborder-radius: 6px;\n\t\t\t\ttransition: all 0.3s ease;\n\t\t\t\tcursor: pointer;\n\t\t\t\tbackground: transparent;\n\t\t\t\tborder: none;\n\t\t\t\twidth: 100%;\n\t\t\t\ttext-align: left;\n\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\tcolor: #1e293b;\n\t\t\t\t\ttransform: translateX(4px);\n\t\t\t\t}\n\n\t\t\t\t&.active {\n\t\t\t\t\tbackground: #3b82f6;\n\t\t\t\t\tcolor: white;\n\t\t\t\t\tbox-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.timeline-content {\n\t\tflex: 1;\n\t\tmin-width: 0;\n\n\t\t.timeline-entry {\n\t\t\tmargin-bottom: 80px;\n\t\t\tscroll-margin-top: 100px;\n\n\t\t\t&:last-child {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\n\t\t\t.timeline-year-marker {\n\t\t\t\tmargin-bottom: 24px;\n\t\t\t\tposition: relative;\n\t\t\t\tpadding-left: 40px;\n\n\t\t\t\t&::before {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\ttop: 50%;\n\t\t\t\t\ttransform: translateY(-50%);\n\t\t\t\t\twidth: 24px;\n\t\t\t\t\theight: 24px;\n\t\t\t\t\tbackground: #3b82f6;\n\t\t\t\t\tborder-radius: 50%;\n\t\t\t\t\tbox-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);\n\t\t\t\t}\n\n\t\t\t\th2 {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tfont-size: 32px;\n\t\t\t\t\tfont-weight: 800;\n\t\t\t\t\tcolor: #1e293b;\n\t\t\t\t\tline-height: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.timeline-entry-content {\n\t\t\t\tbackground: white;\n\t\t\t\tborder-radius: 12px;\n\t\t\t\tpadding: 32px;\n\t\t\t\tbox-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);\n\t\t\t\tborder-left: 4px solid #3b82f6;\n\n\t\t\t\t.timeline-title {\n\t\t\t\t\tmargin: 0 0 16px 0;\n\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t\tcolor: #1e293b;\n\t\t\t\t}\n\n\t\t\t\t.timeline-description {\n\t\t\t\t\tmargin: 0 0 24px 0;\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 1.8;\n\t\t\t\t\tcolor: #475569;\n\t\t\t\t}\n\n\t\t\t\t.timeline-media {\n\t\t\t\t\tmargin-top: 24px;\n\n\t\t\t\t\timg {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\theight: auto;\n\t\t\t\t\t\tborder-radius: 8px;\n\t\t\t\t\t\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t@media (max-width: 768px) {\n\t\tflex-direction: column;\n\t\tgap: 30px;\n\t\tpadding: 20px 15px;\n\n\t\t.timeline-sidebar {\n\t\t\tposition: static;\n\t\t\tflex: 1;\n\n\t\t\t.timeline-years {\n\t\t\t\tpadding: 16px;\n\n\t\t\t\th3 {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tmargin-bottom: 12px;\n\t\t\t\t}\n\n\t\t\t\t.year-link {\n\t\t\t\t\tpadding: 10px 12px;\n\t\t\t\t\tfont-size: 14px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.timeline-content {\n\t\t\t.timeline-entry {\n\t\t\t\tmargin-bottom: 50px;\n\n\t\t\t\t.timeline-year-marker {\n\t\t\t\t\tpadding-left: 30px;\n\n\t\t\t\t\t&::before {\n\t\t\t\t\t\twidth: 18px;\n\t\t\t\t\t\theight: 18px;\n\t\t\t\t\t}\n\n\t\t\t\t\th2 {\n\t\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t.timeline-entry-content {\n\t\t\t\t\tpadding: 20px;\n\n\t\t\t\t\t.timeline-title {\n\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t}\n\n\t\t\t\t\t.timeline-description {\n\t\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/view.js b/plugins/carhop-blocks/build/company-timeline/view.js index 5bffe5a..c53217e 100644 --- a/plugins/carhop-blocks/build/company-timeline/view.js +++ b/plugins/carhop-blocks/build/company-timeline/view.js @@ -1 +1,68 @@ -document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".wp-block-telex-company-timeline");if(!e)return;const t=e.querySelector(".timeline-sidebar"),r=e.querySelectorAll(".year-link"),n=e.querySelectorAll(".timeline-entry");if(!t||0===r.length||0===n.length)return;r.forEach(t=>{t.addEventListener("click",function(t){t.preventDefault();const r=this.getAttribute("data-year")||this.getAttribute("href").replace("#year-",""),n=e.querySelector(`[data-year="${r}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})})});const o=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){const n=t.target.getAttribute("data-year");r.forEach(e=>e.classList.remove("active"));const o=e.querySelector(`.year-link[data-year="${n}"]`);o&&o.classList.add("active")}})},{root:null,rootMargin:"-20% 0px -70% 0px",threshold:0});n.forEach(e=>{o.observe(e)})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!**************************************!*\ + !*** ./src/company-timeline/view.js ***! + \**************************************/ +/** + * Use this file for JavaScript code that you want to run in the front-end + * on posts/pages that contain this block. + */ + +document.addEventListener('DOMContentLoaded', function () { + const timeline = document.querySelector('.wp-block-telex-company-timeline'); + if (!timeline) { + return; + } + const sidebar = timeline.querySelector('.timeline-sidebar'); + const yearLinks = timeline.querySelectorAll('.year-link'); + const entries = timeline.querySelectorAll('.timeline-entry'); + if (!sidebar || yearLinks.length === 0 || entries.length === 0) { + return; + } + + // Smooth scroll to year when clicking sidebar link + yearLinks.forEach(link => { + link.addEventListener('click', function (e) { + e.preventDefault(); + const year = this.getAttribute('data-year') || this.getAttribute('href').replace('#year-', ''); + const targetEntry = timeline.querySelector(`[data-year="${year}"]`); + if (targetEntry) { + targetEntry.scrollIntoView({ + behavior: 'smooth', + block: 'start' + }); + } + }); + }); + + // Update active year on scroll + const observerOptions = { + root: null, + rootMargin: '-20% 0px -70% 0px', + threshold: 0 + }; + const observerCallback = entries => { + entries.forEach(entry => { + if (entry.isIntersecting) { + const year = entry.target.getAttribute('data-year'); + + // Remove active class from all links + yearLinks.forEach(link => link.classList.remove('active')); + + // Add active class to current year + const activeLink = timeline.querySelector(`.year-link[data-year="${year}"]`); + if (activeLink) { + activeLink.classList.add('active'); + } + } + }); + }; + const observer = new IntersectionObserver(observerCallback, observerOptions); + + // Observe all timeline entries + entries.forEach(entry => { + observer.observe(entry); + }); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/company-timeline/view.js.map b/plugins/carhop-blocks/build/company-timeline/view.js.map new file mode 100644 index 0000000..ed24519 --- /dev/null +++ b/plugins/carhop-blocks/build/company-timeline/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"company-timeline/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;;AAEAA,QAAQ,CAACC,gBAAgB,CAAE,kBAAkB,EAAE,YAAW;EACzD,MAAMC,QAAQ,GAAGF,QAAQ,CAACG,aAAa,CAAE,kCAAmC,CAAC;EAE7E,IAAK,CAAED,QAAQ,EAAG;IACjB;EACD;EAEA,MAAME,OAAO,GAAGF,QAAQ,CAACC,aAAa,CAAE,mBAAoB,CAAC;EAC7D,MAAME,SAAS,GAAGH,QAAQ,CAACI,gBAAgB,CAAE,YAAa,CAAC;EAC3D,MAAMC,OAAO,GAAGL,QAAQ,CAACI,gBAAgB,CAAE,iBAAkB,CAAC;EAE9D,IAAK,CAAEF,OAAO,IAAIC,SAAS,CAACG,MAAM,KAAK,CAAC,IAAID,OAAO,CAACC,MAAM,KAAK,CAAC,EAAG;IAClE;EACD;;EAEA;EACAH,SAAS,CAACI,OAAO,CAAEC,IAAI,IAAI;IAC1BA,IAAI,CAACT,gBAAgB,CAAE,OAAO,EAAE,UAAUU,CAAC,EAAG;MAC7CA,CAAC,CAACC,cAAc,CAAC,CAAC;MAClB,MAAMC,IAAI,GAAG,IAAI,CAACC,YAAY,CAAE,WAAY,CAAC,IAAI,IAAI,CAACA,YAAY,CAAE,MAAO,CAAC,CAACC,OAAO,CAAE,QAAQ,EAAE,EAAG,CAAC;MACpG,MAAMC,WAAW,GAAGd,QAAQ,CAACC,aAAa,CAAE,eAAgBU,IAAI,IAAM,CAAC;MAEvE,IAAKG,WAAW,EAAG;QAClBA,WAAW,CAACC,cAAc,CAAE;UAC3BC,QAAQ,EAAE,QAAQ;UAClBC,KAAK,EAAE;QACR,CAAE,CAAC;MACJ;IACD,CAAE,CAAC;EACJ,CAAE,CAAC;;EAEH;EACA,MAAMC,eAAe,GAAG;IACvBC,IAAI,EAAE,IAAI;IACVC,UAAU,EAAE,mBAAmB;IAC/BC,SAAS,EAAE;EACZ,CAAC;EAED,MAAMC,gBAAgB,GAAKjB,OAAO,IAAM;IACvCA,OAAO,CAACE,OAAO,CAAEgB,KAAK,IAAI;MACzB,IAAKA,KAAK,CAACC,cAAc,EAAG;QAC3B,MAAMb,IAAI,GAAGY,KAAK,CAACE,MAAM,CAACb,YAAY,CAAE,WAAY,CAAC;;QAErD;QACAT,SAAS,CAACI,OAAO,CAAEC,IAAI,IAAIA,IAAI,CAACkB,SAAS,CAACC,MAAM,CAAE,QAAS,CAAE,CAAC;;QAE9D;QACA,MAAMC,UAAU,GAAG5B,QAAQ,CAACC,aAAa,CAAE,yBAA0BU,IAAI,IAAM,CAAC;QAChF,IAAKiB,UAAU,EAAG;UACjBA,UAAU,CAACF,SAAS,CAACG,GAAG,CAAE,QAAS,CAAC;QACrC;MACD;IACD,CAAE,CAAC;EACJ,CAAC;EAED,MAAMC,QAAQ,GAAG,IAAIC,oBAAoB,CAAET,gBAAgB,EAAEJ,eAAgB,CAAC;;EAE9E;EACAb,OAAO,CAACE,OAAO,CAAEgB,KAAK,IAAI;IACzBO,QAAQ,CAACE,OAAO,CAAET,KAAM,CAAC;EAC1B,CAAE,CAAC;AACJ,CAAE,CAAC,C","sources":["webpack://carhop-blocks/./src/company-timeline/view.js"],"sourcesContent":["/**\n * Use this file for JavaScript code that you want to run in the front-end\n * on posts/pages that contain this block.\n */\n\ndocument.addEventListener( 'DOMContentLoaded', function() {\n\tconst timeline = document.querySelector( '.wp-block-telex-company-timeline' );\n\t\n\tif ( ! timeline ) {\n\t\treturn;\n\t}\n\n\tconst sidebar = timeline.querySelector( '.timeline-sidebar' );\n\tconst yearLinks = timeline.querySelectorAll( '.year-link' );\n\tconst entries = timeline.querySelectorAll( '.timeline-entry' );\n\n\tif ( ! sidebar || yearLinks.length === 0 || entries.length === 0 ) {\n\t\treturn;\n\t}\n\n\t// Smooth scroll to year when clicking sidebar link\n\tyearLinks.forEach( link => {\n\t\tlink.addEventListener( 'click', function( e ) {\n\t\t\te.preventDefault();\n\t\t\tconst year = this.getAttribute( 'data-year' ) || this.getAttribute( 'href' ).replace( '#year-', '' );\n\t\t\tconst targetEntry = timeline.querySelector( `[data-year=\"${ year }\"]` );\n\t\t\t\n\t\t\tif ( targetEntry ) {\n\t\t\t\ttargetEntry.scrollIntoView( { \n\t\t\t\t\tbehavior: 'smooth',\n\t\t\t\t\tblock: 'start'\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t} );\n\n\t// Update active year on scroll\n\tconst observerOptions = {\n\t\troot: null,\n\t\trootMargin: '-20% 0px -70% 0px',\n\t\tthreshold: 0\n\t};\n\n\tconst observerCallback = ( entries ) => {\n\t\tentries.forEach( entry => {\n\t\t\tif ( entry.isIntersecting ) {\n\t\t\t\tconst year = entry.target.getAttribute( 'data-year' );\n\t\t\t\t\n\t\t\t\t// Remove active class from all links\n\t\t\t\tyearLinks.forEach( link => link.classList.remove( 'active' ) );\n\t\t\t\t\n\t\t\t\t// Add active class to current year\n\t\t\t\tconst activeLink = timeline.querySelector( `.year-link[data-year=\"${ year }\"]` );\n\t\t\t\tif ( activeLink ) {\n\t\t\t\t\tactiveLink.classList.add( 'active' );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t};\n\n\tconst observer = new IntersectionObserver( observerCallback, observerOptions );\n\n\t// Observe all timeline entries\n\tentries.forEach( entry => {\n\t\tobserver.observe( entry );\n\t} );\n} );\n"],"names":["document","addEventListener","timeline","querySelector","sidebar","yearLinks","querySelectorAll","entries","length","forEach","link","e","preventDefault","year","getAttribute","replace","targetEntry","scrollIntoView","behavior","block","observerOptions","root","rootMargin","threshold","observerCallback","entry","isIntersecting","target","classList","remove","activeLink","add","observer","IntersectionObserver","observe"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-box/index.css b/plugins/carhop-blocks/build/content-box/index.css index 7e5c2ec..11a0988 100644 --- a/plugins/carhop-blocks/build/content-box/index.css +++ b/plugins/carhop-blocks/build/content-box/index.css @@ -1 +1,24 @@ -.content-box{padding-left:2.5rem!important;padding-right:2.5rem!important}.content-box a{color:var(--content-box-text-color)!important}.editor-styles-wrapper .deligraph-blocks-chapter-section{padding-left:2.5rem!important;padding-right:2.5rem!important}.content-box .block-editor-block-list__layout>.wp-block-columns,.content-box .wp-block-columns{margin-bottom:0!important;margin-top:0!important} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/content-box/editor.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.content-box { + padding-left: 2.5rem !important; + padding-right: 2.5rem !important; +} +.content-box a { + color: var(--content-box-text-color) !important; +} +.editor-styles-wrapper .deligraph-blocks-chapter-section { + padding-left: 2.5rem !important; + padding-right: 2.5rem !important; +} +.content-box .wp-block-columns { + margin-top: 0 !important; + margin-bottom: 0 !important; +} +.content-box .block-editor-block-list__layout > .wp-block-columns { + margin-top: 0 !important; + margin-bottom: 0 !important; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-box/index.css.map b/plugins/carhop-blocks/build/content-box/index.css.map new file mode 100644 index 0000000..2dd32b2 --- /dev/null +++ b/plugins/carhop-blocks/build/content-box/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"content-box/index.css","mappings":";;;AAAA;EACC;EACA;AACD;AACC;EACC;AACF;AAGA;EACC;EACA;AAAD;AAIC;EACC;EACA;AADF;AAGC;EACC;EACA;AADF,C","sources":["webpack://carhop-blocks/./src/content-box/editor.scss"],"sourcesContent":[".content-box {\n\tpadding-left: 2.5rem !important;\n\tpadding-right: 2.5rem !important;\n\n\ta {\n\t\tcolor: var(--content-box-text-color) !important;\n\t}\n}\n\n.editor-styles-wrapper .deligraph-blocks-chapter-section {\n\tpadding-left: 2.5rem !important;\n\tpadding-right: 2.5rem !important;\n}\n\n.content-box {\n\t.wp-block-columns {\n\t\tmargin-top: 0 !important;\n\t\tmargin-bottom: 0 !important;\n\t}\n\t.block-editor-block-list__layout > .wp-block-columns {\n\t\tmargin-top: 0 !important;\n\t\tmargin-bottom: 0 !important;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-box/index.js b/plugins/carhop-blocks/build/content-box/index.js index f381801..2b3f86e 100644 --- a/plugins/carhop-blocks/build/content-box/index.js +++ b/plugins/carhop-blocks/build/content-box/index.js @@ -1 +1,880 @@ -(()=>{"use strict";var o,e={8186:()=>{const o=window.wp.blocks,e=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.components,n=window.wp.data;function a(o){if(!o)return!0;let e=o.replace("#","");return 3===e.length&&(e=e.split("").map(o=>o+o).join("")),(.299*parseInt(e.substr(0,2),16)+.587*parseInt(e.substr(2,2),16)+.114*parseInt(e.substr(4,2),16))/255>.5}window.React;const t=window.ReactJSXRuntime;function s({backgroundOrientation:o,backgroundColor:e,borderColor:r}){return(0,t.jsx)("svg",{width:"1440",height:"744",viewBox:"0 0 1440 744",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`content-box__shape content-box__shape--${o}`,preserveAspectRatio:"none",vectorEffect:"non-scaling-stroke",overflow:"visible",children:(0,t.jsx)("path",{d:"M0 0H1440V686.701L0 744V0Z",fill:e,stroke:r,strokeWidth:r?"2px":"0",style:{strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}})})}function c({backgroundOrientation:o,backgroundColor:e,borderColor:r}){return(0,t.jsx)("svg",{className:`content-box__shape content-box__shape--${o}`,width:"1302",height:"654",viewBox:"0 0 1302 654",preserveAspectRatio:"none",vectorEffect:"non-scaling-stroke",overflow:"visible",children:(0,t.jsx)("path",{d:"M1302 0L0 15.8281V654L1302 642.633L1302 0Z",fill:e,stroke:r,strokeWidth:r?"2px":"0",style:{strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}})})}function i({backgroundOrientation:o,backgroundColor:e,borderColor:r}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("svg",{width:"1440",height:"997",viewBox:"0 0 1440 997",className:`content-box__shape content-box__shape--${o}`,preserveAspectRatio:"none",vectorEffect:"non-scaling-stroke",overflow:"visible",children:(0,t.jsx)("path",{d:"M1440 29.8887L0 0V997L1440 979.242V29.8887Z",fill:e,stroke:r,strokeWidth:r?"2px":"0",style:{strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}})})})}const d=JSON.parse('{"UU":"carhop-blocks/content-box"}');(0,o.registerBlockType)(d.UU,{icon:{foreground:"#136f63",src:(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 100 100",children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"m50,99.84988l-43.14852,-24.92494l0,-49.84988l43.14852,-24.92494l43.14852,24.92494l0,49.84988l-43.14852,24.92494zm-40.75518,-26.32675l40.75518,23.52312l40.75518,-23.52312l0,-47.04625l-40.75518,-23.55731l-40.75518,23.55731l0,47.04625z"}),(0,t.jsx)("path",{d:"m50,86.13945l-31.28439,-18.05263l0,-36.13945l31.28439,-18.05263l31.28439,18.05263l0,36.13945l-31.28439,18.05263zm-13.50528,-28.344l13.50528,7.79545l13.50528,-7.79545l0,-15.59091l-13.50528,-7.79545l-13.50528,7.79545l0,15.59091z"})]})})},edit:function({attributes:o,setAttributes:d,...p}){const b=(0,r.useSetting)("color.palette.theme"),{hasBackgroundColor:g,align:u,backgroundColor:h,textColor:x,hasLightBackground:k,blockVariant:C,shapeType:f,borderColor:m}=o,v=(0,n.useSelect)(o=>o("core/editor").getCurrentPostType(),[]),_=((o,e)=>e&&"articles"===e?o?.filter(o=>["carhop-green-light","carhop-blue-light","carhop-orange-light","carhop-red-light","carhop-purple-light"].includes(o.slug))||[]:o||[])(b,v),j=((o,e,r)=>e?"page"!==e||a(r)?o||[]:[{name:"White",slug:"white",color:"#ffffff"}]:o||[])(b,v,h),w="full"===u?"alignfull":"wide"===u?"alignwide":"aligncontained";return console.log(u),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.InspectorControls,{children:[(0,t.jsxs)(l.PanelBody,{title:(0,e.__)("Aspect","carhop-blocks"),children:[(0,t.jsxs)(l.__experimentalToggleGroupControl,{label:"Modèle de bloc",value:C,onChange:function(o){d({blockVariant:o}),"framed"!==o&&"nude"!==o||(d({backgroundColor:"#fff"}),d({hasLightBackground:!0}))},isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"nude",label:"Nu"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"framed",label:"Encadré"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"backgrounded",label:"Fond coloré"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"framed-backgrounded",label:"Cadre + fond coloré"})]}),(0,t.jsxs)(l.__experimentalToggleGroupControl,{label:"Largeur du bloc",value:u,onChange:o=>d({align:o}),isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"",label:"Contenue"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"wide",label:"Large"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{value:"full",label:"Pleine largeur"})]})]}),"nude"!==C&&(0,t.jsxs)(l.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,e.__)("Arrière plan","deligraph-blocks"),children:[(0,t.jsxs)(l.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Type de forme",onChange:o=>d({shapeType:o}),value:f,children:[(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Droite",value:"straight"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Forme A",value:"shapeA"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Forme B",value:"shapeB"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Forme C",value:"shapeC"})]}),(0,t.jsx)(l.SelectControl,{__next40pxDefaultSize:!0,label:"Type de forme",onChange:o=>d({shapeType:o}),value:f,options:[{disabled:!0,label:"Type de forme",value:""},{label:"Droite",value:"straight"},{label:"Forme A",value:"shapeA"},{label:"Forme B",value:"shapeB"},{label:"Forme C",value:"shapeC"}]}),(0,t.jsx)(l.ColorPalette,{colors:_,value:h,onChange:function(o){void 0===o&&(d({hasBackgroundColor:!1}),d({backgroundColor:"transparent"}));const e=a(o);d({hasLightBackground:e}),d({backgroundColor:o}),d(e?{textColor:"inherit"}:{textColor:"#fff"})}})]}),("backgrounded"===C||"framed-backgrounded"===C)&&"articles"!==v&&(0,t.jsx)(l.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,e.__)("Couleur du texte","deligraph-blocks"),children:(0,t.jsx)(l.ColorPalette,{colors:j,value:x,onChange:function(o){d({textColor:o})}})})]}),(0,t.jsxs)("section",{...(0,r.useBlockProps)({className:`${"articles"!==v&&"alignfull"} content-box content-box--variant-${C} content-box--${f} ${k?"content-box--bg-light":"content-box--bg-dark"} ${w}`,style:{"--content-box-text-color":null!=x?x:"inherit","--content-box-background-color":"backgrounded"===C||"framed-backgrounded"===C?h:"transparent"}}),children:["backgrounded"===C&&h&&"shapeA"===f&&(0,t.jsx)(s,{backgroundColor:h,borderColor:"none"}),"backgrounded"===C&&h&&"shapeB"===f&&(0,t.jsx)(c,{backgroundColor:h,borderColor:"none"}),"backgrounded"===C&&h&&"shapeC"===f&&(0,t.jsx)(i,{backgroundColor:h,borderColor:"none"}),"framed"===C&&h&&"shapeA"===f&&(0,t.jsx)(s,{backgroundColor:"none",borderColor:m}),"framed"===C&&h&&"shapeB"===f&&(0,t.jsx)(c,{backgroundColor:"none",borderColor:m}),"framed"===C&&h&&"shapeC"===f&&(0,t.jsx)(i,{backgroundColor:"none",borderColor:m}),"framed-backgrounded"===C&&h&&"shapeA"===f&&(0,t.jsx)(s,{backgroundColor:h,borderColor:m}),"framed-backgrounded"===C&&h&&"shapeB"===f&&(0,t.jsx)(c,{backgroundColor:h,borderColor:m}),"framed-backgrounded"===C&&h&&"shapeC"===f&&(0,t.jsx)(i,{backgroundColor:h,borderColor:m}),(0,t.jsx)("div",{className:"content-box__innerblocks",children:(0,t.jsx)(r.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/image","core/buttons","core/columns","core/file","core/post-title","core/embed","core/quote","core/pullquote","core/media-text","core/table","carhop-blocks/chapter-section","carhop-blocks/heading","carhop-blocks/decorative-shapes","carhop-blocks/scroll-story-block","carhop-blocks/cta","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/content-box","carhop-blocks/localisation-map","carhop-blocks/notice-panel","carhop-blocks/story-timeline","carhop-blocks/highlight-timeline","acf/statistics-datas","ninja-forms/form","gravityforms/form","dynamiques-blocks/sitemap","mailpoet/subscription-form-block","shortcode"]})})]})]})},save:function({attributes:o}){const{backgroundColor:e,textColor:l,hasLightBackground:n,hasBackgroundColor:a,blockVariant:d,align:p,shapeType:b,borderColor:g}=o,u=n?"content-box--bg-light":"content-box--bg-dark",h="full"===p?"alignfull":"wide"===p?"alignwide":"aligncontained";return(0,t.jsxs)("section",{...r.useBlockProps.save({className:`content-box content-box--variant-${d} content-box--${b} ${u} ${h}`,style:{"--content-box-text-color":null!=l?l:"inherit","--content-box-background-color":"backgrounded"===d||"framed-backgrounded"===d?e:"transparent"}}),children:["backgrounded"===d&&e&&"shapeA"===b&&(0,t.jsx)(s,{backgroundColor:e,borderColor:"none"}),"backgrounded"===d&&e&&"shapeB"===b&&(0,t.jsx)(c,{backgroundColor:e,borderColor:"none"}),"backgrounded"===d&&e&&"shapeC"===b&&(0,t.jsx)(i,{backgroundColor:e,borderColor:"none"}),"framed"===d&&e&&"shapeA"===b&&(0,t.jsx)(s,{backgroundColor:"none",borderColor:g}),"framed"===d&&e&&"shapeB"===b&&(0,t.jsx)(c,{backgroundColor:"none",borderColor:g}),"framed"===d&&e&&"shapeC"===b&&(0,t.jsx)(i,{backgroundColor:"none",borderColor:g}),"framed-backgrounded"===d&&e&&"shapeA"===b&&(0,t.jsx)(s,{backgroundColor:e,borderColor:g}),"framed-backgrounded"===d&&e&&"shapeB"===b&&(0,t.jsx)(c,{backgroundColor:e,borderColor:g}),"framed-backgrounded"===d&&e&&"shapeC"===b&&(0,t.jsx)(i,{backgroundColor:e,borderColor:g}),(0,t.jsx)("div",{className:"content-box__innerblocks",children:(0,t.jsx)(r.InnerBlocks.Content,{})})]})}})}},r={};function l(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.m=e,o=[],l.O=(e,r,n,a)=>{if(!r){var t=1/0;for(d=0;d=a)&&Object.keys(l.O).every(o=>l.O[o](r[c]))?r.splice(c--,1):(s=!1,a0&&o[d-1][2]>a;d--)o[d]=o[d-1];o[d]=[r,n,a]},l.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),(()=>{var o={6527:0,7191:0};l.O.j=e=>0===o[e];var e=(e,r)=>{var n,a,[t,s,c]=r,i=0;if(t.some(e=>0!==o[e])){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(c)var d=c(l)}for(e&&e(r);il(8186));n=l.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./_utilities/utilities.js": +/*!*********************************!*\ + !*** ./_utilities/utilities.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ isColorLight: () => (/* binding */ isColorLight) +/* harmony export */ }); +// Fonction pour déterminer si une couleur est claire ou sombre +function isColorLight(color) { + // Si pas de couleur, considérer comme claire + if (!color) return true; + + // Convertir hex en RGB + let hex = color.replace("#", ""); + if (hex.length === 3) { + hex = hex.split("").map(char => char + char).join(""); + } + const r = parseInt(hex.substr(0, 2), 16); + const g = parseInt(hex.substr(2, 2), 16); + const b = parseInt(hex.substr(4, 2), 16); + + // Calculer la luminance relative (formule standard) + const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255; + + // Si luminance > 0.5, la couleur est claire + return luminance > 0.5; +} + +/***/ }), + +/***/ "./src/content-box/block.json": +/*!************************************!*\ + !*** ./src/content-box/block.json ***! + \************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/content-box","version":"0.1.0","title":"Boite de contenu","category":"carhop-blocks","icon":"smiley","description":"Boite de contenu pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false,"anchor":true,"align":["wide","full"]},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"hasBackgroundColor":{"type":"boolean","default":false},"backgroundColor":{"type":"string","default":"#f1fcf9"},"hasLightBackground":{"type":"boolean","default":true},"textColor":{"type":"string","default":"inherit"},"borderColor":{"type":"string","default":null},"blockVariant":{"type":"string","default":"backgrounded","enum":["nude","framed","framed-backgrounded","backgrounded"]},"shapeType":{"type":"string","default":"straight","enum":["straight","shapeA","shapeB","shapeC"]},"blockWidth":{"type":"string","default":"full","enum":["contained","wide","full"]}}}'); + +/***/ }), + +/***/ "./src/content-box/edit.js": +/*!*********************************!*\ + !*** ./src/content-box/edit.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./editor.scss */ "./src/content-box/editor.scss"); +/* harmony import */ var _utilities_utilities__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_utilities/utilities */ "./_utilities/utilities.js"); +/* harmony import */ var _shapeA_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapeA.jsx */ "./src/content-box/shapeA.jsx"); +/* harmony import */ var _shapeB_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./shapeB.jsx */ "./src/content-box/shapeB.jsx"); +/* harmony import */ var _shapeC_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./shapeC.jsx */ "./src/content-box/shapeC.jsx"); +/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utilities */ "./src/content-box/utilities.js"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__); + + + + + + + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme"); + const { + hasBackgroundColor, + align, + backgroundColor, + textColor, + hasLightBackground, + blockVariant, + shapeType, + borderColor + } = attributes; + + // Détecter le type de post actuel + const postType = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => { + return select("core/editor").getCurrentPostType(); + }, []); + const filteredBgColors = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.filterBgColors)(colors, postType); + const filteredTextColors = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.filterTextColors)(colors, postType, backgroundColor); + function onBackgroundColorChange(value) { + if (value === undefined) { + setAttributes({ + hasBackgroundColor: false + }); + setAttributes({ + backgroundColor: "transparent" + }); + } + const isLightBackgroundColor = (0,_utilities_utilities__WEBPACK_IMPORTED_MODULE_5__.isColorLight)(value); + setAttributes({ + hasLightBackground: isLightBackgroundColor + }); + setAttributes({ + backgroundColor: value + }); + if (!isLightBackgroundColor) { + setAttributes({ + textColor: "#fff" + }); + } else { + setAttributes({ + textColor: "inherit" + }); + } + } + function onHasBackgroundColorChange(value) { + setAttributes({ + hasBackgroundColor: value + }); + if (!value) { + setAttributes({ + backgroundColor: null + }); + } + } + function onTextColorChange(value) { + setAttributes({ + textColor: value + }); + } + function onBlockVariantChange(value) { + setAttributes({ + blockVariant: value + }); + if (value === "framed" || value === "nude") { + setAttributes({ + backgroundColor: "#fff" + }); + setAttributes({ + hasLightBackground: true + }); + } + } + const alignClass = align === "full" ? "alignfull" : align === "wide" ? "alignwide" : "aligncontained"; + console.log(align); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Aspect", "carhop-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + label: "Mod\xE8le de bloc", + value: blockVariant, + onChange: onBlockVariantChange, + isBlock: true, + __nextHasNoMarginBottom: true, + __next40pxDefaultSize: true, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "nude", + label: "Nu" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "framed", + label: "Encadr\xE9" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "backgrounded", + label: "Fond color\xE9" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "framed-backgrounded", + label: "Cadre + fond color\xE9" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + label: "Largeur du bloc", + value: align, + onChange: value => setAttributes({ + align: value + }), + isBlock: true, + __nextHasNoMarginBottom: true, + __next40pxDefaultSize: true, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "", + label: "Contenue" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "wide", + label: "Large" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + value: "full", + label: "Pleine largeur" + })] + })] + }), blockVariant !== "nude" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Arrière plan", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Type de forme", + onChange: value => setAttributes({ + shapeType: value + }), + value: shapeType, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Droite", + value: "straight" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Forme A", + value: "shapeA" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Forme B", + value: "shapeB" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Forme C", + value: "shapeC" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { + __next40pxDefaultSize: true, + label: "Type de forme", + onChange: value => setAttributes({ + shapeType: value + }), + value: shapeType, + options: [{ + disabled: true, + label: "Type de forme", + value: "" + }, { + label: "Droite", + value: "straight" + }, { + label: "Forme A", + value: "shapeA" + }, { + label: "Forme B", + value: "shapeB" + }, { + label: "Forme C", + value: "shapeC" + }] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ColorPalette, { + colors: filteredBgColors, + value: backgroundColor, + onChange: onBackgroundColorChange + })] + }), (blockVariant === "backgrounded" || blockVariant === "framed-backgrounded") && postType !== "articles" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Couleur du texte", "deligraph-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ColorPalette, { + colors: filteredTextColors, + value: textColor, + onChange: onTextColorChange + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `${postType !== "articles" && "alignfull"} content-box content-box--variant-${blockVariant} content-box--${shapeType} ${hasLightBackground ? "content-box--bg-light" : "content-box--bg-dark"} ${alignClass}`, + style: { + "--content-box-text-color": textColor !== null && textColor !== void 0 ? textColor : "inherit", + "--content-box-background-color": blockVariant === "backgrounded" || blockVariant === "framed-backgrounded" ? backgroundColor : "transparent" + } + }), + children: [blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", { + className: "content-box__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["core/paragraph", { + placeholder: "Ajouter ici le texte" + }]], + allowedBlocks: ["core/heading", "core/paragraph", "core/group", "core/list", "core/button", "core/image", "core/buttons", "core/columns", "core/file", "core/post-title", "core/embed", "core/quote", "core/pullquote", "core/media-text", "core/table", "carhop-blocks/chapter-section", "carhop-blocks/heading", "carhop-blocks/decorative-shapes", "carhop-blocks/scroll-story-block", "carhop-blocks/cta", "carhop-blocks/cta-group", "carhop-blocks/audio-player", "carhop-blocks/content-box", "carhop-blocks/localisation-map", "carhop-blocks/notice-panel", "carhop-blocks/story-timeline", "carhop-blocks/highlight-timeline", "acf/statistics-datas", "ninja-forms/form", "gravityforms/form", "dynamiques-blocks/sitemap", "mailpoet/subscription-form-block", "shortcode"] + }) + })] + })] + }); +} + +/***/ }), + +/***/ "./src/content-box/editor.scss": +/*!*************************************!*\ + !*** ./src/content-box/editor.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/content-box/index.js": +/*!**********************************!*\ + !*** ./src/content-box/index.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/content-box/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/content-box/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/content-box/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/content-box/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "40", + height: "40", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m50,99.84988l-43.14852,-24.92494l0,-49.84988l43.14852,-24.92494l43.14852,24.92494l0,49.84988l-43.14852,24.92494zm-40.75518,-26.32675l40.75518,23.52312l40.75518,-23.52312l0,-47.04625l-40.75518,-23.55731l-40.75518,23.55731l0,47.04625z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m50,86.13945l-31.28439,-18.05263l0,-36.13945l31.28439,-18.05263l31.28439,18.05263l0,36.13945l-31.28439,18.05263zm-13.50528,-28.344l13.50528,7.79545l13.50528,-7.79545l0,-15.59091l-13.50528,-7.79545l-13.50528,7.79545l0,15.59091z" + })] + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/content-box/save.js": +/*!*********************************!*\ + !*** ./src/content-box/save.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shapeA.jsx */ "./src/content-box/shapeA.jsx"); +/* harmony import */ var _shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapeB.jsx */ "./src/content-box/shapeB.jsx"); +/* harmony import */ var _shapeC_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapeC.jsx */ "./src/content-box/shapeC.jsx"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function save({ + attributes +}) { + const { + backgroundColor, + textColor, + hasLightBackground, + hasBackgroundColor, + blockVariant, + align, + shapeType, + borderColor + } = attributes; + const lightnessClass = hasLightBackground ? "content-box--bg-light" : "content-box--bg-dark"; + const alignClass = align === "full" ? "alignfull" : align === "wide" ? "alignwide" : "aligncontained"; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("section", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `content-box content-box--variant-${blockVariant} content-box--${shapeType} ${lightnessClass} ${alignClass}`, + style: { + "--content-box-text-color": textColor !== null && textColor !== void 0 ? textColor : "inherit", + "--content-box-background-color": blockVariant === "backgrounded" || blockVariant === "framed-backgrounded" ? backgroundColor : "transparent" + } + }), + children: [blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], { + backgroundColor: backgroundColor, + borderColor: "none" + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], { + backgroundColor: "none", + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeA" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeA_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeB" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeB_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeC" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_shapeC_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], { + backgroundColor: backgroundColor, + borderColor: borderColor + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "content-box__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + })] + }); +} + +/***/ }), + +/***/ "./src/content-box/shapeA.jsx": +/*!************************************!*\ + !*** ./src/content-box/shapeA.jsx ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ ShapeA) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function ShapeA({ + backgroundOrientation, + backgroundColor, + borderColor +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "1440", + height: "744", + viewBox: "0 0 1440 744", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + className: `content-box__shape content-box__shape--${backgroundOrientation}`, + preserveAspectRatio: "none", + vectorEffect: "non-scaling-stroke", + overflow: "visible", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("path", { + d: "M0 0H1440V686.701L0 744V0Z", + fill: backgroundColor, + stroke: borderColor, + strokeWidth: borderColor ? "2px" : "0", + style: { + strokeLinejoin: "round", + vectorEffect: "non-scaling-stroke" + } + }) + }); +} + +/***/ }), + +/***/ "./src/content-box/shapeB.jsx": +/*!************************************!*\ + !*** ./src/content-box/shapeB.jsx ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ ShapeB) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function ShapeB({ + backgroundOrientation, + backgroundColor, + borderColor +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + className: `content-box__shape content-box__shape--${backgroundOrientation}`, + width: "1302", + height: "654", + viewBox: "0 0 1302 654", + preserveAspectRatio: "none", + vectorEffect: "non-scaling-stroke", + overflow: "visible", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("path", { + d: "M1302 0L0 15.8281V654L1302 642.633L1302 0Z", + fill: backgroundColor, + stroke: borderColor, + strokeWidth: borderColor ? "2px" : "0", + style: { + strokeLinejoin: "round", + vectorEffect: "non-scaling-stroke" + } + }) + }); +} + +/***/ }), + +/***/ "./src/content-box/shapeC.jsx": +/*!************************************!*\ + !*** ./src/content-box/shapeC.jsx ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ ShapeB) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function ShapeB({ + backgroundOrientation, + backgroundColor, + borderColor +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "1440", + height: "997", + viewBox: "0 0 1440 997", + className: `content-box__shape content-box__shape--${backgroundOrientation}`, + preserveAspectRatio: "none", + vectorEffect: "non-scaling-stroke", + overflow: "visible", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("path", { + d: "M1440 29.8887L0 0V997L1440 979.242V29.8887Z", + fill: backgroundColor, + stroke: borderColor, + strokeWidth: borderColor ? "2px" : "0", + style: { + strokeLinejoin: "round", + vectorEffect: "non-scaling-stroke" + } + }) + }) + }); +} + +/***/ }), + +/***/ "./src/content-box/style.scss": +/*!************************************!*\ + !*** ./src/content-box/style.scss ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/content-box/utilities.js": +/*!**************************************!*\ + !*** ./src/content-box/utilities.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ filterBgColors: () => (/* binding */ filterBgColors), +/* harmony export */ filterTextColors: () => (/* binding */ filterTextColors) +/* harmony export */ }); +/* harmony import */ var _utilities_utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_utilities/utilities */ "./_utilities/utilities.js"); + +const filterBgColors = (colors, postType) => { + if (!postType) return colors || []; + if (postType === "articles") { + return colors?.filter(color => { + // Garder seulement certaines couleurs pour les articles + const allowedColors = ["carhop-green-light", "carhop-blue-light", "carhop-orange-light", "carhop-red-light", "carhop-purple-light"]; + return allowedColors.includes(color.slug); + }) || []; + } + return colors || []; +}; +const filterTextColors = (colors, postType, backgroundColor) => { + if (!postType) return colors || []; + if (postType === "page" && !(0,_utilities_utilities__WEBPACK_IMPORTED_MODULE_0__.isColorLight)(backgroundColor)) { + // Retourner seulement du blanc pour les pages avec arrière-plan sombre + return [{ + name: "White", + slug: "white", + color: "#ffffff" + }]; + } + return colors || []; +}; + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/data": +/*!******************************!*\ + !*** external ["wp","data"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react": +/*!************************!*\ + !*** external "React" ***! + \************************/ +/***/ ((module) => { + +module.exports = window["React"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "content-box/index": 0, +/******/ "content-box/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["content-box/style-index"], () => (__webpack_require__("./src/content-box/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-box/index.js.map b/plugins/carhop-blocks/build/content-box/index.js.map new file mode 100644 index 0000000..f3d1f9e --- /dev/null +++ b/plugins/carhop-blocks/build/content-box/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"content-box/index.js","mappings":";;;;;;;;;;;;;;AAAA;AACO,SAASA,YAAYA,CAACC,KAAK,EAAE;EACnC;EACA,IAAI,CAACA,KAAK,EAAE,OAAO,IAAI;;EAEvB;EACA,IAAIC,GAAG,GAAGD,KAAK,CAACE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;EAChC,IAAID,GAAG,CAACE,MAAM,KAAK,CAAC,EAAE;IACrBF,GAAG,GAAGA,GAAG,CACPG,KAAK,CAAC,EAAE,CA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;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./_utilities/utilities.js","webpack://carhop-blocks/./src/content-box/edit.js","webpack://carhop-blocks/./src/content-box/editor.scss?3831","webpack://carhop-blocks/./src/content-box/index.js","webpack://carhop-blocks/./src/content-box/save.js","webpack://carhop-blocks/./src/content-box/shapeA.jsx","webpack://carhop-blocks/./src/content-box/shapeB.jsx","webpack://carhop-blocks/./src/content-box/shapeC.jsx","webpack://carhop-blocks/./src/content-box/style.scss","webpack://carhop-blocks/./src/content-box/utilities.js","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"data\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"React\"","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["// Fonction pour déterminer si une couleur est claire ou sombre\r\nexport function isColorLight(color) {\r\n\t// Si pas de couleur, considérer comme claire\r\n\tif (!color) return true;\r\n\r\n\t// Convertir hex en RGB\r\n\tlet hex = color.replace(\"#\", \"\");\r\n\tif (hex.length === 3) {\r\n\t\thex = hex\r\n\t\t\t.split(\"\")\r\n\t\t\t.map((char) => char + char)\r\n\t\t\t.join(\"\");\r\n\t}\r\n\r\n\tconst r = parseInt(hex.substr(0, 2), 16);\r\n\tconst g = parseInt(hex.substr(2, 2), 16);\r\n\tconst b = parseInt(hex.substr(4, 2), 16);\r\n\r\n\t// Calculer la luminance relative (formule standard)\r\n\tconst luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\r\n\r\n\t// Si luminance > 0.5, la couleur est claire\r\n\treturn luminance > 0.5;\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tuseSetting,\n\tInspectorControls,\n\tMediaReplaceFlow,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\nimport {\n\tCard,\n\tCardHeader,\n\tCardBody,\n\tHeading,\n\tText,\n} from \"@wordpress/components\";\nimport { useSelect } from \"@wordpress/data\";\nimport \"./editor.scss\";\nimport { isColorLight } from \"../../_utilities/utilities\";\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tButton,\n\tCheckboxControl,\n\tColorPalette,\n\tSelectControl,\n} from \"@wordpress/components\";\n\nimport ShapeA from \"./shapeA.jsx\";\nimport ShapeB from \"./shapeB.jsx\";\nimport ShapeC from \"./shapeC.jsx\";\nimport { filterBgColors, filterTextColors } from \"./utilities\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst colors = useSetting(\"color.palette.theme\");\n\n\tconst {\n\t\thasBackgroundColor,\n\t\talign,\n\t\tbackgroundColor,\n\t\ttextColor,\n\t\thasLightBackground,\n\t\tblockVariant,\n\t\tshapeType,\n\t\tborderColor,\n\t} = attributes;\n\n\t// Détecter le type de post actuel\n\tconst postType = useSelect((select) => {\n\t\treturn select(\"core/editor\").getCurrentPostType();\n\t}, []);\n\n\tconst filteredBgColors = filterBgColors(colors, postType);\n\tconst filteredTextColors = filterTextColors(\n\t\tcolors,\n\t\tpostType,\n\t\tbackgroundColor,\n\t);\n\n\tfunction onBackgroundColorChange(value) {\n\t\tif (value === undefined) {\n\t\t\tsetAttributes({ hasBackgroundColor: false });\n\t\t\tsetAttributes({ backgroundColor: \"transparent\" });\n\t\t}\n\t\tconst isLightBackgroundColor = isColorLight(value);\n\t\tsetAttributes({ hasLightBackground: isLightBackgroundColor });\n\t\tsetAttributes({ backgroundColor: value });\n\n\t\tif (!isLightBackgroundColor) {\n\t\t\tsetAttributes({ textColor: \"#fff\" });\n\t\t} else {\n\t\t\tsetAttributes({ textColor: \"inherit\" });\n\t\t}\n\t}\n\tfunction onHasBackgroundColorChange(value) {\n\t\tsetAttributes({ hasBackgroundColor: value });\n\t\tif (!value) {\n\t\t\tsetAttributes({ backgroundColor: null });\n\t\t}\n\t}\n\tfunction onTextColorChange(value) {\n\t\tsetAttributes({ textColor: value });\n\t}\n\tfunction onBlockVariantChange(value) {\n\t\tsetAttributes({ blockVariant: value });\n\n\t\tif (value === \"framed\" || value === \"nude\") {\n\t\t\tsetAttributes({ backgroundColor: \"#fff\" });\n\t\t\tsetAttributes({ hasLightBackground: true });\n\t\t}\n\t}\n\n\tconst alignClass =\n\t\talign === \"full\"\n\t\t\t? \"alignfull\"\n\t\t\t: align === \"wide\"\n\t\t\t\t? \"alignwide\"\n\t\t\t\t: \"aligncontained\";\n\n\tconsole.log(align);\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t setAttributes({ align: value })}\n\t\t\t\t\t\tisBlock\n\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{blockVariant !== \"nude\" && (\n\t\t\t\t\t\n\t\t\t\t\t\t setAttributes({ shapeType: value })}\n\t\t\t\t\t\t\tvalue={shapeType}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t setAttributes({ shapeType: value })}\n\t\t\t\t\t\t\tvalue={shapeType}\n\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisabled: true,\n\t\t\t\t\t\t\t\t\tlabel: \"Type de forme\",\n\t\t\t\t\t\t\t\t\tvalue: \"\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlabel: \"Droite\",\n\t\t\t\t\t\t\t\t\tvalue: \"straight\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlabel: \"Forme A\",\n\t\t\t\t\t\t\t\t\tvalue: \"shapeA\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlabel: \"Forme B\",\n\t\t\t\t\t\t\t\t\tvalue: \"shapeB\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlabel: \"Forme C\",\n\t\t\t\t\t\t\t\t\tvalue: \"shapeC\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\n\t\t\t\t{(blockVariant === \"backgrounded\" ||\n\t\t\t\t\tblockVariant === \"framed-backgrounded\") &&\n\t\t\t\t\tpostType !== \"articles\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\n\t\t\t\n\t\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\t\tbackgroundColor &&\n\t\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport ShapeA from \"./shapeA.jsx\";\nimport ShapeB from \"./shapeB.jsx\";\nimport ShapeC from \"./shapeC.jsx\";\nexport default function save({ attributes }) {\n\tconst {\n\t\tbackgroundColor,\n\t\ttextColor,\n\t\thasLightBackground,\n\t\thasBackgroundColor,\n\t\tblockVariant,\n\t\talign,\n\t\tshapeType,\n\t\tborderColor,\n\t} = attributes;\n\n\tconst lightnessClass = hasLightBackground\n\t\t? \"content-box--bg-light\"\n\t\t: \"content-box--bg-dark\";\n\n\tconst alignClass =\n\t\talign === \"full\"\n\t\t\t? \"alignfull\"\n\t\t\t: align === \"wide\"\n\t\t\t\t? \"alignwide\"\n\t\t\t\t: \"aligncontained\";\n\n\treturn (\n\t\t\n\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeA\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeB\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t{blockVariant === \"framed-backgrounded\" &&\n\t\t\t\tbackgroundColor &&\n\t\t\t\tshapeType === \"shapeC\" && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","import React from \"react\";\r\n\r\nexport default function ShapeA({\r\n\tbackgroundOrientation,\r\n\tbackgroundColor,\r\n\tborderColor,\r\n}) {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React from \"react\";\r\n\r\nexport default function ShapeB({\r\n\tbackgroundOrientation,\r\n\tbackgroundColor,\r\n\tborderColor,\r\n}) {\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","import React from \"react\";\r\n\r\nexport default function ShapeB({\r\n\tbackgroundOrientation,\r\n\tbackgroundColor,\r\n\tborderColor,\r\n}) {\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport {};","import { isColorLight } from \"../../_utilities/utilities\";\r\n\r\nexport const filterBgColors = (colors, postType) => {\r\n\tif (!postType) return colors || [];\r\n\r\n\tif (postType === \"articles\") {\r\n\t\treturn (\r\n\t\t\tcolors?.filter((color) => {\r\n\t\t\t\t// Garder seulement certaines couleurs pour les articles\r\n\t\t\t\tconst allowedColors = [\r\n\t\t\t\t\t\"carhop-green-light\",\r\n\t\t\t\t\t\"carhop-blue-light\",\r\n\t\t\t\t\t\"carhop-orange-light\",\r\n\t\t\t\t\t\"carhop-red-light\",\r\n\t\t\t\t\t\"carhop-purple-light\",\r\n\t\t\t\t];\r\n\t\t\t\treturn allowedColors.includes(color.slug);\r\n\t\t\t}) || []\r\n\t\t);\r\n\t}\r\n\r\n\treturn colors || [];\r\n};\r\n\r\nexport const filterTextColors = (colors, postType, backgroundColor) => {\r\n\tif (!postType) return colors || [];\r\n\tif (postType === \"page\" && !isColorLight(backgroundColor)) {\r\n\t\t// Retourner seulement du blanc pour les pages avec arrière-plan sombre\r\n\t\treturn [\r\n\t\t\t{\r\n\t\t\t\tname: \"White\",\r\n\t\t\t\tslug: \"white\",\r\n\t\t\t\tcolor: \"#ffffff\",\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\treturn colors || [];\r\n};\r\n","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"content-box/index\": 0,\n\t\"content-box/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"content-box/style-index\"], () => (__webpack_require__(\"./src/content-box/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["isColorLight","color","hex","replace","length","split","map","char","join","r","parseInt","substr","g","b","luminance","__","useBlockProps","InnerBlocks","useSetting","InspectorControls","MediaReplaceFlow","MediaPlaceholder","Card","CardHeader","CardBody","Heading","Text","useSelect","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Button","CheckboxControl","ColorPalette","SelectControl","ShapeA","ShapeB","ShapeC","filterBgColors","filterTextColors","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","colors","hasBackgroundColor","align","backgroundColor","textColor","hasLightBackground","blockVariant","shapeType","borderColor","postType","select","getCurrentPostType","filteredBgColors","filteredTextColors","onBackgroundColorChange","value","undefined","isLightBackgroundColor","onHasBackgroundColorChange","onTextColorChange","onBlockVariantChange","alignClass","console","log","children","title","label","onChange","isBlock","__nextHasNoMarginBottom","__next40pxDefaultSize","className","options","disabled","style","template","placeholder","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","d","edit","lightnessClass","Content","React","backgroundOrientation","fill","xmlns","preserveAspectRatio","vectorEffect","overflow","stroke","strokeWidth","strokeLinejoin","filter","allowedColors","includes","slug"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-box/style-index.css b/plugins/carhop-blocks/build/content-box/style-index.css index 8b13789..64522bf 100644 --- a/plugins/carhop-blocks/build/content-box/style-index.css +++ b/plugins/carhop-blocks/build/content-box/style-index.css @@ -1 +1,4 @@ +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/content-box/style.scss ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/content-box/view.js b/plugins/carhop-blocks/build/content-box/view.js index e69de29..2cc4cb1 100644 --- a/plugins/carhop-blocks/build/content-box/view.js +++ b/plugins/carhop-blocks/build/content-box/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*********************************!*\ + !*** ./src/content-box/view.js ***! + \*********************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-card/index.css b/plugins/carhop-blocks/build/content-card/index.css index 8b13789..ae457c5 100644 --- a/plugins/carhop-blocks/build/content-card/index.css +++ b/plugins/carhop-blocks/build/content-card/index.css @@ -1 +1,4 @@ +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/content-card/editor.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/content-card/index.js b/plugins/carhop-blocks/build/content-card/index.js index 03122e9..1b66d93 100644 --- a/plugins/carhop-blocks/build/content-card/index.js +++ b/plugins/carhop-blocks/build/content-card/index.js @@ -1 +1,493 @@ -(()=>{"use strict";var o,r={2921:()=>{const o=window.wp.blocks,r=window.wp.i18n,e=window.wp.blockEditor,c=window.wp.components,n=window.ReactJSXRuntime,t=JSON.parse('{"UU":"carhop-blocks/content-card"}');(0,o.registerBlockType)(t.UU,{icon:{foreground:"#136f63",src:(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M1,5c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM3,0H1C.4,0,0,.4,0,1v2c0,.6.4,1,1,1s1-.4,1-1v-1h1c.6,0,1-.4,1-1s-.4-1-1-1ZM6,2h2c.6,0,1-.4,1-1s-.4-1-1-1h-2c-.6,0-1,.4-1,1s.4,1,1,1ZM1,10c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM6,7v4c0,.6.4,1,1,1h4c.6,0,1-.4,1-1v-4c0-.6-.4-1-1-1h-4c-.6,0-1,.4-1,1ZM12,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM17,9c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,4c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,14c-.6,0-1,.4-1,1v1h-1c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1v-2c0-.6-.4-1-1-1ZM7,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM13,0h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1Z"})})})},edit:function({attributes:o,setAttributes:t,...s}){const a=(0,e.useSetting)("color.palette.theme"),{hasBackgroundColor:l,backgroundColor:i,textColor:d,hasLightBackground:h}=o;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(e.InspectorControls,{children:[(0,n.jsxs)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,r.__)("Arrière plan","deligraph-blocks"),children:[(0,n.jsx)(c.CheckboxControl,{label:"Arrière plan coloré",checked:l,onChange:function(o){t({hasBackgroundColor:o}),o||t({backgroundColor:null})}}),l&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(c.ColorPalette,{colors:a,value:i,onChange:function(o){void 0===o&&(t({hasBackgroundColor:!1}),t({backgroundColor:"transparent"}));const r=function(o){if(!o)return!0;let r=o.replace("#","");return 3===r.length&&(r=r.split("").map(o=>o+o).join("")),(.299*parseInt(r.substr(0,2),16)+.587*parseInt(r.substr(2,2),16)+.114*parseInt(r.substr(4,2),16))/255>.5}(i);t({hasLightBackground:r}),t({backgroundColor:o})}})})]}),(0,n.jsx)(c.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,r.__)("Couleur du texte","deligraph-blocks"),children:l&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(c.ColorPalette,{colors:a,value:d,onChange:function(o){t({textColor:o})}})})})]}),(0,n.jsx)("div",{...(0,e.useBlockProps)({className:"content-card "+(h?"content-card--bg-light":"content-card--bg-dark"),style:{"--content-card-text-color":null!=d?d:"inherit","--content-card-background-color":l?i:"transparent"}}),children:(0,n.jsx)("div",{className:"content-card__innerblocks",children:(0,n.jsx)(e.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/buttons","carhop-blocks/heading","carhop-blocks/cta-group"]})})})]})},save:function({attributes:o}){const{backgroundColor:r,textColor:c,hasLightBackground:t,hasBackgroundColor:s}=o;return(0,n.jsx)("div",{...e.useBlockProps.save({className:"content-card "+(t?"content-card--bg-light":"content-card--bg-dark"),style:{"--content-card-text-color":null!=c?c:"inherit","--content-card-background-color":s?r:"transparent"}}),children:(0,n.jsx)("div",{className:"content-card__innerblocks",children:(0,n.jsx)(e.InnerBlocks.Content,{})})})}})}},e={};function c(o){var n=e[o];if(void 0!==n)return n.exports;var t=e[o]={exports:{}};return r[o](t,t.exports,c),t.exports}c.m=r,o=[],c.O=(r,e,n,t)=>{if(!e){var s=1/0;for(d=0;d=t)&&Object.keys(c.O).every(o=>c.O[o](e[l]))?e.splice(l--,1):(a=!1,t0&&o[d-1][2]>t;d--)o[d]=o[d-1];o[d]=[e,n,t]},c.o=(o,r)=>Object.prototype.hasOwnProperty.call(o,r),(()=>{var o={892:0,7684:0};c.O.j=r=>0===o[r];var r=(r,e)=>{var n,t,[s,a,l]=e,i=0;if(s.some(r=>0!==o[r])){for(n in a)c.o(a,n)&&(c.m[n]=a[n]);if(l)var d=l(c)}for(r&&r(e);ic(2921));n=c.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./_utilities/utilities.js": +/*!*********************************!*\ + !*** ./_utilities/utilities.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ isColorLight: () => (/* binding */ isColorLight) +/* harmony export */ }); +// Fonction pour déterminer si une couleur est claire ou sombre +function isColorLight(color) { + // Si pas de couleur, considérer comme claire + if (!color) return true; + + // Convertir hex en RGB + let hex = color.replace("#", ""); + if (hex.length === 3) { + hex = hex.split("").map(char => char + char).join(""); + } + const r = parseInt(hex.substr(0, 2), 16); + const g = parseInt(hex.substr(2, 2), 16); + const b = parseInt(hex.substr(4, 2), 16); + + // Calculer la luminance relative (formule standard) + const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255; + + // Si luminance > 0.5, la couleur est claire + return luminance > 0.5; +} + +/***/ }), + +/***/ "./src/content-card/block.json": +/*!*************************************!*\ + !*** ./src/content-card/block.json ***! + \*************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/content-card","version":"0.1.0","title":"Content Card","category":"carhop-blocks","icon":"smiley","description":"Carte de contenu pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"hasBackgroundColor":{"type":"boolean","default":false},"backgroundColor":{"type":"string","default":"#136f63"},"hasLightBackground":{"type":"boolean","default":true},"textColor":{"type":"string","default":"#136f63"}}}'); + +/***/ }), + +/***/ "./src/content-card/edit.js": +/*!**********************************!*\ + !*** ./src/content-card/edit.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/content-card/editor.scss"); +/* harmony import */ var _utilities_utilities__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_utilities/utilities */ "./_utilities/utilities.js"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme"); + const { + hasBackgroundColor, + backgroundColor, + textColor, + hasLightBackground + } = attributes; + function onBackgroundColorChange(value) { + if (value === undefined) { + setAttributes({ + hasBackgroundColor: false + }); + setAttributes({ + backgroundColor: "transparent" + }); + } + const isLightBackgroundColor = (0,_utilities_utilities__WEBPACK_IMPORTED_MODULE_3__.isColorLight)(backgroundColor); + setAttributes({ + hasLightBackground: isLightBackgroundColor + }); + setAttributes({ + backgroundColor: value + }); + } + function onHasBackgroundColorChange(value) { + setAttributes({ + hasBackgroundColor: value + }); + if (!value) { + setAttributes({ + backgroundColor: null + }); + } + } + function onTextColorChange(value) { + setAttributes({ + textColor: value + }); + } + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Arrière plan", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.CheckboxControl, { + label: "Arri\xE8re plan color\xE9", + checked: hasBackgroundColor, + onChange: onHasBackgroundColorChange + }), hasBackgroundColor && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ColorPalette, { + colors: colors, + value: backgroundColor, + onChange: onBackgroundColorChange + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Couleur du texte", "deligraph-blocks"), + children: hasBackgroundColor && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ColorPalette, { + colors: colors, + value: textColor, + onChange: onTextColorChange + }) + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `content-card ${hasLightBackground ? "content-card--bg-light" : "content-card--bg-dark"}`, + style: { + "--content-card-text-color": textColor !== null && textColor !== void 0 ? textColor : "inherit", + "--content-card-background-color": hasBackgroundColor ? backgroundColor : "transparent" + } + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "content-card__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["core/paragraph", { + placeholder: "Ajouter ici le texte" + }]], + allowedBlocks: ["core/heading", "core/paragraph", "core/group", "core/list", "core/button", "core/buttons", "carhop-blocks/heading", "carhop-blocks/cta-group"] + }) + }) + })] + }); +} + +/***/ }), + +/***/ "./src/content-card/editor.scss": +/*!**************************************!*\ + !*** ./src/content-card/editor.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/content-card/index.js": +/*!***********************************!*\ + !*** ./src/content-card/index.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/content-card/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/content-card/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/content-card/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/content-card/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "18", + height: "18", + viewBox: "0 0 18 18", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M1,5c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM3,0H1C.4,0,0,.4,0,1v2c0,.6.4,1,1,1s1-.4,1-1v-1h1c.6,0,1-.4,1-1s-.4-1-1-1ZM6,2h2c.6,0,1-.4,1-1s-.4-1-1-1h-2c-.6,0-1,.4-1,1s.4,1,1,1ZM1,10c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM6,7v4c0,.6.4,1,1,1h4c.6,0,1-.4,1-1v-4c0-.6-.4-1-1-1h-4c-.6,0-1,.4-1,1ZM12,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM17,9c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,4c-.6,0-1,.4-1,1v2c0,.6.4,1,1,1s1-.4,1-1v-2c0-.6-.4-1-1-1ZM17,14c-.6,0-1,.4-1,1v1h-1c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1v-2c0-.6-.4-1-1-1ZM7,16h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1ZM13,0h-2c-.6,0-1,.4-1,1s.4,1,1,1h2c.6,0,1-.4,1-1s-.4-1-1-1Z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/content-card/save.js": +/*!**********************************!*\ + !*** ./src/content-card/save.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _utilities_utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_utilities/utilities */ "./_utilities/utilities.js"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__); + + + +function save({ + attributes +}) { + const { + backgroundColor, + textColor, + hasLightBackground, + hasBackgroundColor + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `content-card ${hasLightBackground ? "content-card--bg-light" : "content-card--bg-dark"}`, + style: { + "--content-card-text-color": textColor !== null && textColor !== void 0 ? textColor : "inherit", + "--content-card-background-color": hasBackgroundColor ? backgroundColor : "transparent" + } + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", { + className: "content-card__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }) + }); +} + +/***/ }), + +/***/ "./src/content-card/style.scss": +/*!*************************************!*\ + !*** ./src/content-card/style.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "content-card/index": 0, +/******/ "content-card/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["content-card/style-index"], () => (__webpack_require__("./src/content-card/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-card/index.js.map b/plugins/carhop-blocks/build/content-card/index.js.map new file mode 100644 index 0000000..c92374f --- /dev/null +++ b/plugins/carhop-blocks/build/content-card/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"content-card/index.js","mappings":";;;;;;;;;;;;;;AAAA;AACO,SAASA,YAAYA,CAACC,KAAK,EAAE;EACnC;EACA,IAAI,CAACA,KAAK,EAAE,OAAO,IAAI;;EAEvB;EACA,IAAIC,GAAG,GAAGD,KAAK,CAACE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;EAChC,IAAID,GAAG,CAACE,MAAM,KAAK,CAAC,EAAE;IACrBF,GAAG,GAAGA,GAAG,CACPG,KAAK,CAAC,EAAE,CAAC,CACTC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AEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./_utilities/utilities.js","webpack://carhop-blocks/./src/content-card/edit.js","webpack://carhop-blocks/./src/content-card/editor.scss","webpack://carhop-blocks/./src/content-card/index.js","webpack://carhop-blocks/./src/content-card/save.js","webpack://carhop-blocks/./src/content-card/style.scss?6d5b","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["// Fonction pour déterminer si une couleur est claire ou sombre\r\nexport function isColorLight(color) {\r\n\t// Si pas de couleur, considérer comme claire\r\n\tif (!color) return true;\r\n\r\n\t// Convertir hex en RGB\r\n\tlet hex = color.replace(\"#\", \"\");\r\n\tif (hex.length === 3) {\r\n\t\thex = hex\r\n\t\t\t.split(\"\")\r\n\t\t\t.map((char) => char + char)\r\n\t\t\t.join(\"\");\r\n\t}\r\n\r\n\tconst r = parseInt(hex.substr(0, 2), 16);\r\n\tconst g = parseInt(hex.substr(2, 2), 16);\r\n\tconst b = parseInt(hex.substr(4, 2), 16);\r\n\r\n\t// Calculer la luminance relative (formule standard)\r\n\tconst luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\r\n\r\n\t// Si luminance > 0.5, la couleur est claire\r\n\treturn luminance > 0.5;\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tuseSetting,\n\tInspectorControls,\n\tMediaReplaceFlow,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { isColorLight } from \"../../_utilities/utilities\";\n\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tButton,\n\tCheckboxControl,\n\tColorPalette,\n} from \"@wordpress/components\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst colors = useSetting(\"color.palette.theme\");\n\tconst { hasBackgroundColor, backgroundColor, textColor, hasLightBackground } =\n\t\tattributes;\n\n\tfunction onBackgroundColorChange(value) {\n\t\tif (value === undefined) {\n\t\t\tsetAttributes({ hasBackgroundColor: false });\n\t\t\tsetAttributes({ backgroundColor: \"transparent\" });\n\t\t}\n\t\tconst isLightBackgroundColor = isColorLight(backgroundColor);\n\t\tsetAttributes({ hasLightBackground: isLightBackgroundColor });\n\n\t\tsetAttributes({ backgroundColor: value });\n\t}\n\tfunction onHasBackgroundColorChange(value) {\n\t\tsetAttributes({ hasBackgroundColor: value });\n\t\tif (!value) {\n\t\t\tsetAttributes({ backgroundColor: null });\n\t\t}\n\t}\n\tfunction onTextColorChange(value) {\n\t\tsetAttributes({ textColor: value });\n\t}\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{hasBackgroundColor && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{hasBackgroundColor && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport { isColorLight } from \"../../_utilities/utilities\";\n\nexport default function save({ attributes }) {\n\tconst { backgroundColor, textColor, hasLightBackground, hasBackgroundColor } =\n\t\tattributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"content-card/index\": 0,\n\t\"content-card/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"content-card/style-index\"], () => (__webpack_require__(\"./src/content-card/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["isColorLight","color","hex","replace","length","split","map","char","join","r","parseInt","substr","g","b","luminance","__","useBlockProps","InnerBlocks","useSetting","InspectorControls","MediaReplaceFlow","MediaPlaceholder","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Button","CheckboxControl","ColorPalette","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","attributes","setAttributes","props","colors","hasBackgroundColor","backgroundColor","textColor","hasLightBackground","onBackgroundColorChange","value","undefined","isLightBackgroundColor","onHasBackgroundColorChange","onTextColorChange","children","className","title","label","checked","onChange","style","template","placeholder","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-card/style-index.css b/plugins/carhop-blocks/build/content-card/style-index.css index 38997e1..a199bfd 100644 --- a/plugins/carhop-blocks/build/content-card/style-index.css +++ b/plugins/carhop-blocks/build/content-card/style-index.css @@ -1 +1,31 @@ -.content-card{word-break:break-word}.content-card h1.wp-block-heading,.content-card h2.wp-block-heading,.content-card h3.wp-block-heading,.content-card h4.wp-block-heading,.content-card h5.wp-block-heading,.content-card h6.wp-block-heading{color:var(--content-card-text-color);font-size:1.25rem;font-weight:700;margin-bottom:0;margin-top:0;text-transform:uppercase}.content-card *,.content-card p{color:var(--content-card-text-color)}.content-card li{font-weight:300;list-style:disc;margin-bottom:.5rem;margin-left:1rem} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/content-card/style.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.content-card { + word-break: break-word; +} +.content-card h1.wp-block-heading, +.content-card h2.wp-block-heading, +.content-card h3.wp-block-heading, +.content-card h4.wp-block-heading, +.content-card h5.wp-block-heading, +.content-card h6.wp-block-heading { + margin-top: 0; + margin-bottom: 0; + font-size: 1.25rem; + text-transform: uppercase; + font-weight: 700; + color: var(--content-card-text-color); +} +.content-card *, +.content-card p { + color: var(--content-card-text-color); +} +.content-card li { + list-style: disc; + margin-left: 1rem; + margin-bottom: 0.5rem; + font-weight: 300; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-card/style-index.css.map b/plugins/carhop-blocks/build/content-card/style-index.css.map new file mode 100644 index 0000000..d05ffe5 --- /dev/null +++ b/plugins/carhop-blocks/build/content-card/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"content-card/style-index.css","mappings":";;;AAAA;EACC;AACD;AACC;;;;;;EAMC;EACA;EACA;EACA;EACA;EACA;AACF;AACC;;EAEC;AACF;AAEC;EACC;EACA;EACA;EACA;AAAF,C","sources":["webpack://carhop-blocks/./src/content-card/style.scss"],"sourcesContent":[".content-card {\r\n\tword-break: break-word;\r\n\r\n\th1.wp-block-heading,\r\n\th2.wp-block-heading,\r\n\th3.wp-block-heading,\r\n\th4.wp-block-heading,\r\n\th5.wp-block-heading,\r\n\th6.wp-block-heading {\r\n\t\tmargin-top: 0;\r\n\t\tmargin-bottom: 0;\r\n\t\tfont-size: 1.25rem;\r\n\t\ttext-transform: uppercase;\r\n\t\tfont-weight: 700;\r\n\t\tcolor: var(--content-card-text-color);\r\n\t}\r\n\t*,\r\n\tp {\r\n\t\tcolor: var(--content-card-text-color);\r\n\t}\r\n\r\n\tli {\r\n\t\tlist-style: disc;\r\n\t\tmargin-left: 1rem;\r\n\t\tmargin-bottom: 0.5rem;\r\n\t\tfont-weight: 300;\r\n\t}\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/content-card/view.js b/plugins/carhop-blocks/build/content-card/view.js index e69de29..754e278 100644 --- a/plugins/carhop-blocks/build/content-card/view.js +++ b/plugins/carhop-blocks/build/content-card/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!**********************************!*\ + !*** ./src/content-card/view.js ***! + \**********************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/index.css b/plugins/carhop-blocks/build/cta-group/index.css index b03f397..a5060c7 100644 --- a/plugins/carhop-blocks/build/cta-group/index.css +++ b/plugins/carhop-blocks/build/cta-group/index.css @@ -1 +1,34 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color);display:block;display:flex;gap:10px;line-height:normal;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{stroke:var(--cta-current-color)}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/cta-group/editor.scss ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + color: var(--cta-current-color); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + stroke: var(--cta-current-color); +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/index.css.map b/plugins/carhop-blocks/build/cta-group/index.css.map new file mode 100644 index 0000000..102292d --- /dev/null +++ b/plugins/carhop-blocks/build/cta-group/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"cta-group/index.css","mappings":";;;AAAA;EACC;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;AAAD;AAGE;EACC;EACA;AADH;AAGE;;EAEC;AADH;AAKC;EACC;AAHF;AAKC;EACC;EACA;AAHF;AAKC;EACC;AAHF,C","sources":["webpack://carhop-blocks/./src/cta-group/editor.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tcolor: var(--cta-current-color);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tstroke: var(--cta-current-color);\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/index.js b/plugins/carhop-blocks/build/cta-group/index.js index 113fbe4..b955848 100644 --- a/plugins/carhop-blocks/build/cta-group/index.js +++ b/plugins/carhop-blocks/build/cta-group/index.js @@ -1 +1,384 @@ -(()=>{"use strict";var r,o={8903:()=>{const r=window.wp.blocks,o=(window.wp.i18n,window.wp.blockEditor),e=window.ReactJSXRuntime,t=JSON.parse('{"UU":"carhop-blocks/cta-group"}');(0,r.registerBlockType)(t.UU,{icon:{src:(0,e.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:[(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{d:"M21.15,10.59l-9.38,10.02",stroke:"#136f63",fill:"none",strokeWidth:"3"}),(0,e.jsx)("path",{d:"M21.15,21.4v-10.81h-10.32",stroke:"#136f63",fill:"none",strokeWidth:"3"})]}),(0,e.jsx)("circle",{cx:"16",cy:"16",r:"15",stroke:"#136f63",fill:"none",strokeWidth:"3"})]})},edit:function({attributes:r,setAttributes:t}){const{align:s}=r;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.BlockControls,{children:(0,e.jsx)(o.AlignmentToolbar,{value:s,onChange:r=>t({align:r})})}),(0,e.jsx)("div",{...(0,o.useBlockProps)({className:`cta-group cta-group--align-${s}`}),children:(0,e.jsx)(o.InnerBlocks,{allowedBlocks:["carhop-blocks/cta"],template:[["carhop-blocks/cta"]]})})]})},save:function({attributes:r}){const{align:t}=r;return(0,e.jsx)("div",{...o.useBlockProps.save({className:`cta-group cta-group--align-${t}`}),children:(0,e.jsx)(o.InnerBlocks.Content,{})})}})}},e={};function t(r){var s=e[r];if(void 0!==s)return s.exports;var n=e[r]={exports:{}};return o[r](n,n.exports,t),n.exports}t.m=o,r=[],t.O=(o,e,s,n)=>{if(!e){var l=1/0;for(h=0;h=n)&&Object.keys(t.O).every(r=>t.O[r](e[c]))?e.splice(c--,1):(i=!1,n0&&r[h-1][2]>n;h--)r[h]=r[h-1];r[h]=[e,s,n]},t.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o),(()=>{var r={1252:0,9276:0};t.O.j=o=>0===r[o];var o=(o,e)=>{var s,n,[l,i,c]=e,a=0;if(l.some(o=>0!==r[o])){for(s in i)t.o(i,s)&&(t.m[s]=i[s]);if(c)var h=c(t)}for(o&&o(e);at(8903));s=t.O(s)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/cta-group/block.json": +/*!**********************************!*\ + !*** ./src/cta-group/block.json ***! + \**********************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/cta-group","version":"0.1.0","title":"Groupe de CTA","category":"carhop-blocks","icon":"smiley","description":"Pour intégrer Un groupe de call to action","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"align":{"type":"string","default":"left"}}}'); + +/***/ }), + +/***/ "./src/cta-group/edit.js": +/*!*******************************!*\ + !*** ./src/cta-group/edit.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/cta-group/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + align + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.AlignmentToolbar, { + value: align, + onChange: value => setAttributes({ + align: value + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `cta-group cta-group--align-${align}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["carhop-blocks/cta"], + template: [["carhop-blocks/cta"]] + }) + })] + }); +} + +/***/ }), + +/***/ "./src/cta-group/editor.scss": +/*!***********************************!*\ + !*** ./src/cta-group/editor.scss ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/cta-group/index.js": +/*!********************************!*\ + !*** ./src/cta-group/index.js ***! + \********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/cta-group/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/cta-group/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/cta-group/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/cta-group/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M21.15,10.59l-9.38,10.02", + stroke: "#136f63", + fill: "none", + strokeWidth: "3" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M21.15,21.4v-10.81h-10.32", + stroke: "#136f63", + fill: "none", + strokeWidth: "3" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("circle", { + cx: "16", + cy: "16", + r: "15", + stroke: "#136f63", + fill: "none", + strokeWidth: "3" + })] + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/cta-group/save.js": +/*!*******************************!*\ + !*** ./src/cta-group/save.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save({ + attributes +}) { + const { + align + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `cta-group cta-group--align-${align}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }); +} + +/***/ }), + +/***/ "./src/cta-group/style.scss": +/*!**********************************!*\ + !*** ./src/cta-group/style.scss ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "cta-group/index": 0, +/******/ "cta-group/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["cta-group/style-index"], () => (__webpack_require__("./src/cta-group/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/index.js.map b/plugins/carhop-blocks/build/cta-group/index.js.map new file mode 100644 index 0000000..219e3f5 --- /dev/null +++ b/plugins/carhop-blocks/build/cta-group/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"cta-group/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AACmD;AAAA;AAE3D,SAASW,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAM,CAAC,GAAGF,UAAU;EAC5B,oBACCF,uDAAA,CAAAF,uDAAA;IAAAO,QAAA,gBACCT,sDAAA,CAACH,kEAAa;MAAAY,QAAA,eACbT,sDAAA,CAACF,qEAAgB;QAChBY,KAAK,EAAEF,KAAM;QACbG,QAAQ,EAAGD,KAAK,IAAKH,aAAa,CAAC;UAAEC,KAAK,EAAEE;QAAM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M;IAAEE;EAAM,CAAC,GAAGF,UAAU;EAC5B,oBACCN,sDAAA;IAAA,GACKL,kEAAa,CAACqB,IAAI,CAAC;MACtBJ,SAAS,EAAE,8BAA8BJ,KAAK;IAC/C,CAAC,CAAC;IAAAC,QAAA,eAEFT,sDAAA,CAACJ,gEAAW,CAACoC,OAAO,IAAE;EAAC,CACnB,CAAC;AAER,C;;;;;;;;;;;ACbA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/cta-group/edit.js","webpack://carhop-blocks/./src/cta-group/editor.scss?5657","webpack://carhop-blocks/./src/cta-group/index.js","webpack://carhop-blocks/./src/cta-group/save.js","webpack://carhop-blocks/./src/cta-group/style.scss?6906","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { BlockControls, AlignmentToolbar } from \"@wordpress/block-editor\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { align } = attributes;\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t setAttributes({ align: value })}\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\nexport default function save({ attributes }) {\n\tconst { align } = attributes;\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"cta-group/index\": 0,\n\t\"cta-group/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"cta-group/style-index\"], () => (__webpack_require__(\"./src/cta-group/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","BlockControls","AlignmentToolbar","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","attributes","setAttributes","align","children","value","onChange","className","allowedBlocks","template","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","d","stroke","fill","strokeWidth","cx","cy","r","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/style-index.css b/plugins/carhop-blocks/build/cta-group/style-index.css index 7ef940d..6175edf 100644 --- a/plugins/carhop-blocks/build/cta-group/style-index.css +++ b/plugins/carhop-blocks/build/cta-group/style-index.css @@ -1 +1,30 @@ -.cta-group{align-items:center;display:flex;flex-wrap:wrap;gap:2rem;justify-content:center;row-gap:1rem}@media(max-width:768px){.cta-group{row-gap:1.5rem}}.cta-group .wp-block-carhop-blocks-cta{margin:0!important}.cta-group--align-left{justify-content:flex-start}.cta-group--align-center{justify-content:center}.cta-group--align-right{justify-content:flex-end} +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/cta-group/style.scss ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.cta-group { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: center; + gap: 2rem; + row-gap: 1rem; +} +@media (max-width: 768px) { + .cta-group { + row-gap: 1.5rem; + } +} +.cta-group .wp-block-carhop-blocks-cta { + margin: 0 !important; +} +.cta-group--align-left { + justify-content: flex-start; +} +.cta-group--align-center { + justify-content: center; +} +.cta-group--align-right { + justify-content: flex-end; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/style-index.css.map b/plugins/carhop-blocks/build/cta-group/style-index.css.map new file mode 100644 index 0000000..f95ff33 --- /dev/null +++ b/plugins/carhop-blocks/build/cta-group/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"cta-group/style-index.css","mappings":";;;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;AACD;AACC;EARD;IASE;EAEA;AACF;AAAC;EACC;AAEF;AACC;EACC;AACF;AAEC;EACC;AAAF;AAGC;EACC;AADF,C","sources":["webpack://carhop-blocks/./src/cta-group/style.scss"],"sourcesContent":[".cta-group {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: center;\n\talign-items: center;\n\tgap: 2rem;\n\trow-gap: 1rem;\n\n\t@media (max-width: 768px) {\n\t\trow-gap: 1.5rem;\n\t}\n\n\t.wp-block-carhop-blocks-cta {\n\t\tmargin: 0 !important;\n\t}\n\n\t&--align-left {\n\t\tjustify-content: flex-start;\n\t}\n\n\t&--align-center {\n\t\tjustify-content: center;\n\t}\n\n\t&--align-right {\n\t\tjustify-content: flex-end;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta-group/view.js b/plugins/carhop-blocks/build/cta-group/view.js index e69de29..30d8e06 100644 --- a/plugins/carhop-blocks/build/cta-group/view.js +++ b/plugins/carhop-blocks/build/cta-group/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*******************************!*\ + !*** ./src/cta-group/view.js ***! + \*******************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta/index.js.map b/plugins/carhop-blocks/build/cta/index.js.map index 22fc235..8835290 100644 --- a/plugins/carhop-blocks/build/cta/index.js.map +++ b/plugins/carhop-blocks/build/cta/index.js.map @@ -1 +1 @@ -{"version":3,"file":"cta/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAOJ;AACiB;AAC3B;AACmD;AACX;AACnB;AAC4C;AACN;AAAA;AAEnE,SAASsB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,KAAK;IAAEC;EAAK,CAAC,GAAGH,UAAU;EAClC,MAAMI,MAAM,GAAGrB,mEAAU,CAAC,qBAAqB,CAAC;EAChD,MAAMsB,UAAU,GAAG,OAAOF,IAAI,EAAEG,GAAG,KAAK,QAAQ,IAAIH,IAAI,CAACG,GAAG,CAACC,UAAU,CAAC,GAAG,CAAC;EAE5E,SAASC,iBAAiBA,CAACC,KAAK,EAAE;IACjCR,aAAa,CAAC;MAAEC,KAAK,EAAEO;IAAM,CAAC,CAAC;EAChC;EAEAC,OAAO,CAACC,GAAG,CAACX,UAAU,CAAC;EACvBU,OAAO,CAACC,GAAG,CAACR,IAAI,CAAC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;AAEzE,SAASA,IAAIA,CAAC;EAAE/B;AAAW,CAAC,EAAE;EAC5C;AACD,C;;;;;;;;;;;ACLA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,4C;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,iC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/cta/edit.js","webpack://carhop-blocks/./src/cta/editor.scss","webpack://carhop-blocks/./src/cta/img/carhop-fleche-ancre-page.svg","webpack://carhop-blocks/./src/cta/img/carhop-fleche-lien-externe-full.svg","webpack://carhop-blocks/./src/cta/index.js","webpack://carhop-blocks/./src/cta/save.js","webpack://carhop-blocks/./src/cta/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"React\"","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInspectorControls,\n\t__experimentalLinkControl as LinkControl,\n\tuseSetting,\n} from \"@wordpress/block-editor\";\nimport { PanelBody } from \"@wordpress/components\";\nimport \"./editor.scss\";\nimport { BlockControls, AlignmentToolbar } from \"@wordpress/block-editor\";\nimport { ColorPalette, PanelRow } from \"@wordpress/components\";\nimport { Tip } from \"@wordpress/components\";\nimport { ReactComponent as ArrowIcon } from \"./img/carhop-fleche-lien-externe-full.svg\";\nimport { ReactComponent as AnchorIcon } from \"./img/carhop-fleche-ancre-page.svg\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { color, link } = attributes;\n\tconst colors = useSetting(\"color.palette.theme\");\n\tconst isHashLink = typeof link?.url === \"string\" && link.url.startsWith(\"#\");\n\n\tfunction handleColorChange(value) {\n\t\tsetAttributes({ color: value });\n\t}\n\n\tconsole.log(attributes);\n\tconsole.log(link);\n\n\tfunction handleLinkChange(newLink) {\n\t\tif (!newLink) {\n\t\t\tsetAttributes({ link: undefined });\n\t\t\treturn;\n\t\t}\n\n\t\tif (newLink.url) {\n\t\t\tnewLink.title = newLink.url;\n\t\t}\n\n\t\tconsole.log(newLink);\n\t\tsetAttributes({ link: newLink });\n\t}\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t setAttributes({ align: value })}\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tconsole.log(\"onSelect\");\n\t\t\t\t\t\t\t\tconsole.log(value);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonChange={(newlink) => {\n\t\t\t\t\t\t\t\thandleLinkChange(newlink);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleColorChange(value);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tcolors={colors}\n\t\t\t\t\t\t\t\tdisableCustomColors={true}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t setAttributes({ text })}\n\t\t\t\t\tallowedFormats={[]}\n\t\t\t\t/>\n\n\t\t\t\t{isHashLink ? (\n\t\t\t\t\t\n\t\t\t\t) : (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","var _circle, _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCarhopFlecheAncrePage = function SvgCarhopFlecheAncrePage(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-hidden\": \"true\",\n viewBox: \"0 0 32 32\"\n }, props), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 16,\n cy: 16,\n r: 15,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2,\n d: \"M16 9v11m-5-3 5 6 5-6\"\n })));\n};\nexport { SvgCarhopFlecheAncrePage as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiPg0KCTxjaXJjbGUgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgY3g9IjE2IiBjeT0iMTYiIHI9IjE1Ii8+DQoJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTYgOXYxMU0xMSAxN2w1IDYgNS02Ii8+DQo8L3N2Zz4NCg==\";","var _g, _circle;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCarhopFlecheLienExterneFull = function SvgCarhopFlecheLienExterneFull(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-hidden\": \"true\",\n viewBox: \"0 0 32 32\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"m21.15 10.59-9.38 10.02M21.15 21.4V10.59H10.83\"\n }))), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 16,\n cy: 16,\n r: 15,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n })));\n};\nexport { SvgCarhopFlecheLienExterneFull as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiPgoJPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiI+CgkJPHBhdGggZD0iTTIxLjE1LDEwLjU5bC05LjM4LDEwLjAyIi8+CgkJPHBhdGggZD0iTTIxLjE1LDIxLjR2LTEwLjgxaC0xMC4zMiIvPgoJPC9nPgoJPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiLz4KPC9zdmc+Cg==\";","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { ReactComponent as ArrowIcon } from \"./img/carhop-fleche-lien-externe-full.svg\";\n\nexport default function save({ attributes }) {\n\treturn;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"cta/index\": 0,\n\t\"cta/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"cta/style-index\"], () => (__webpack_require__(\"./src/cta/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InspectorControls","__experimentalLinkControl","LinkControl","useSetting","PanelBody","BlockControls","AlignmentToolbar","ColorPalette","PanelRow","Tip","ReactComponent","ArrowIcon","AnchorIcon","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","color","link","colors","isHashLink","url","startsWith","handleColorChange","value","console","log","handleLinkChange","newLink","undefined","title","children","align","onChange","initialOpen","label","onSelect","newlink","disableCustomColors","className","style","tagName","placeholder","text","allowedFormats","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","d","stroke","fill","strokeWidth","cx","cy","r","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"cta/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAOJ;AACiB;AAC3B;AACmD;AACX;AACnB;AAC4C;AACN;AAAA;AAEnE,SAASsB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D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;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/cta/edit.js","webpack://carhop-blocks/./src/cta/editor.scss?8c7f","webpack://carhop-blocks/./src/cta/img/carhop-fleche-ancre-page.svg","webpack://carhop-blocks/./src/cta/img/carhop-fleche-lien-externe-full.svg","webpack://carhop-blocks/./src/cta/index.js","webpack://carhop-blocks/./src/cta/save.js","webpack://carhop-blocks/./src/cta/style.scss?a37d","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"React\"","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInspectorControls,\n\t__experimentalLinkControl as LinkControl,\n\tuseSetting,\n} from \"@wordpress/block-editor\";\nimport { PanelBody } from \"@wordpress/components\";\nimport \"./editor.scss\";\nimport { BlockControls, AlignmentToolbar } from \"@wordpress/block-editor\";\nimport { ColorPalette, PanelRow } from \"@wordpress/components\";\nimport { Tip } from \"@wordpress/components\";\nimport { ReactComponent as ArrowIcon } from \"./img/carhop-fleche-lien-externe-full.svg\";\nimport { ReactComponent as AnchorIcon } from \"./img/carhop-fleche-ancre-page.svg\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { color, link } = attributes;\n\tconst colors = useSetting(\"color.palette.theme\");\n\tconst isHashLink = typeof link?.url === \"string\" && link.url.startsWith(\"#\");\n\n\tfunction handleColorChange(value) {\n\t\tsetAttributes({ color: value });\n\t}\n\n\tconsole.log(attributes);\n\tconsole.log(link);\n\n\tfunction handleLinkChange(newLink) {\n\t\tif (!newLink) {\n\t\t\tsetAttributes({ link: undefined });\n\t\t\treturn;\n\t\t}\n\n\t\tif (newLink.url) {\n\t\t\tnewLink.title = newLink.url;\n\t\t}\n\n\t\tconsole.log(newLink);\n\t\tsetAttributes({ link: newLink });\n\t}\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t setAttributes({ align: value })}\n\t\t\t\t/>\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tconsole.log(\"onSelect\");\n\t\t\t\t\t\t\t\tconsole.log(value);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonChange={(newlink) => {\n\t\t\t\t\t\t\t\thandleLinkChange(newlink);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleColorChange(value);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tcolors={colors}\n\t\t\t\t\t\t\t\tdisableCustomColors={true}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t setAttributes({ text })}\n\t\t\t\t\tallowedFormats={[]}\n\t\t\t\t/>\n\n\t\t\t\t{isHashLink ? (\n\t\t\t\t\t\n\t\t\t\t) : (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","var _circle, _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCarhopFlecheAncrePage = function SvgCarhopFlecheAncrePage(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-hidden\": \"true\",\n viewBox: \"0 0 32 32\"\n }, props), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 16,\n cy: 16,\n r: 15,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2,\n d: \"M16 9v11m-5-3 5 6 5-6\"\n })));\n};\nexport { SvgCarhopFlecheAncrePage as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiPg0KCTxjaXJjbGUgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgY3g9IjE2IiBjeT0iMTYiIHI9IjE1Ii8+DQoJPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTYgOXYxMU0xMSAxN2w1IDYgNS02Ii8+DQo8L3N2Zz4NCg==\";","var _g, _circle;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCarhopFlecheLienExterneFull = function SvgCarhopFlecheLienExterneFull(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-hidden\": \"true\",\n viewBox: \"0 0 32 32\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"m21.15 10.59-9.38 10.02M21.15 21.4V10.59H10.83\"\n }))), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 16,\n cy: 16,\n r: 15,\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2\n })));\n};\nexport { SvgCarhopFlecheLienExterneFull as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiPgoJPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiI+CgkJPHBhdGggZD0iTTIxLjE1LDEwLjU5bC05LjM4LDEwLjAyIi8+CgkJPHBhdGggZD0iTTIxLjE1LDIxLjR2LTEwLjgxaC0xMC4zMiIvPgoJPC9nPgoJPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiLz4KPC9zdmc+Cg==\";","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { ReactComponent as ArrowIcon } from \"./img/carhop-fleche-lien-externe-full.svg\";\n\nexport default function save({ attributes }) {\n\treturn;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"cta/index\": 0,\n\t\"cta/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"cta/style-index\"], () => (__webpack_require__(\"./src/cta/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InspectorControls","__experimentalLinkControl","LinkControl","useSetting","PanelBody","BlockControls","AlignmentToolbar","ColorPalette","PanelRow","Tip","ReactComponent","ArrowIcon","AnchorIcon","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","color","link","colors","isHashLink","url","startsWith","handleColorChange","value","console","log","handleLinkChange","newLink","undefined","title","children","align","onChange","initialOpen","label","onSelect","newlink","disableCustomColors","className","style","tagName","placeholder","text","allowedFormats","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","d","stroke","fill","strokeWidth","cx","cy","r","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta/style-index.css b/plugins/carhop-blocks/build/cta/style-index.css index 2576558..4699348 100644 --- a/plugins/carhop-blocks/build/cta/style-index.css +++ b/plugins/carhop-blocks/build/cta/style-index.css @@ -1 +1,41 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color,currentColor);display:block;display:flex;font-weight:600;gap:10px;line-height:normal;margin-top:20px;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta a{text-decoration:none}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{fill:transparent;stroke:var(--cta-current-color);stroke-width:2}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/cta/style.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + margin-top: 20px; + color: var(--cta-current-color, currentColor); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; + font-weight: 600; +} +.wp-block-carhop-blocks-cta a { + text-decoration: none; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + fill: transparent; + stroke: var(--cta-current-color); + stroke-width: 2; +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta/style-index.css.map b/plugins/carhop-blocks/build/cta/style-index.css.map new file mode 100644 index 0000000..1a9346a --- /dev/null +++ b/plugins/carhop-blocks/build/cta/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"cta/style-index.css","mappings":";;;AAAA;EACC;EACA;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;EAEA;AADD;AAGC;EACC;AADF;AAIE;EACC;EACA;AAFH;AAIE;;EAEC;EACA;EACA;AAFH;AAMC;EACC;AAJF;AAMC;EACC;EACA;AAJF;AAMC;EACC;AAJF,C","sources":["webpack://carhop-blocks/./src/cta/style.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tmargin-top: 20px;\n\tcolor: var(--cta-current-color, currentColor);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\tfont-weight: 600;\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tfill: transparent;\n\t\t\tstroke: var(--cta-current-color);\n\t\t\tstroke-width: 2;\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/cta/view.js b/plugins/carhop-blocks/build/cta/view.js index e69de29..baef117 100644 --- a/plugins/carhop-blocks/build/cta/view.js +++ b/plugins/carhop-blocks/build/cta/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*************************!*\ + !*** ./src/cta/view.js ***! + \*************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/dbmob-archives/index.css b/plugins/carhop-blocks/build/dbmob-archives/index.css index 8b13789..b565820 100644 --- a/plugins/carhop-blocks/build/dbmob-archives/index.css +++ b/plugins/carhop-blocks/build/dbmob-archives/index.css @@ -1 +1,4 @@ +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/dbmob-archives/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/dbmob-archives/index.js b/plugins/carhop-blocks/build/dbmob-archives/index.js index 1c4a6b9..01e7baf 100644 --- a/plugins/carhop-blocks/build/dbmob-archives/index.js +++ b/plugins/carhop-blocks/build/dbmob-archives/index.js @@ -1 +1,312 @@ -(()=>{"use strict";var r,e={1660:()=>{const r=window.wp.blocks,e=(window.wp.i18n,window.wp.blockEditor),o=window.wp.serverSideRender,i=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/dbmob-archives"}');(0,r.registerBlockType)(n.UU,{edit:function(){return(0,i.jsx)("div",{...(0,e.useBlockProps)(),children:(0,i.jsx)(o.ServerSideRender,{block:"carhop-blocks/dbmob-archives"})})}})}},o={};function i(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,i),s.exports}i.m=e,r=[],i.O=(e,o,n,s)=>{if(!o){var c=1/0;for(p=0;p=s)&&Object.keys(i.O).every(r=>i.O[r](o[a]))?o.splice(a--,1):(t=!1,s0&&r[p-1][2]>s;p--)r[p]=r[p-1];r[p]=[o,n,s]},i.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={7966:0,4546:0};i.O.j=e=>0===r[e];var e=(e,o)=>{var n,s,[c,t,a]=o,l=0;if(c.some(e=>0!==r[e])){for(n in t)i.o(t,n)&&(i.m[n]=t[n]);if(a)var p=a(i)}for(e&&e(o);li(1660));n=i.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/dbmob-archives/block.json": +/*!***************************************!*\ + !*** ./src/dbmob-archives/block.json ***! + \***************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/dbmob-archives","version":"0.1.0","title":"Archives des notices biographiques","category":"carhop-blocks","icon":"smiley","description":"Archives des notices biographiques","supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/dbmob-archives/edit.js": +/*!************************************!*\ + !*** ./src/dbmob-archives/edit.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/dbmob-archives/editor.scss"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__.ServerSideRender, { + block: "carhop-blocks/dbmob-archives" + }) + }); +} + +/***/ }), + +/***/ "./src/dbmob-archives/editor.scss": +/*!****************************************!*\ + !*** ./src/dbmob-archives/editor.scss ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/dbmob-archives/index.js": +/*!*************************************!*\ + !*** ./src/dbmob-archives/index.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/dbmob-archives/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/dbmob-archives/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/dbmob-archives/block.json"); + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/dbmob-archives/style.scss": +/*!***************************************!*\ + !*** ./src/dbmob-archives/style.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "dbmob-archives/index": 0, +/******/ "dbmob-archives/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["dbmob-archives/style-index"], () => (__webpack_require__("./src/dbmob-archives/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/dbmob-archives/index.js.map b/plugins/carhop-blocks/build/dbmob-archives/index.js.map new file mode 100644 index 0000000..0af2b8b --- /dev/null +++ b/plugins/carhop-blocks/build/dbmob-archives/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dbmob-archives/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACjC;AAC0C;AAAA;AAClD,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAASH,sEAAa,CAAC,CAAC;IAAAK,QAAA,eACvBF,sDAAA,CAACF,2EAAgB;MAACK,KAAK,EAAC;IAA8B,CAAE;EAAC,CACrD,CAAC;AAER,C;;;;;;;;;;;ACVA;;;;;;;;;;;;;;;;;ACAsD;AAChC;AACI;AACU;AACpCC,oEAAiB,CAACC,6CAAa,EAAE;EAChCE,IAAI,EAAEN,6CAAIA;AACX,CAAC,CAAC,C;;;;;;;;;;;ACNF;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,kD;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/dbmob-archives/edit.js","webpack://carhop-blocks/./src/dbmob-archives/editor.scss","webpack://carhop-blocks/./src/dbmob-archives/index.js","webpack://carhop-blocks/./src/dbmob-archives/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { ServerSideRender } from \"@wordpress/server-side-render\";\nexport default function Edit() {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\nregisterBlockType(metadata.name, {\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"dbmob-archives/index\": 0,\n\t\"dbmob-archives/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"dbmob-archives/style-index\"], () => (__webpack_require__(\"./src/dbmob-archives/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","children","block","registerBlockType","metadata","name","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/dbmob-archives/style-index.css b/plugins/carhop-blocks/build/dbmob-archives/style-index.css index 8b13789..d8cd6d2 100644 --- a/plugins/carhop-blocks/build/dbmob-archives/style-index.css +++ b/plugins/carhop-blocks/build/dbmob-archives/style-index.css @@ -1 +1,4 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/dbmob-archives/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/dbmob-archives/view.js b/plugins/carhop-blocks/build/dbmob-archives/view.js index a512f0b..ff62c27 100644 --- a/plugins/carhop-blocks/build/dbmob-archives/view.js +++ b/plugins/carhop-blocks/build/dbmob-archives/view.js @@ -1 +1,87 @@ -document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector(".wp-block-carhop-blocks-dbmob-archives");if(!t)return;const e=t.querySelector(".notices-toolbar");if(!e)return;const r=e.querySelector("input[name='search']"),o=e.querySelector("select[name='sort_by']"),n=t.querySelector(".load-more-button");let c=null,s=0;async function a(){var e,n;const a=null!==(e=r?.value)&&void 0!==e?e:"",l=null!==(n=o?.value)&&void 0!==n?n:"date_desc",u=`/wp-json/carhop-datas/v1/build/posts?${new URLSearchParams({sort_by:l,recherche:a,post_type:"dbmob",offset:String(0),posts_per_page:String(-1)}).toString()}`;c&&c.abort(),c=new AbortController;const i=++s;try{const e=await fetch(u,{signal:c.signal});if(!e.ok)throw new Error(`HTTP ${e.status}`);const r=await e.json();if(i!==s)return;const o=t.querySelector(".dbmob-grid");if(!o)return;o.innerHTML=r.html_template,function(e){const r=t.querySelector(".post-count__count");null!=r&&null!=e&&(r.textContent=String(e))}(r.post_count)}catch(t){if("AbortError"===t?.name)return;console.error("Erreur lors de la récupération des articles:",t)}}const l=function(t){let e;return(...r)=>{e&&window.clearTimeout(e),e=window.setTimeout(()=>t(...r),150)}}(a);o&&o.addEventListener("change",t=>{t.target.value,a()}),r&&r.addEventListener("input",()=>{l()}),n&&n.addEventListener("click",()=>{n.dataset.offset,n.dataset.postsPerPage,a()})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!************************************!*\ + !*** ./src/dbmob-archives/view.js ***! + \************************************/ +document.addEventListener("DOMContentLoaded", function () { + const block = document.querySelector(".wp-block-carhop-blocks-dbmob-archives"); + if (!block) return; + const toolbar = block.querySelector(".notices-toolbar"); + if (!toolbar) return; + const searchInput = toolbar.querySelector("input[name='search']"); + const sortBySelect = toolbar.querySelector("select[name='sort_by']"); + const loadMoreButton = block.querySelector(".load-more-button"); + + // Évite les courses: annule les requêtes précédentes et ignore les réponses obsolètes + let currentAbortController = null; + let lastRequestId = 0; + function updatePostCount(count) { + const el = block.querySelector(".post-count__count"); + if (el != null && count != null) { + el.textContent = String(count); + } + } + + // Debounce simple pour la recherche + function debounce(fn, waitMs) { + let timeoutId; + return (...args) => { + if (timeoutId) window.clearTimeout(timeoutId); + timeoutId = window.setTimeout(() => fn(...args), waitMs); + }; + } + async function hydratePosts() { + var _searchInput$value, _sortBySelect$value; + const searchValue = (_searchInput$value = searchInput?.value) !== null && _searchInput$value !== void 0 ? _searchInput$value : ""; + const offset = 0; + const postsPerPage = -1; + const sortBy = (_sortBySelect$value = sortBySelect?.value) !== null && _sortBySelect$value !== void 0 ? _sortBySelect$value : "date_desc"; + const params = new URLSearchParams({ + sort_by: sortBy, + recherche: searchValue, + post_type: "dbmob", + offset: String(offset), + posts_per_page: String(postsPerPage) + }); + const url = `/wp-json/carhop-datas/v1/build/posts?${params.toString()}`; + if (currentAbortController) currentAbortController.abort(); + currentAbortController = new AbortController(); + const requestId = ++lastRequestId; + try { + const response = await fetch(url, { + signal: currentAbortController.signal + }); + if (!response.ok) throw new Error(`HTTP ${response.status}`); + const data = await response.json(); + if (requestId !== lastRequestId) return; + const articlesContainer = block.querySelector(".dbmob-grid"); + if (!articlesContainer) return; + articlesContainer.innerHTML = data.html_template; + updatePostCount(data.post_count); + } catch (error) { + if (error?.name === "AbortError") return; + console.error("Erreur lors de la récupération des articles:", error); + } + } + const hydratePostsDebounced = debounce(hydratePosts, 150); + if (sortBySelect) { + sortBySelect.addEventListener("change", value => { + const sortByValue = value.target.value; + hydratePosts(sortByValue); + }); + } + if (searchInput) { + searchInput.addEventListener("input", () => { + hydratePostsDebounced(); + }); + } + if (loadMoreButton) { + loadMoreButton.addEventListener("click", () => { + const offset = loadMoreButton.dataset.offset; + const postsPerPage = loadMoreButton.dataset.postsPerPage; + hydratePosts(postsPerPage); + }); + } +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/dbmob-archives/view.js.map b/plugins/carhop-blocks/build/dbmob-archives/view.js.map new file mode 100644 index 0000000..37bdba5 --- /dev/null +++ b/plugins/carhop-blocks/build/dbmob-archives/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"dbmob-archives/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;EACzD,MAAMC,KAAK,GAAGF,QAAQ,CAACG,aAAa,CACnC,wCACD,CAAC;EACD,IAAI,CAACD,KAAK,EAAE;EAEZ,MAAME,OAAO,GAAGF,KAAK,CAACC,aAAa,CAAC,kBAAkB,CAAC;EACvD,IAAI,CAACC,OAAO,EAAE;EAEd,MAAMC,WAAW,GAAGD,OAAO,CAACD,aAAa,CAAC,sBAAsB,CAAC;EACjE,MAAMG,YAAY,GAAGF,OAAO,CAACD,aAAa,CAAC,wBAAwB,CAAC;EACpE,MAAMI,cAAc,GAAGL,KAAK,CAACC,aAAa,CAAC,mBAAmB,CAAC;;EAE/D;EACA,IAAIK,sBAAsB,GAAG,IAAI;EACjC,IAAIC,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lD,cAAc,EAAE;IACnBA,cAAc,CAACN,gBAAgB,CAAC,OAAO,EAAE,MAAM;MAC9C,MAAM2B,MAAM,GAAGrB,cAAc,CAACqD,OAAO,CAAChC,MAAM;MAC5C,MAAMC,YAAY,GAAGtB,cAAc,CAACqD,OAAO,CAAC/B,YAAY;MACxDN,YAAY,CAACM,YAAY,CAAC;IAC3B,CAAC,CAAC;EACH;AACD,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/dbmob-archives/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\r\n\tconst block = document.querySelector(\r\n\t\t\".wp-block-carhop-blocks-dbmob-archives\",\r\n\t);\r\n\tif (!block) return;\r\n\r\n\tconst toolbar = block.querySelector(\".notices-toolbar\");\r\n\tif (!toolbar) return;\r\n\r\n\tconst searchInput = toolbar.querySelector(\"input[name='search']\");\r\n\tconst sortBySelect = toolbar.querySelector(\"select[name='sort_by']\");\r\n\tconst loadMoreButton = block.querySelector(\".load-more-button\");\r\n\r\n\t// Évite les courses: annule les requêtes précédentes et ignore les réponses obsolètes\r\n\tlet currentAbortController = null;\r\n\tlet lastRequestId = 0;\r\n\r\n\tfunction updatePostCount(count) {\r\n\t\tconst el = block.querySelector(\".post-count__count\");\r\n\t\tif (el != null && count != null) {\r\n\t\t\tel.textContent = String(count);\r\n\t\t}\r\n\t}\r\n\r\n\t// Debounce simple pour la recherche\r\n\tfunction debounce(fn, waitMs) {\r\n\t\tlet timeoutId;\r\n\t\treturn (...args) => {\r\n\t\t\tif (timeoutId) window.clearTimeout(timeoutId);\r\n\t\t\ttimeoutId = window.setTimeout(() => fn(...args), waitMs);\r\n\t\t};\r\n\t}\r\n\r\n\tasync function hydratePosts() {\r\n\t\tconst searchValue = searchInput?.value ?? \"\";\r\n\t\tconst offset = 0;\r\n\t\tconst postsPerPage = -1;\r\n\t\tconst sortBy = sortBySelect?.value ?? \"date_desc\";\r\n\r\n\t\tconst params = new URLSearchParams({\r\n\t\t\tsort_by: sortBy,\r\n\t\t\trecherche: searchValue,\r\n\t\t\tpost_type: \"dbmob\",\r\n\t\t\toffset: String(offset),\r\n\t\t\tposts_per_page: String(postsPerPage),\r\n\t\t});\r\n\r\n\t\tconst url = `/wp-json/carhop-datas/v1/build/posts?${params.toString()}`;\r\n\r\n\t\tif (currentAbortController) currentAbortController.abort();\r\n\t\tcurrentAbortController = new AbortController();\r\n\t\tconst requestId = ++lastRequestId;\r\n\r\n\t\ttry {\r\n\t\t\tconst response = await fetch(url, {\r\n\t\t\t\tsignal: currentAbortController.signal,\r\n\t\t\t});\r\n\t\t\tif (!response.ok) throw new Error(`HTTP ${response.status}`);\r\n\t\t\tconst data = await response.json();\r\n\r\n\t\t\tif (requestId !== lastRequestId) return;\r\n\r\n\t\t\tconst articlesContainer = block.querySelector(\".dbmob-grid\");\r\n\t\t\tif (!articlesContainer) return;\r\n\t\t\tarticlesContainer.innerHTML = data.html_template;\r\n\r\n\t\t\tupdatePostCount(data.post_count);\r\n\t\t} catch (error) {\r\n\t\t\tif (error?.name === \"AbortError\") return;\r\n\t\t\tconsole.error(\"Erreur lors de la récupération des articles:\", error);\r\n\t\t}\r\n\t}\r\n\r\n\tconst hydratePostsDebounced = debounce(hydratePosts, 150);\r\n\r\n\tif (sortBySelect) {\r\n\t\tsortBySelect.addEventListener(\"change\", (value) => {\r\n\t\t\tconst sortByValue = value.target.value;\r\n\t\t\thydratePosts(sortByValue);\r\n\t\t});\r\n\t}\r\n\tif (searchInput) {\r\n\t\tsearchInput.addEventListener(\"input\", () => {\r\n\t\t\thydratePostsDebounced();\r\n\t\t});\r\n\t}\r\n\tif (loadMoreButton) {\r\n\t\tloadMoreButton.addEventListener(\"click\", () => {\r\n\t\t\tconst offset = loadMoreButton.dataset.offset;\r\n\t\t\tconst postsPerPage = loadMoreButton.dataset.postsPerPage;\r\n\t\t\thydratePosts(postsPerPage);\r\n\t\t});\r\n\t}\r\n});\r\n"],"names":["document","addEventListener","block","querySelector","toolbar","searchInput","sortBySelect","loadMoreButton","currentAbortController","lastRequestId","updatePostCount","count","el","textContent","String","debounce","fn","waitMs","timeoutId","args","window","clearTimeout","setTimeout","hydratePosts","_searchInput$value","_sortBySelect$value","searchValue","value","offset","postsPerPage","sortBy","params","URLSearchParams","sort_by","recherche","post_type","posts_per_page","url","toString","abort","AbortController","requestId","response","fetch","signal","ok","Error","status","data","json","articlesContainer","innerHTML","html_template","post_count","error","name","console","hydratePostsDebounced","sortByValue","target","dataset"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decorative-shapes/index.css b/plugins/carhop-blocks/build/decorative-shapes/index.css index 8b13789..21b5743 100644 --- a/plugins/carhop-blocks/build/decorative-shapes/index.css +++ b/plugins/carhop-blocks/build/decorative-shapes/index.css @@ -1 +1,4 @@ +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/decorative-shapes/editor.scss ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/decorative-shapes/index.js b/plugins/carhop-blocks/build/decorative-shapes/index.js index b3875a1..fce6289 100644 --- a/plugins/carhop-blocks/build/decorative-shapes/index.js +++ b/plugins/carhop-blocks/build/decorative-shapes/index.js @@ -1 +1,526 @@ -(()=>{"use strict";var e,s={7552:()=>{const e=window.wp.blocks,s=window.wp.i18n,r=window.wp.blockEditor,i=(window.React,window.ReactJSXRuntime);function l(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"decorative-shapes__shape circle",children:(0,i.jsx)("svg",{width:"24.177",height:"24.177",viewBox:"-0.088 -0.088 24.177 24.177",fill:"none",version:"1.1",children:(0,i.jsx)("ellipse",{cx:"11.999999999999773",cy:"11.999999999999261",rx:"11.999999999999773",ry:"11.999999999999261",style:{fill:"rgb(255, 166, 48)",fillOpacity:1,stroke:"none"}})})}),(0,i.jsx)("div",{className:"decorative-shapes__shape losange",children:(0,i.jsx)("svg",{width:"30.998",height:"30.996",id:"screenshot-a2556a6c-3214-8099-8006-165931dde038",viewBox:"-4.54 -4.539 30.998 30.996",fill:"none",version:"1.1",children:(0,i.jsx)("rect",{width:"21.9185463932713",height:"21.918546393260385",className:"cls-1",x:"0",transform:"matrix(0.701889, 0.712286, -0.712333, 0.701842, 11.073723, -4.538540)",style:{fill:"rgb(10, 211, 255)",fillOpacity:1,stroke:"none"},ry:"0",rx:"0",y:"0"})})}),(0,i.jsx)("div",{className:"decorative-shapes__shape rectangle-vertical",children:(0,i.jsx)("svg",{width:"20.236",height:"32.147",id:"screenshot-a2556a6c-3214-8099-8006-165931dde043",viewBox:"-0.118 -0.073 20.236 32.147",fill:"none",children:(0,i.jsx)("rect",{width:"19.99999999999875",height:"31.99999999999534",className:"cls-1",x:"0",transform:"matrix(0.999973, 0.007385, -0.007385, 0.999973, 0.118427, -0.073410)",style:{fill:"rgb(174, 33, 84)",fillOpacity:1,stroke:"none"},ry:"0",rx:"0",y:"0"})})}),(0,i.jsx)("div",{className:"decorative-shapes__shape rectangle-rotated",children:(0,i.jsx)("svg",{width:"33.243",height:"33.243",viewBox:"-0.121 -0.121 33.243 33.243",fill:"none",version:"1.1",children:(0,i.jsx)("rect",{width:"28.870975068950884",height:"17.792708437504757",className:"cls-1",x:"2.0645861314221747",transform:"matrix(0.712339, -0.701836, 0.701896, 0.712280, -6.833029, 16.326982)",style:{fill:"rgb(214, 195, 255)",fillOpacity:1,stroke:"none"},ry:"0",rx:"0",y:"7.601056546915743"})})})]})}const a=window.wp.components,t=JSON.parse('{"UU":"carhop-blocks/decorative-shapes"}');(0,e.registerBlockType)(t.UU,{icon:{foreground:"#136f63",src:(0,i.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,i.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,i.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:t}){const{variant:o}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.PanelBody,{title:(0,s.__)("Shapes","carhop-blocks"),children:(0,i.jsxs)(a.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Variante",onChange:e=>t({variant:e}),value:o,children:[(0,i.jsx)(a.__experimentalToggleGroupControlOption,{label:"Medium",value:"medium"}),(0,i.jsx)(a.__experimentalToggleGroupControlOption,{label:"Big",value:"big"})]})})}),(0,i.jsx)("div",{...(0,r.useBlockProps)({className:`carhop-decorative-shapes decorative-shapes decorative-shapes--${o}`}),children:(0,i.jsx)(l,{})})]})},save:function({attributes:e}){const{variant:s}=e;return(0,i.jsx)("div",{...r.useBlockProps.save({className:`carhop-decorative-shapes decorative-shapes decorative-shapes--${s} ${"big"===s?"alignfull":""}`}),children:(0,i.jsx)(l,{})})}})}},r={};function i(e){var l=r[e];if(void 0!==l)return l.exports;var a=r[e]={exports:{}};return s[e](a,a.exports,i),a.exports}i.m=s,e=[],i.O=(s,r,l,a)=>{if(!r){var t=1/0;for(h=0;h=a)&&Object.keys(i.O).every(e=>i.O[e](r[n]))?r.splice(n--,1):(o=!1,a0&&e[h-1][2]>a;h--)e[h]=e[h-1];e[h]=[r,l,a]},i.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={7709:0,2401:0};i.O.j=s=>0===e[s];var s=(s,r)=>{var l,a,[t,o,n]=r,c=0;if(t.some(s=>0!==e[s])){for(l in o)i.o(o,l)&&(i.m[l]=o[l]);if(n)var h=n(i)}for(s&&s(r);ci(7552));l=i.O(l)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/decorative-shapes/Shapes.jsx": +/*!******************************************!*\ + !*** ./src/decorative-shapes/Shapes.jsx ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Shapes) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function Shapes() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "decorative-shapes__shape circle", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "24.177", + height: "24.177", + viewBox: "-0.088 -0.088 24.177 24.177", + fill: "none", + version: "1.1", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("ellipse", { + cx: "11.999999999999773", + cy: "11.999999999999261", + rx: "11.999999999999773", + ry: "11.999999999999261", + style: { + fill: "rgb(255, 166, 48)", + fillOpacity: 1, + stroke: "none" + } + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "decorative-shapes__shape losange", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "30.998", + height: "30.996", + id: "screenshot-a2556a6c-3214-8099-8006-165931dde038", + viewBox: "-4.54 -4.539 30.998 30.996", + fill: "none", + version: "1.1", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("rect", { + width: "21.9185463932713", + height: "21.918546393260385", + className: "cls-1", + x: "0", + transform: "matrix(0.701889, 0.712286, -0.712333, 0.701842, 11.073723, -4.538540)", + style: { + fill: "rgb(10, 211, 255)", + fillOpacity: 1, + stroke: "none" + }, + ry: "0", + rx: "0", + y: "0" + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "decorative-shapes__shape rectangle-vertical", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "20.236", + height: "32.147", + id: "screenshot-a2556a6c-3214-8099-8006-165931dde043", + viewBox: "-0.118 -0.073 20.236 32.147", + fill: "none", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("rect", { + width: "19.99999999999875", + height: "31.99999999999534", + className: "cls-1", + x: "0", + transform: "matrix(0.999973, 0.007385, -0.007385, 0.999973, 0.118427, -0.073410)", + style: { + fill: "rgb(174, 33, 84)", + fillOpacity: 1, + stroke: "none" + }, + ry: "0", + rx: "0", + y: "0" + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "decorative-shapes__shape rectangle-rotated", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("svg", { + width: "33.243", + height: "33.243", + viewBox: "-0.121 -0.121 33.243 33.243", + fill: "none", + version: "1.1", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("rect", { + width: "28.870975068950884", + height: "17.792708437504757", + className: "cls-1", + x: "2.0645861314221747", + transform: "matrix(0.712339, -0.701836, 0.701896, 0.712280, -6.833029, 16.326982)", + style: { + fill: "rgb(214, 195, 255)", + fillOpacity: 1, + stroke: "none" + }, + ry: "0", + rx: "0", + y: "7.601056546915743" + }) + }) + })] + }); +} + +/***/ }), + +/***/ "./src/decorative-shapes/block.json": +/*!******************************************!*\ + !*** ./src/decorative-shapes/block.json ***! + \******************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/decorative-shapes","version":"0.1.0","title":"Formes décoratives ","category":"carhop-blocks","icon":"smiley","description":"Formes décoratives du carhop","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"variant":{"type":"string","default":"medium"}}}'); + +/***/ }), + +/***/ "./src/decorative-shapes/edit.js": +/*!***************************************!*\ + !*** ./src/decorative-shapes/edit.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/decorative-shapes/editor.scss"); +/* harmony import */ var _Shapes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Shapes */ "./src/decorative-shapes/Shapes.jsx"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + variant + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Shapes", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Variante", + onChange: value => setAttributes({ + variant: value + }), + value: variant, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.__experimentalToggleGroupControlOption, { + label: "Medium", + value: "medium" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.__experimentalToggleGroupControlOption, { + label: "Big", + value: "big" + })] + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `carhop-decorative-shapes decorative-shapes decorative-shapes--${variant}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Shapes__WEBPACK_IMPORTED_MODULE_3__["default"], {}) + })] + }); +} + +/***/ }), + +/***/ "./src/decorative-shapes/editor.scss": +/*!*******************************************!*\ + !*** ./src/decorative-shapes/editor.scss ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/decorative-shapes/index.js": +/*!****************************************!*\ + !*** ./src/decorative-shapes/index.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/decorative-shapes/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/decorative-shapes/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/decorative-shapes/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/decorative-shapes/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + stroke: "null", + id: "svg_10", + class: "fills", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + d: "m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/decorative-shapes/save.js": +/*!***************************************!*\ + !*** ./src/decorative-shapes/save.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _Shapes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Shapes */ "./src/decorative-shapes/Shapes.jsx"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__); + + + +function save({ + attributes +}) { + const { + variant + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `carhop-decorative-shapes decorative-shapes decorative-shapes--${variant} ${variant === "big" ? "alignfull" : ""}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Shapes__WEBPACK_IMPORTED_MODULE_1__["default"], {}) + }); +} + +/***/ }), + +/***/ "./src/decorative-shapes/style.scss": +/*!******************************************!*\ + !*** ./src/decorative-shapes/style.scss ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react": +/*!************************!*\ + !*** external "React" ***! + \************************/ +/***/ ((module) => { + +module.exports = window["React"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "decorative-shapes/index": 0, +/******/ "decorative-shapes/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["decorative-shapes/style-index"], () => (__webpack_require__("./src/decorative-shapes/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decorative-shapes/index.js.map b/plugins/carhop-blocks/build/decorative-shapes/index.js.map new file mode 100644 index 0000000..75e8637 --- /dev/null +++ b/plugins/carhop-blocks/build/decorative-shapes/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decorative-shapes/index.js","mappings":";;;;;;;;;;;;;;;;;;AAA0B;AAAA;AAEX,SAASO,MAAMA,CAAA,EAAG;EAChC,oBACCD,uDAAA,CAAAF,uDAAA;IAAAI,QAAA,gBACCN,sDAAA;MAAKO,SAAS,EAAC,iCAAiC;MAAAD,QAAA,eAC/CN,sDAAA;QACCQ,KAAK,EAAC,QAAQ;QACdC,MAAM,EAAC,QAAQ;QACfC,OAAO,EAA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B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/decorative-shapes/Shapes.jsx","webpack://carhop-blocks/./src/decorative-shapes/edit.js","webpack://carhop-blocks/./src/decorative-shapes/editor.scss","webpack://carhop-blocks/./src/decorative-shapes/index.js","webpack://carhop-blocks/./src/decorative-shapes/save.js","webpack://carhop-blocks/./src/decorative-shapes/style.scss?325d","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"React\"","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import React from \"react\";\r\n\r\nexport default function Shapes() {\r\n\treturn (\r\n\t\t<>\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport Shapes from \"./Shapes\";\nimport {\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tPanelBody,\n} from \"@wordpress/components\";\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { variant } = attributes;\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ variant: value })}\n\t\t\t\t\t\tvalue={variant}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport Shapes from \"./Shapes\";\n\nexport default function save({ attributes }) {\n\tconst { variant } = attributes;\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"React\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"decorative-shapes/index\": 0,\n\t\"decorative-shapes/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"decorative-shapes/style-index\"], () => (__webpack_require__(\"./src/decorative-shapes/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["React","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Shapes","children","className","width","height","viewBox","fill","version","cx","cy","rx","ry","style","fillOpacity","stroke","id","x","transform","y","__","useBlockProps","InnerBlocks","InspectorControls","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","PanelBody","Edit","attributes","setAttributes","variant","title","isBlock","label","onChange","value","registerBlockType","save","metadata","name","icon","foreground","src","class","d","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decorative-shapes/style-index.css b/plugins/carhop-blocks/build/decorative-shapes/style-index.css index 464d0c5..1e79db3 100644 --- a/plugins/carhop-blocks/build/decorative-shapes/style-index.css +++ b/plugins/carhop-blocks/build/decorative-shapes/style-index.css @@ -1 +1,35 @@ -.decorative-shapes{display:grid;gap:10rem;grid-template-columns:repeat(4,1fr);justify-content:center}.decorative-shapes__shape svg{aspect-ratio:1/1;height:auto;max-width:200px;-o-object-fit:contain;object-fit:contain;width:100%}.decorative-shapes--big{align-items:center;display:flex!important;gap:6rem;justify-content:center;padding:0 2rem}.decorative-shapes--big .decorative-shapes__shape{display:block;max-width:250px;width:100vw}.decorative-shapes--big .decorative-shapes__shape svg{max-height:800px;max-width:800px} +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/decorative-shapes/style.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.decorative-shapes { + display: grid; + grid-template-columns: repeat(4, 1fr); + justify-content: center; + gap: 10rem; +} +.decorative-shapes__shape svg { + width: 100%; + max-width: 200px; + height: auto; + aspect-ratio: 1/1; + -o-object-fit: contain; + object-fit: contain; +} +.decorative-shapes--big { + padding: 0rem 2rem; + display: flex !important; + align-items: center; + justify-content: center; + gap: 6rem; +} +.decorative-shapes--big .decorative-shapes__shape { + display: block; + width: 100vw; + max-width: 250px; +} +.decorative-shapes--big .decorative-shapes__shape svg { + max-width: 800px; + max-height: 800px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decorative-shapes/style-index.css.map b/plugins/carhop-blocks/build/decorative-shapes/style-index.css.map new file mode 100644 index 0000000..e4d8c75 --- /dev/null +++ b/plugins/carhop-blocks/build/decorative-shapes/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"decorative-shapes/style-index.css","mappings":";;;AAAA;EACC;EACA;EACA;EACA;AACD;AAME;EAEC;EACA;EACA;EACA;EACA;KAAA;AALH;AASC;EACC;EACA;EACA;EACA;EACA;AAPF;AASE;EACC;EACA;EACA;AAPH;AAQG;EACC;EACA;AANJ,C","sources":["webpack://carhop-blocks/./src/decorative-shapes/style.scss"],"sourcesContent":[".decorative-shapes {\r\n\tdisplay: grid;\r\n\tgrid-template-columns: repeat(4, 1fr);\r\n\tjustify-content: center;\r\n\tgap: 10rem;\r\n\r\n\t&__shape {\r\n\t\t// background-color: red;\r\n\t\t// display: flex;\r\n\t\t// align-items: center;\r\n\t\t// justify-content: center;\r\n\t\tsvg {\r\n\t\t\t// background-color: blue;\r\n\t\t\twidth: 100%;\r\n\t\t\tmax-width: 200px;\r\n\t\t\theight: auto;\r\n\t\t\taspect-ratio: 1/1;\r\n\t\t\tobject-fit: contain;\r\n\t\t}\r\n\t}\r\n\r\n\t&--big {\r\n\t\tpadding: 0rem 2rem;\r\n\t\tdisplay: flex !important;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\tgap: 6rem;\r\n\r\n\t\t.decorative-shapes__shape {\r\n\t\t\tdisplay: block;\r\n\t\t\twidth: 100vw;\r\n\t\t\tmax-width: 250px;\r\n\t\t\tsvg {\r\n\t\t\t\tmax-width: 800px;\r\n\t\t\t\tmax-height: 800px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decorative-shapes/view.js b/plugins/carhop-blocks/build/decorative-shapes/view.js index e69de29..f47ace6 100644 --- a/plugins/carhop-blocks/build/decorative-shapes/view.js +++ b/plugins/carhop-blocks/build/decorative-shapes/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!***************************************!*\ + !*** ./src/decorative-shapes/view.js ***! + \***************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js index a7b9046..cd18f0a 100644 --- a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js +++ b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js @@ -1 +1,286 @@ -(()=>{"use strict";var r,e={2242:(r,e,o)=>{const t=window.wp.blocks,n=window.wp.serverSideRender;var i=o.n(n);const a=window.wp.blockEditor,c=window.ReactJSXRuntime,s=JSON.parse('{"UU":"carhop-blocks/decouvrez-prochainement"}');(0,t.registerBlockType)(s.UU,{edit:function(r){return(0,c.jsx)("div",{...(0,a.useBlockProps)(),children:(0,c.jsx)(i(),{block:"carhop-blocks/decouvrez-prochainement",attributes:r.attributes})})}})}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var i=o[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.m=e,r=[],t.O=(e,o,n,i)=>{if(!o){var a=1/0;for(p=0;p=i)&&Object.keys(t.O).every(r=>t.O[r](o[s]))?o.splice(s--,1):(c=!1,i0&&r[p-1][2]>i;p--)r[p]=r[p-1];r[p]=[o,n,i]},t.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return t.d(e,{a:e}),e},t.d=(r,e)=>{for(var o in e)t.o(e,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},t.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={9394:0,7638:0};t.O.j=e=>0===r[e];var e=(e,o)=>{var n,i,[a,c,s]=o,l=0;if(a.some(e=>0!==r[e])){for(n in c)t.o(c,n)&&(t.m[n]=c[n]);if(s)var p=s(t)}for(e&&e(o);lt(2242));n=t.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/decouvrez-prochainement/src/decouvrez-prochainement/block.json": +/*!****************************************************************************!*\ + !*** ./src/decouvrez-prochainement/src/decouvrez-prochainement/block.json ***! + \****************************************************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/decouvrez-prochainement","version":"0.1.0","title":"Découvrez Prochainement","category":"carhop-blocks","icon":"smiley","description":"Découvrez les prochaines parutions de la revue Dynamiques.","example":{},"supports":{"html":false},"textdomain":"localisation-map","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/decouvrez-prochainement/src/decouvrez-prochainement/edit.js": +/*!*************************************************************************!*\ + !*** ./src/decouvrez-prochainement/src/decouvrez-prochainement/edit.js ***! + \*************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__); + + + +function Edit(props) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0___default()), { + block: "carhop-blocks/decouvrez-prochainement", + attributes: props.attributes + }) + }); +} + +/***/ }), + +/***/ "./src/decouvrez-prochainement/src/decouvrez-prochainement/index.js": +/*!**************************************************************************!*\ + !*** ./src/decouvrez-prochainement/src/decouvrez-prochainement/index.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/decouvrez-prochainement/src/decouvrez-prochainement/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/decouvrez-prochainement/src/decouvrez-prochainement/block.json"); + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss": +/*!****************************************************************************!*\ + !*** ./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss ***! + \****************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "decouvrez-prochainement/src/decouvrez-prochainement/index": 0, +/******/ "decouvrez-prochainement/src/decouvrez-prochainement/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["decouvrez-prochainement/src/decouvrez-prochainement/style-index"], () => (__webpack_require__("./src/decouvrez-prochainement/src/decouvrez-prochainement/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js.map b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js.map new file mode 100644 index 0000000..877f038 --- /dev/null +++ b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decouvrez-prochainement/src/decouvrez-prochainement/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA6D;AACL;AAAA;AAEzC,SAASI,IAAIA,CAACC,KAAK,EAAE;EACnC,oBACCF,sDAAA;IAAA,GAASF,sEAAa,CAAC,CAAC;IAAAK,QAAA,eACvBH,sDAAA,CAACH,sEAAgB;MAChBO,KAAK,EAAC,uCAAuC;MAC7CC,UAAU,EAAEH,KAAK,CAACG;IAAW,CAC7B;EAAC,CACE,CAAC;AAER,C;;;;;;;;;;;;;;;;ACZsD;AAChC;AAEI;AACU;AAEpCC,oEAAiB,CAACC,6CAAa,EAAE;EAChCE,IAAI,EAAER,6CAAIA;AACX,CAAC,CAAC,C;;;;;;;;;;;ACRF;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,kD;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/decouvrez-prochainement/src/decouvrez-prochainement/edit.js","webpack://carhop-blocks/./src/decouvrez-prochainement/src/decouvrez-prochainement/index.js","webpack://carhop-blocks/./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss?847e","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import ServerSideRender from \"@wordpress/server-side-render\";\r\nimport { useBlockProps } from \"@wordpress/block-editor\";\r\n\r\nexport default function Edit(props) {\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"decouvrez-prochainement/src/decouvrez-prochainement/index\": 0,\n\t\"decouvrez-prochainement/src/decouvrez-prochainement/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"decouvrez-prochainement/src/decouvrez-prochainement/style-index\"], () => (__webpack_require__(\"./src/decouvrez-prochainement/src/decouvrez-prochainement/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["ServerSideRender","useBlockProps","jsx","_jsx","Edit","props","children","block","attributes","registerBlockType","metadata","name","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css index 27072be..01063e0 100644 --- a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css +++ b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css @@ -1 +1,25 @@ -.carhop-localisation-map .map-container a:after{content:none!important}.carhop-localisation-map .map-container{background-color:var(--wp--preset--color--primary);height:500px;margin:0 auto;max-width:1200px;overflow:hidden;width:100%}.carhop-localisation-map .map-container:not([data-initialized=true]){align-items:center;color:#fff;display:flex;justify-content:center}.carhop-localisation-map .map-container:not([data-initialized=true]):before{content:"Chargement de la carte..."} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.carhop-localisation-map .map-container a:after { + content: none !important; +} +.carhop-localisation-map .map-container { + margin: 0 auto; + max-width: 1200px; + width: 100%; + height: 500px; + background-color: var(--wp--preset--color--primary); + overflow: hidden; +} +.carhop-localisation-map .map-container:not([data-initialized=true]) { + display: flex; + align-items: center; + justify-content: center; + color: white; +} +.carhop-localisation-map .map-container:not([data-initialized=true])::before { + content: "Chargement de la carte..."; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css.map b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css.map new file mode 100644 index 0000000..ccb9422 --- /dev/null +++ b/plugins/carhop-blocks/build/decouvrez-prochainement/src/decouvrez-prochainement/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"decouvrez-prochainement/src/decouvrez-prochainement/style-index.css","mappings":";;;AAEE;EACC;AADH;AADC;EAIC;EACA;EACA;EACA;EACA;EACA;AAAF;AAGE;EACC;EACA;EACA;EACA;AADH;AAGG;EACC;AADJ,C","sources":["webpack://carhop-blocks/./src/decouvrez-prochainement/src/decouvrez-prochainement/style.scss"],"sourcesContent":[".carhop-localisation-map {\n\t.map-container {\n\t\ta:after {\n\t\t\tcontent: none !important;\n\t\t}\n\t\tmargin: 0 auto;\n\t\tmax-width: 1200px;\n\t\twidth: 100%;\n\t\theight: 500px;\n\t\tbackground-color: var(--wp--preset--color--primary);\n\t\toverflow: hidden;\n\n\t\t// Loading state\n\t\t&:not([data-initialized=\"true\"]) {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tcolor: white;\n\n\t\t\t&::before {\n\t\t\t\tcontent: \"Chargement de la carte...\";\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/document-card/index.css b/plugins/carhop-blocks/build/document-card/index.css index 8b13789..24e66b1 100644 --- a/plugins/carhop-blocks/build/document-card/index.css +++ b/plugins/carhop-blocks/build/document-card/index.css @@ -1 +1,4 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/document-card/editor.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/document-card/index.js b/plugins/carhop-blocks/build/document-card/index.js index e982bbb..e993809 100644 --- a/plugins/carhop-blocks/build/document-card/index.js +++ b/plugins/carhop-blocks/build/document-card/index.js @@ -1 +1,681 @@ -(()=>{"use strict";var e,n={4388:()=>{const e=window.wp.blocks,n=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components,i=window.wp.primitives,c=window.ReactJSXRuntime;var r=(0,c.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})}),a=(0,c.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(i.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});const t=JSON.parse('{"UU":"carhop-blocks/document-card"}');(0,e.registerBlockType)(t.UU,{icon:{src:(0,c.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",context:"list-view","aria-hidden":"true",focusable:"false",children:(0,c.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#146E63",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})})},edit:function({attributes:e,setAttributes:i}){const{isInitilized:t,documentType:s,documentUrl:d,documentId:p,UserhasValidatedExternalUrl:h,documentFileSize:u}=e,m=(0,o.useBlockProps)({className:"document-card"}),x="internal"===s&&p&&d||"external"===s&&d&&h,_=()=>{i({documentId:0,documentUrl:"",documentFileSize:0,isInitilized:!1,UserhasValidatedExternalUrl:!1})},v=e=>{const n=e.filesizeInBytes||0,o=Math.round(n/1024);i({documentType:"internal",documentFileSize:o,documentId:e.id,documentUrl:e.url,isInitilized:!0})},b=e=>{i({documentType:"external",documentFileSize:0,documentId:0,documentUrl:e,isInitilized:!0})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.InspectorControls,{children:(0,c.jsxs)(l.PanelBody,{title:(0,n.__)("Type de document","carhop-blocks"),children:[(0,c.jsxs)(l.__experimentalToggleGroupControl,{label:(0,n.__)("Document relié","carhop-blocks"),value:s,onChange:e=>{i({documentType:e,isInitilized:!0}),_()},children:[(0,c.jsx)(l.__experimentalToggleGroupControlOption,{label:(0,n.__)("PDF interne","carhop-blocks"),value:"internal"}),(0,c.jsx)(l.__experimentalToggleGroupControlOption,{label:(0,n.__)("Lien externe","carhop-blocks"),value:"external"})]}),"external"===s&&(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(l.TextControl,{label:(0,n.__)("URL du document","carhop-blocks"),value:d,onChange:e=>b(e),placeholder:(0,n.__)("https://example.com/document.pdf","carhop-blocks")})}),"internal"===s&&(0,c.jsx)(o.MediaUploadCheck,{children:(0,c.jsx)(o.MediaUpload,{onSelect:e=>{v(e)},allowedTypes:["application/pdf"],value:p,render:({open:e})=>(0,c.jsx)(c.Fragment,{children:d?(0,c.jsxs)("div",{className:"document-card__media-preview",children:[(0,c.jsx)("span",{style:{width:48,height:48,display:"flex",alignItems:"center"},children:(0,c.jsx)(l.Icon,{icon:r})}),(0,c.jsx)("span",{className:"document-card__media-filename",children:d.split("/").pop()?.split("?")[0]||(0,n.__)("Document","carhop-blocks")}),(0,c.jsxs)("div",{style:{marginTop:8},children:[(0,c.jsx)(l.Button,{variant:"secondary",onClick:e,style:{marginRight:8},children:(0,n.__)("Remplacer","carhop-blocks")}),(0,c.jsx)(l.Button,{variant:"tertiary",isDestructive:!0,onClick:()=>_(),children:(0,n.__)("Supprimer","carhop-blocks")})]})]}):(0,c.jsx)(l.Button,{variant:"secondary",onClick:e,children:(0,n.__)("Choisir un document","carhop-blocks")})})})})]})}),(0,c.jsxs)("div",{...m,children:[!t&&(0,c.jsx)(l.Placeholder,{icon:r,label:(0,n.__)("Document Card","carhop-blocks"),instructions:(0,n.__)("Choisissez le type de document que vous souhaitez afficher.","carhop-blocks"),className:"document-card__initialization",children:(0,c.jsxs)(l.__experimentalHStack,{spacing:3,alignment:"stretch",expanded:!1,children:[(0,c.jsx)(l.Button,{variant:"primary",icon:r,onClick:()=>i({isInitilized:!0,documentType:"internal"}),children:(0,n.__)("PDF interne","carhop-blocks")}),(0,c.jsx)(l.Button,{variant:"secondary",icon:a,onClick:()=>i({isInitilized:!0,documentType:"external"}),children:(0,n.__)("Lien externe","carhop-blocks")})]})}),t&&"internal"===s&&!p&&!d&&(0,c.jsx)(o.MediaPlaceholder,{icon:"media-default",labels:{title:"Fichier",instructions:"Glissez-déposez, téléversez ou sélectionnez un fichier depuis votre médiathèque."},onSelect:e=>v(e),accept:"application/pdf",allowedTypes:["application/pdf"],multiple:!1}),t&&"external"===s&&!h&&(0,c.jsxs)(l.Placeholder,{icon:a,label:(0,n.__)("Lien externe","carhop-blocks"),instructions:(0,n.__)("Entrez l'URL du document (PDF, etc.) ou utilisez le panneau de réglages à droite.","carhop-blocks"),className:"document-card__url-placeholder",children:[(0,c.jsx)(l.TextControl,{value:d,onChange:e=>b(e),placeholder:"https://example.com/document.pdf",style:{minWidth:320}}),(0,c.jsx)(l.Button,{variant:"secondary",onClick:()=>i({UserhasValidatedExternalUrl:!0}),children:(0,n.__)("Valider le lien","carhop-blocks")})]}),x&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(o.BlockControls,{group:"other",children:["internal"===s?(0,c.jsx)(o.MediaReplaceFlow,{mediaId:p,mediaUrl:d,allowedTypes:["application/pdf"],accept:"application/pdf",onSelect:e=>v(e),name:(0,n.__)("Remplacer le document","carhop-blocks")}):null,(0,c.jsx)(l.ToolbarButton,{onClick:()=>_(),children:(0,n.__)("Supprimer le document","carhop-blocks")})]}),(0,c.jsx)("div",{className:"document-card__preview",children:(0,c.jsxs)("div",{className:"document-card__content",children:[(0,c.jsx)(o.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/list","core/button","core/buttons","core/image","core/embed","core/quote","core/pullquote","core/media-text","core/table","core/group","core/columns","core/post-title","carhop-blocks/cta","carhop-blocks/heading","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/content-box","carhop-blocks/notice-panel","shortcode"],template:[["carhop-blocks/heading",{},[["core/heading",{content:"Titre du document",placeholder:"Saisir le titre"}],["core/paragraph",{content:"Sous-titre du document",placeholder:"Saisir le sous-titre"}]]]]}),(0,c.jsxs)("div",{className:"file_info",children:[(0,c.jsx)("div",{className:"file_info__type",children:"internal"===s?"PDF":"Document externe"}),u>0&&(0,c.jsxs)("div",{className:"file_info__size",children:["( ",u," Ko )"]})]})]})})]})]})]})},save:function({attributes:e}){const{documentUrl:n,documentType:l,documentFileSize:i}=e,r=o.useBlockProps.save({className:"document-card"});return n?(0,c.jsx)("a",{...r,href:n,target:"_blank",rel:"noopener noreferrer",className:`${r.className||""} document-card--${l}`,children:(0,c.jsxs)("div",{className:"document-card__content",children:[(0,c.jsx)(o.InnerBlocks.Content,{}),(0,c.jsxs)("div",{className:"file_info",children:[(0,c.jsx)("div",{className:"file_info__type",children:"internal"===l?"PDF":"Document externe"}),i>0&&(0,c.jsxs)("div",{className:"file_info__size",children:["( ",i," KB )"]})]})]})}):(0,c.jsx)("div",{...r,children:(0,c.jsx)(o.InnerBlocks.Content,{})})}})}},o={};function l(e){var i=o[e];if(void 0!==i)return i.exports;var c=o[e]={exports:{}};return n[e](c,c.exports,l),c.exports}l.m=n,e=[],l.O=(n,o,i,c)=>{if(!o){var r=1/0;for(d=0;d=c)&&Object.keys(l.O).every(e=>l.O[e](o[t]))?o.splice(t--,1):(a=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[o,i,c]},l.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={9198:0,4978:0};l.O.j=n=>0===e[n];var n=(n,o)=>{var i,c,[r,a,t]=o,s=0;if(r.some(n=>0!==e[n])){for(i in a)l.o(a,i)&&(l.m[i]=a[i]);if(t)var d=t(l)}for(n&&n(o);sl(4388));i=l.O(i)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/file.js": +/*!****************************************************************************************************************************!*\ + !*** ./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/file.js ***! + \****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ file_default) +/* harmony export */ }); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +// packages/icons/src/library/file.tsx + + +var file_default = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)( + _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, + { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z" + } +) }); + +//# sourceMappingURL=file.js.map + + +/***/ }), + +/***/ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/link.js": +/*!****************************************************************************************************************************!*\ + !*** ./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/link.js ***! + \****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ link_default) +/* harmony export */ }); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +// packages/icons/src/library/link.tsx + + +var link_default = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, { d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z" }) }); + +//# sourceMappingURL=link.js.map + + +/***/ }), + +/***/ "./src/document-card/block.json": +/*!**************************************!*\ + !*** ./src/document-card/block.json ***! + \**************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/document-card","version":"0.1.0","title":"Document Card","category":"carhop-blocks","icon":"smiley","description":"Document Card pour la mise en forme supérieure d\'éléments de contenu","example":{},"supports":{"html":false,"color":{"text":true,"background":false,"link":false}},"textdomain":"document-card","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"isInitilized":{"type":"boolean","default":false},"documentType":{"type":"string","default":"document","enum":["internal","external"]},"documentFileSize":{"type":"number","default":0},"documentUrl":{"type":"string","default":""},"documentId":{"type":"number","default":0},"UserhasValidatedExternalUrl":{"type":"boolean","default":false}}}'); + +/***/ }), + +/***/ "./src/document-card/edit.js": +/*!***********************************!*\ + !*** ./src/document-card/edit.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/file.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/link.js"); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./editor.scss */ "./src/document-card/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__); + + + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + isInitilized, + documentType, + documentUrl, + documentId, + UserhasValidatedExternalUrl, + documentFileSize + } = attributes; + const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "document-card" + }); + const hasDocument = documentType === "internal" && documentId && documentUrl || documentType === "external" && documentUrl && UserhasValidatedExternalUrl; + const resetDocument = () => { + setAttributes({ + documentId: 0, + documentUrl: "", + documentFileSize: 0, + isInitilized: false, + UserhasValidatedExternalUrl: false + }); + }; + const setInternalDocument = media => { + const fileSize = media.filesizeInBytes || 0; + const fileSizeInKB = Math.round(fileSize / 1024); + setAttributes({ + documentType: "internal", + documentFileSize: fileSizeInKB, + documentId: media.id, + documentUrl: media.url, + isInitilized: true + }); + }; + const setExternalDocument = url => { + setAttributes({ + documentType: "external", + documentFileSize: 0, + documentId: 0, + documentUrl: url, + isInitilized: true + }); + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Type de document", "carhop-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Document relié", "carhop-blocks"), + value: documentType, + onChange: value => { + setAttributes({ + documentType: value, + isInitilized: true + }); + resetDocument(); + }, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("PDF interne", "carhop-blocks"), + value: "internal" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Lien externe", "carhop-blocks"), + value: "external" + })] + }), documentType === "external" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("URL du document", "carhop-blocks"), + value: documentUrl, + onChange: value => setExternalDocument(value), + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("https://example.com/document.pdf", "carhop-blocks") + }) + }), documentType === "internal" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUploadCheck, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUpload, { + onSelect: media => { + setInternalDocument(media); + }, + allowedTypes: ["application/pdf"], + value: documentId, + render: ({ + open + }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: documentUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + className: "document-card__media-preview", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", { + style: { + width: 48, + height: 48, + display: "flex", + alignItems: "center" + }, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Icon, { + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__["default"] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span", { + className: "document-card__media-filename", + children: documentUrl.split("/").pop()?.split("?")[0] || (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Document", "carhop-blocks") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + style: { + marginTop: 8 + }, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "secondary", + onClick: open, + style: { + marginRight: 8 + }, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remplacer", "carhop-blocks") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "tertiary", + isDestructive: true, + onClick: () => resetDocument(), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Supprimer", "carhop-blocks") + })] + })] + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "secondary", + onClick: open, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Choisir un document", "carhop-blocks") + }) + }) + }) + })] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + ...blockProps, + children: [!isInitilized && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Placeholder, { + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__["default"], + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Document Card", "carhop-blocks"), + instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Choisissez le type de document que vous souhaitez afficher.", "carhop-blocks"), + className: "document-card__initialization", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalHStack, { + spacing: 3, + alignment: "stretch", + expanded: false, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "primary", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_3__["default"], + onClick: () => setAttributes({ + isInitilized: true, + documentType: "internal" + }), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("PDF interne", "carhop-blocks") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "secondary", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"], + onClick: () => setAttributes({ + isInitilized: true, + documentType: "external" + }), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Lien externe", "carhop-blocks") + })] + }) + }), isInitilized && documentType === "internal" && !documentId && !documentUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaPlaceholder, { + icon: "media-default", + labels: { + title: "Fichier", + instructions: "Glissez-déposez, téléversez ou sélectionnez un fichier depuis votre médiathèque." + }, + onSelect: media => setInternalDocument(media), + accept: "application/pdf", + allowedTypes: ["application/pdf"], + multiple: false + }), isInitilized && documentType === "external" && !UserhasValidatedExternalUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Placeholder, { + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"], + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Lien externe", "carhop-blocks"), + instructions: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Entrez l'URL du document (PDF, etc.) ou utilisez le panneau de réglages à droite.", "carhop-blocks"), + className: "document-card__url-placeholder", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.TextControl, { + value: documentUrl, + onChange: value => setExternalDocument(value), + placeholder: "https://example.com/document.pdf", + style: { + minWidth: 320 + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "secondary", + onClick: () => setAttributes({ + UserhasValidatedExternalUrl: true + }), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Valider le lien", "carhop-blocks") + })] + }), hasDocument && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { + group: "other", + children: [documentType === "internal" ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaReplaceFlow, { + mediaId: documentId, + mediaUrl: documentUrl, + allowedTypes: ["application/pdf"], + accept: "application/pdf", + onSelect: media => setInternalDocument(media), + name: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remplacer le document", "carhop-blocks") + }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { + onClick: () => resetDocument(), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Supprimer le document", "carhop-blocks") + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + className: "document-card__preview", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + className: "document-card__content", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/heading", "core/paragraph", "core/list", "core/button", "core/buttons", "core/image", "core/embed", "core/quote", "core/pullquote", "core/media-text", "core/table", "core/group", "core/columns", "core/post-title", "carhop-blocks/cta", "carhop-blocks/heading", "carhop-blocks/cta-group", "carhop-blocks/audio-player", "carhop-blocks/content-box", "carhop-blocks/notice-panel", "shortcode"], + template: [["carhop-blocks/heading", {}, [["core/heading", { + content: "Titre du document", + placeholder: "Saisir le titre" + }], ["core/paragraph", { + content: "Sous-titre du document", + placeholder: "Saisir le sous-titre" + }]]]] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + className: "file_info", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + className: "file_info__type", + children: documentType === "internal" ? "PDF" : "Document externe" + }), documentFileSize > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + className: "file_info__size", + children: ["( ", documentFileSize, " Ko )"] + })] + })] + }) + })] + })] + })] + }); +} + +/***/ }), + +/***/ "./src/document-card/editor.scss": +/*!***************************************!*\ + !*** ./src/document-card/editor.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/document-card/index.js": +/*!************************************!*\ + !*** ./src/document-card/index.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/document-card/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/document-card/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/document-card/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/document-card/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg", + width: "24", + height: "24", + context: "list-view", + "aria-hidden": "true", + focusable: "false", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + "fill-rule": "evenodd", + "clip-rule": "evenodd", + fill: "#146E63", + d: "M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/document-card/save.js": +/*!***********************************!*\ + !*** ./src/document-card/save.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save({ + attributes +}) { + const { + documentUrl, + documentType, + documentFileSize + } = attributes; + const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "document-card" + }); + if (!documentUrl) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ...blockProps, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }); + } + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + ...blockProps, + href: documentUrl, + target: "_blank", + rel: "noopener noreferrer", + className: `${blockProps.className || ""} document-card--${documentType}`, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "document-card__content", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "file_info", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "file_info__type", + children: documentType === "internal" ? "PDF" : "Document externe" + }), documentFileSize > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "file_info__size", + children: ["( ", documentFileSize, " KB )"] + })] + })] + }) + }); +} + +/***/ }), + +/***/ "./src/document-card/style.scss": +/*!**************************************!*\ + !*** ./src/document-card/style.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/primitives": +/*!************************************!*\ + !*** external ["wp","primitives"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["primitives"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "document-card/index": 0, +/******/ "document-card/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["document-card/style-index"], () => (__webpack_require__("./src/document-card/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/document-card/index.js.map b/plugins/carhop-blocks/build/document-card/index.js.map new file mode 100644 index 0000000..0a13049 --- /dev/null +++ b/plugins/carhop-blocks/build/document-card/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"document-card/index.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACkD;AACV;AACxC,mCAAmC,s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,sC;;;;;;;;;;ACAA,4C;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/file.js","webpack://carhop-blocks/./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/link.js","webpack://carhop-blocks/./src/document-card/edit.js","webpack://carhop-blocks/./src/document-card/editor.scss","webpack://carhop-blocks/./src/document-card/index.js","webpack://carhop-blocks/./src/document-card/save.js","webpack://carhop-blocks/./src/document-card/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"primitives\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["// packages/icons/src/library/file.tsx\nimport { Path, SVG } from \"@wordpress/primitives\";\nimport { jsx } from \"react/jsx-runtime\";\nvar file_default = /* @__PURE__ */ jsx(SVG, { viewBox: \"0 0 24 24\", xmlns: \"http://www.w3.org/2000/svg\", children: /* @__PURE__ */ jsx(\n Path,\n {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z\"\n }\n) });\nexport {\n file_default as default\n};\n//# sourceMappingURL=file.js.map\n","// packages/icons/src/library/link.tsx\nimport { Path, SVG } from \"@wordpress/primitives\";\nimport { jsx } from \"react/jsx-runtime\";\nvar link_default = /* @__PURE__ */ jsx(SVG, { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", children: /* @__PURE__ */ jsx(Path, { d: \"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z\" }) });\nexport {\n link_default as default\n};\n//# sourceMappingURL=link.js.map\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tInspectorControls,\n\tMediaUpload,\n\tMediaUploadCheck,\n\tBlockControls,\n\tMediaReplaceFlow,\n} from \"@wordpress/block-editor\";\nimport { __experimentalHStack as HStack } from \"@wordpress/components\";\n\nimport {\n\tPanelBody,\n\tTextControl,\n\tButton,\n\tPlaceholder,\n\tToolbarButton,\n\tIcon,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nimport { file, link, external } from \"@wordpress/icons\";\n\nimport { MediaPlaceholder } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst {\n\t\tisInitilized,\n\t\tdocumentType,\n\t\tdocumentUrl,\n\t\tdocumentId,\n\t\tUserhasValidatedExternalUrl,\n\t\tdocumentFileSize,\n\t} = attributes;\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: \"document-card\",\n\t});\n\n\tconst hasDocument =\n\t\t(documentType === \"internal\" && documentId && documentUrl) ||\n\t\t(documentType === \"external\" && documentUrl && UserhasValidatedExternalUrl);\n\n\tconst resetDocument = () => {\n\t\tsetAttributes({\n\t\t\tdocumentId: 0,\n\t\t\tdocumentUrl: \"\",\n\t\t\tdocumentFileSize: 0,\n\t\t\tisInitilized: false,\n\t\t\tUserhasValidatedExternalUrl: false,\n\t\t});\n\t};\n\n\tconst setInternalDocument = (media) => {\n\t\tconst fileSize = media.filesizeInBytes || 0;\n\t\tconst fileSizeInKB = Math.round(fileSize / 1024);\n\n\t\tsetAttributes({\n\t\t\tdocumentType: \"internal\",\n\t\t\tdocumentFileSize: fileSizeInKB,\n\t\t\tdocumentId: media.id,\n\t\t\tdocumentUrl: media.url,\n\t\t\tisInitilized: true,\n\t\t});\n\t};\n\n\tconst setExternalDocument = (url) => {\n\t\tsetAttributes({\n\t\t\tdocumentType: \"external\",\n\t\t\tdocumentFileSize: 0,\n\t\t\tdocumentId: 0,\n\t\t\tdocumentUrl: url,\n\t\t\tisInitilized: true,\n\t\t});\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes({ documentType: value, isInitilized: true });\n\t\t\t\t\t\t\tresetDocument();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{documentType === \"external\" && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t setExternalDocument(value)}\n\t\t\t\t\t\t\t\tplaceholder={__(\n\t\t\t\t\t\t\t\t\t\"https://example.com/document.pdf\",\n\t\t\t\t\t\t\t\t\t\"carhop-blocks\",\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\t{documentType === \"internal\" && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetInternalDocument(media);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tallowedTypes={[\"application/pdf\"]}\n\t\t\t\t\t\t\t\tvalue={documentId}\n\t\t\t\t\t\t\t\trender={({ open }) => (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t{documentUrl ? (\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t{documentUrl.split(\"/\").pop()?.split(\"?\")[0] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t__(\"Document\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{__(\"Remplacer\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t resetDocument()}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{__(\"Supprimer\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t{!isInitilized && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tisInitilized: true,\n\t\t\t\t\t\t\t\t\t\tdocumentType: \"internal\",\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{__(\"PDF interne\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tisInitilized: true,\n\t\t\t\t\t\t\t\t\t\tdocumentType: \"external\",\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{__(\"Lien externe\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\n\t\t\t\t{isInitilized &&\n\t\t\t\t\tdocumentType === \"internal\" &&\n\t\t\t\t\t!documentId &&\n\t\t\t\t\t!documentUrl && (\n\t\t\t\t\t\t setInternalDocument(media)}\n\t\t\t\t\t\t\taccept=\"application/pdf\"\n\t\t\t\t\t\t\tallowedTypes={[\"application/pdf\"]}\n\t\t\t\t\t\t\tmultiple={false}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t{isInitilized &&\n\t\t\t\t\tdocumentType === \"external\" &&\n\t\t\t\t\t!UserhasValidatedExternalUrl && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t setExternalDocument(value)}\n\t\t\t\t\t\t\t\tplaceholder=\"https://example.com/document.pdf\"\n\t\t\t\t\t\t\t\tstyle={{ minWidth: 320 }}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({ UserhasValidatedExternalUrl: true })\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{__(\"Valider le lien\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t{hasDocument && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{documentType === \"internal\" ? (\n\t\t\t\t\t\t\t\t setInternalDocument(media)}\n\t\t\t\t\t\t\t\t\tname={__(\"Remplacer le document\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t resetDocument()}>\n\t\t\t\t\t\t\t\t{__(\"Supprimer le document\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{documentType === \"internal\" ? \"PDF\" : \"Document externe\"}\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{documentFileSize > 0 && (\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t( {documentFileSize} Ko )\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { documentUrl, documentType, documentFileSize } = attributes;\n\tconst blockProps = useBlockProps.save({\n\t\tclassName: \"document-card\",\n\t});\n\n\tif (!documentUrl) {\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t}\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t{documentType === \"internal\" ? \"PDF\" : \"Document externe\"}\n\t\t\t\t\t
\n\t\t\t\t\t{documentFileSize > 0 && (\n\t\t\t\t\t\t
( {documentFileSize} KB )
\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"document-card/index\": 0,\n\t\"document-card/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"document-card/style-index\"], () => (__webpack_require__(\"./src/document-card/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","InspectorControls","MediaUpload","MediaUploadCheck","BlockControls","MediaReplaceFlow","__experimentalHStack","HStack","PanelBody","TextControl","Button","Placeholder","ToolbarButton","Icon","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","file","link","external","MediaPlaceholder","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","isInitilized","documentType","documentUrl","documentId","UserhasValidatedExternalUrl","documentFileSize","blockProps","className","hasDocument","resetDocument","setInternalDocument","media","fileSize","filesizeInBytes","fileSizeInKB","Math","round","id","url","setExternalDocument","children","title","label","value","onChange","placeholder","onSelect","allowedTypes","render","open","style","width","height","display","alignItems","icon","split","pop","marginTop","variant","onClick","marginRight","isDestructive","instructions","spacing","alignment","expanded","labels","accept","multiple","minWidth","group","mediaId","mediaUrl","name","allowedBlocks","template","content","registerBlockType","save","metadata","src","viewBox","xmlns","context","focusable","fill","d","edit","Content","href","target","rel"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/document-card/style-index.css b/plugins/carhop-blocks/build/document-card/style-index.css index 8b13789..d3c0da4 100644 --- a/plugins/carhop-blocks/build/document-card/style-index.css +++ b/plugins/carhop-blocks/build/document-card/style-index.css @@ -1 +1,4 @@ +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/document-card/style.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/explore-tags/index.css b/plugins/carhop-blocks/build/explore-tags/index.css index 980de94..ea11cc3 100644 --- a/plugins/carhop-blocks/build/explore-tags/index.css +++ b/plugins/carhop-blocks/build/explore-tags/index.css @@ -1 +1,13 @@ -.wp-block-create-block-explore-tags{border:1px dotted red} +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/explore-tags/editor.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-explore-tags { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/index.css.map b/plugins/carhop-blocks/build/explore-tags/index.css.map new file mode 100644 index 0000000..ff318d0 --- /dev/null +++ b/plugins/carhop-blocks/build/explore-tags/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"explore-tags/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/explore-tags/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-explore-tags {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/index.js b/plugins/carhop-blocks/build/explore-tags/index.js index 12eb908..ff3d9aa 100644 --- a/plugins/carhop-blocks/build/explore-tags/index.js +++ b/plugins/carhop-blocks/build/explore-tags/index.js @@ -1 +1,358 @@ -(()=>{"use strict";var r,e={7701:(r,e,o)=>{const l=window.wp.blocks,c=(window.wp.i18n,window.wp.blockEditor),t=window.wp.serverSideRender;var n=o.n(t);const s=window.ReactJSXRuntime,i=JSON.parse('{"UU":"carhop-blocks/explore-tags"}');(0,l.registerBlockType)(i.UU,{icon:{src:(0,s.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"m93.4586,23.83625l1.57497,18.94503l0,0.00408c0.24482,2.87252 -0.79157,5.71244 -2.83168,7.75256l-41.89592,41.89592c-0.13057,0.13057 -0.2693,0.26114 -0.40802,0.38355l8.20548,4.73307c3.51721,2.02789 8.00962,0.82421 10.04159,-2.68888l29.6308,-51.32613c1.08539,-1.86881 1.28532,-4.12514 0.55492,-6.16118l-4.87213,-13.53802z"}),(0,s.jsx)("path",{d:"m89.93323,10.8859c-0.2897,-3.58657 -3.13365,-6.43047 -6.71615,-6.71615l-32.10325,-2.67666c-0.20401,-0.01633 -0.40802,-0.02448 -0.61204,-0.02448l0,-0.00407c-1.94631,0 -3.81502,0.77526 -5.19017,2.15439l-41.91263,41.90428l-0.00408,0c-1.37912,1.37912 -2.15846,3.252 -2.15846,5.20239c0,1.95039 0.77933,3.82327 2.15846,5.20239l34.77626,34.7679c2.87252,2.87252 7.53216,2.87252 10.40467,0l41.9001,-41.9001c1.53006,-1.53006 2.3094,-3.65186 2.12587,-5.80624l-2.66857,-32.10363zm-10.6492,13.01616c-2.36654,2.35839 -6.06738,2.72565 -8.8461,0.8691s-3.85586,-5.41861 -2.57879,-8.50735c1.28125,-3.08467 4.56177,-4.8392 7.83821,-4.18635c3.27645,0.65284 5.63483,3.52944 5.63483,6.86709l0,0.00408c0.00816,1.85648 -0.73037,3.63964 -2.04826,4.95347l0.0001,-0.00004z"})]})}),foreground:"#136f63"},edit:function(r){return(0,s.jsx)("div",{...(0,c.useBlockProps)({className:"alignfull"}),children:(0,s.jsx)(n(),{block:"carhop-blocks/explore-tags",attributes:r.attributes})})},save:function(){return(0,s.jsx)(s.Fragment,{})}})}},o={};function l(r){var c=o[r];if(void 0!==c)return c.exports;var t=o[r]={exports:{}};return e[r](t,t.exports,l),t.exports}l.m=e,r=[],l.O=(e,o,c,t)=>{if(!o){var n=1/0;for(p=0;p=t)&&Object.keys(l.O).every(r=>l.O[r](o[i]))?o.splice(i--,1):(s=!1,t0&&r[p-1][2]>t;p--)r[p]=r[p-1];r[p]=[o,c,t]},l.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return l.d(e,{a:e}),e},l.d=(r,e)=>{for(var o in e)l.o(e,o)&&!l.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},l.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={5939:0,7723:0};l.O.j=e=>0===r[e];var e=(e,o)=>{var c,t,[n,s,i]=o,a=0;if(n.some(e=>0!==r[e])){for(c in s)l.o(s,c)&&(l.m[c]=s[c]);if(i)var p=i(l)}for(e&&e(o);al(7701));c=l.O(c)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/explore-tags/block.json": +/*!*************************************!*\ + !*** ./src/explore-tags/block.json ***! + \*************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/explore-tags","version":"0.1.0","title":"Explore Tags","category":"carhop-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/explore-tags/edit.js": +/*!**********************************!*\ + !*** ./src/explore-tags/edit.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/explore-tags/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit(props) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "alignfull" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default()), { + block: "carhop-blocks/explore-tags", + attributes: props.attributes + }) + }); +} + +/***/ }), + +/***/ "./src/explore-tags/editor.scss": +/*!**************************************!*\ + !*** ./src/explore-tags/editor.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/explore-tags/index.js": +/*!***********************************!*\ + !*** ./src/explore-tags/index.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/explore-tags/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/explore-tags/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/explore-tags/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/explore-tags/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m93.4586,23.83625l1.57497,18.94503l0,0.00408c0.24482,2.87252 -0.79157,5.71244 -2.83168,7.75256l-41.89592,41.89592c-0.13057,0.13057 -0.2693,0.26114 -0.40802,0.38355l8.20548,4.73307c3.51721,2.02789 8.00962,0.82421 10.04159,-2.68888l29.6308,-51.32613c1.08539,-1.86881 1.28532,-4.12514 0.55492,-6.16118l-4.87213,-13.53802z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "m89.93323,10.8859c-0.2897,-3.58657 -3.13365,-6.43047 -6.71615,-6.71615l-32.10325,-2.67666c-0.20401,-0.01633 -0.40802,-0.02448 -0.61204,-0.02448l0,-0.00407c-1.94631,0 -3.81502,0.77526 -5.19017,2.15439l-41.91263,41.90428l-0.00408,0c-1.37912,1.37912 -2.15846,3.252 -2.15846,5.20239c0,1.95039 0.77933,3.82327 2.15846,5.20239l34.77626,34.7679c2.87252,2.87252 7.53216,2.87252 10.40467,0l41.9001,-41.9001c1.53006,-1.53006 2.3094,-3.65186 2.12587,-5.80624l-2.66857,-32.10363zm-10.6492,13.01616c-2.36654,2.35839 -6.06738,2.72565 -8.8461,0.8691s-3.85586,-5.41861 -2.57879,-8.50735c1.28125,-3.08467 4.56177,-4.8392 7.83821,-4.18635c3.27645,0.65284 5.63483,3.52944 5.63483,6.86709l0,0.00408c0.00816,1.85648 -0.73037,3.63964 -2.04826,4.95347l0.0001,-0.00004z" + })] + }) + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/explore-tags/save.js": +/*!**********************************!*\ + !*** ./src/explore-tags/save.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, {}); +} + +/***/ }), + +/***/ "./src/explore-tags/style.scss": +/*!*************************************!*\ + !*** ./src/explore-tags/style.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "explore-tags/index": 0, +/******/ "explore-tags/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["explore-tags/style-index"], () => (__webpack_require__("./src/explore-tags/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/index.js.map b/plugins/carhop-blocks/build/explore-tags/index.js.map new file mode 100644 index 0000000..4d00983 --- /dev/null +++ b/plugins/carhop-blocks/build/explore-tags/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"explore-tags/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACK;AAEtC;AAAA;AAER,SAASK,IAAIA,C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kB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/explore-tags/edit.js","webpack://carhop-blocks/./src/explore-tags/editor.scss?3abb","webpack://carhop-blocks/./src/explore-tags/index.js","webpack://carhop-blocks/./src/explore-tags/save.js","webpack://carhop-blocks/./src/explore-tags/style.scss?18af","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nimport \"./editor.scss\";\n\nexport default function Edit(props) {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn <>;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"explore-tags/index\": 0,\n\t\"explore-tags/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"explore-tags/style-index\"], () => (__webpack_require__(\"./src/explore-tags/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","props","className","children","block","attributes","registerBlockType","save","metadata","jsxs","_jsxs","name","icon","src","width","height","viewBox","d","foreground","edit","Fragment","_Fragment"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/style-index.css b/plugins/carhop-blocks/build/explore-tags/style-index.css index 2a428ce..76cfd58 100644 --- a/plugins/carhop-blocks/build/explore-tags/style-index.css +++ b/plugins/carhop-blocks/build/explore-tags/style-index.css @@ -1 +1,16 @@ -.wp-block-create-block-explore-tags{background-color:#21759b;color:#fff;padding:2px} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/explore-tags/style.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-explore-tags { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/style-index.css.map b/plugins/carhop-blocks/build/explore-tags/style-index.css.map new file mode 100644 index 0000000..ea253f7 --- /dev/null +++ b/plugins/carhop-blocks/build/explore-tags/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"explore-tags/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/explore-tags/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-explore-tags {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/explore-tags/view.js b/plugins/carhop-blocks/build/explore-tags/view.js index e69de29..2fd74c4 100644 --- a/plugins/carhop-blocks/build/explore-tags/view.js +++ b/plugins/carhop-blocks/build/explore-tags/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!**********************************!*\ + !*** ./src/explore-tags/view.js ***! + \**********************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/index.css b/plugins/carhop-blocks/build/featured-news/index.css index 8b13789..06ea088 100644 --- a/plugins/carhop-blocks/build/featured-news/index.css +++ b/plugins/carhop-blocks/build/featured-news/index.css @@ -1 +1,4 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/featured-news/editor.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/featured-news/index.js b/plugins/carhop-blocks/build/featured-news/index.js index e817d70..f35bb5d 100644 --- a/plugins/carhop-blocks/build/featured-news/index.js +++ b/plugins/carhop-blocks/build/featured-news/index.js @@ -1 +1,369 @@ -(()=>{"use strict";var e,r={2350:(e,r,o)=>{const n=window.wp.blocks,t=(window.wp.i18n,window.wp.blockEditor),s=window.wp.serverSideRender;var a=o.n(s);const i=window.ReactJSXRuntime,c=JSON.parse('{"UU":"carhop-blocks/featured-news"}');(0,n.registerBlockType)(c.UU,{edit:function(){return(0,i.jsx)("div",{...(0,t.useBlockProps)(),children:(0,i.jsx)(a(),{block:"carhop-blocks/featured-news"})})},save:function(){return(0,i.jsx)("p",{...t.useBlockProps.save(),children:"Featured News – hello from the saved content!"})}})}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,n),s.exports}n.m=r,e=[],n.O=(r,o,t,s)=>{if(!o){var a=1/0;for(d=0;d=s)&&Object.keys(n.O).every(e=>n.O[e](o[c]))?o.splice(c--,1):(i=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[o,t,s]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var o in r)n.o(r,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5006:0,9218:0};n.O.j=r=>0===e[r];var r=(r,o)=>{var t,s,[a,i,c]=o,l=0;if(a.some(r=>0!==e[r])){for(t in i)n.o(i,t)&&(n.m[t]=i[t]);if(c)var d=c(n)}for(r&&r(o);ln(2350));t=n.O(t)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/featured-news/block.json": +/*!**************************************!*\ + !*** ./src/featured-news/block.json ***! + \**************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/featured-news","version":"0.1.0","title":"À la une","category":"carhop-blocks","icon":"smiley","description":"Le fil d’actualité du carhop","example":{},"supports":{"html":false},"textdomain":"featured-news","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/featured-news/edit.js": +/*!***********************************!*\ + !*** ./src/featured-news/edit.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/featured-news/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default()), { + block: "carhop-blocks/featured-news" + }) + }); +} + +/***/ }), + +/***/ "./src/featured-news/editor.scss": +/*!***************************************!*\ + !*** ./src/featured-news/editor.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/featured-news/index.js": +/*!************************************!*\ + !*** ./src/featured-news/index.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/featured-news/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/featured-news/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/featured-news/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/featured-news/block.json"); +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * Internal dependencies + */ + + + + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + /** + * @see ./save.js + */ + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/featured-news/save.js": +/*!***********************************!*\ + !*** ./src/featured-news/save.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save(), + children: "Featured News – hello from the saved content!" + }); +} + +/***/ }), + +/***/ "./src/featured-news/style.scss": +/*!**************************************!*\ + !*** ./src/featured-news/style.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "featured-news/index": 0, +/******/ "featured-news/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["featured-news/style-index"], () => (__webpack_require__("./src/featured-news/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/index.js.map b/plugins/carhop-blocks/build/featured-news/index.js.map new file mode 100644 index 0000000..8d9ea00 --- /dev/null +++ b/plugins/carhop-blocks/build/featured-news/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"featured-news/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACK;AAEtC;AAAA;AAER,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAASH,sEAAa,CAAC,CAAC;IAAAK,QAAA,eACvBF,sDAAA,CAACF,sEAAgB;MAACK,KAAK,EAAC;IAA6B,CAAE;EAAC,CACpD,CAAC;AAER,C;;;;;;;;;;;ACZA;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACsB;;AAEtB;AACA;AACA;AAC0B;AACA;AACU;;AAEpC;AACA;AACA;AACA;AACA;AACAC,oEAAiB,CAAEE,6CAAa,EAAE;EACjC;AACD;AACA;EACCE,IAAI,EAAEP,6CAAI;EAEV;AACD;AACA;EACCI,IAAIA,+CAAAA;AACL,CAAE,CAAC,C;;;;;;;;;;;;;;;;;;ACtCqD;AAAA;AAEzC,SAASA,IAAIA,CAAA,EAAG;EAC9B,oBACCL,sDAAA;IAAA,GAAOH,kEAAa,CAACQ,IAAI,CAAC,CAAC;IAAAH,QAAA,EACzB;EAA+C,CAC9C,CAAC;AAEN,C;;;;;;;;;;;ACRA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,kD;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/featured-news/edit.js","webpack://carhop-blocks/./src/featured-news/editor.scss","webpack://carhop-blocks/./src/featured-news/index.js","webpack://carhop-blocks/./src/featured-news/save.js","webpack://carhop-blocks/./src/featured-news/style.scss?9949","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nimport \"./editor.scss\";\n\nexport default function Edit() {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './style.scss';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport save from './save';\nimport metadata from './block.json';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType( metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: Edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n} );\n","import { useBlockProps } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn (\n\t\t

\n\t\t\t{\"Featured News – hello from the saved content!\"}\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"featured-news/index\": 0,\n\t\"featured-news/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"featured-news/style-index\"], () => (__webpack_require__(\"./src/featured-news/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","children","block","registerBlockType","save","metadata","name","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/style-index.css b/plugins/carhop-blocks/build/featured-news/style-index.css index 265299c..cc87622 100644 --- a/plugins/carhop-blocks/build/featured-news/style-index.css +++ b/plugins/carhop-blocks/build/featured-news/style-index.css @@ -1 +1,10 @@ -.wp-block-create-block-featured-news{background-color:#21759b;color:#fff;padding:2px} +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/featured-news/style.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-create-block-featured-news { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/style-index.css.map b/plugins/carhop-blocks/build/featured-news/style-index.css.map new file mode 100644 index 0000000..81a7de0 --- /dev/null +++ b/plugins/carhop-blocks/build/featured-news/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"featured-news/style-index.css","mappings":";;;AAAA;EACC;EACA;EACA;AACD,C","sources":["webpack://carhop-blocks/./src/featured-news/style.scss"],"sourcesContent":[".wp-block-create-block-featured-news {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/view.js b/plugins/carhop-blocks/build/featured-news/view.js index aa7d4a8..0e077c1 100644 --- a/plugins/carhop-blocks/build/featured-news/view.js +++ b/plugins/carhop-blocks/build/featured-news/view.js @@ -1 +1,70 @@ -(()=>{function e(){dernieresDynamiquesSwiper.__swiper__}window.addEventListener("DOMContentLoaded",n=>{!function(){const e=document.querySelector(".featured-news-swiper");if(!e)return;const n=e.querySelector(".swiper-pagination-fraction"),t=e.querySelectorAll(".swiper-slide").length;n.textContent=`Article n°1 sur ${t}`,dernieresDynamiquesSwiper=new Swiper(".featured-news-swiper",{slidesPerView:2,spaceBetween:30,loop:!0,grabCursor:!0,keyboard:{enabled:!0,onlyInViewport:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},mousewheel:{enabled:!0,forceToAxis:!0,sensitivity:1,releaseOnEdges:!1},pagination:{el:".swiper-pagination",clickable:!0,renderBullet:function(e,n){return``}},breakpoints:{320:{slidesPerView:1},1100:{slidesPerView:2}},on:{slideChange:e=>{const t=e?.slides?.length;n.textContent=`Article n°${e.realIndex+1} sur ${t}`}}})}(),e(),window.addEventListener("resize",e)})})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!***********************************!*\ + !*** ./src/featured-news/view.js ***! + \***********************************/ +function swiperCheckBreakpoints() { + const hasSwiper = dernieresDynamiquesSwiper.__swiper__ === true; +} +function initiateSwiper() { + const currentBlock = document.querySelector(".featured-news-swiper"); + if (!currentBlock) return; + const swiperFraction = currentBlock.querySelector(".swiper-pagination-fraction"); + const slides = currentBlock.querySelectorAll(".swiper-slide"); + const slideCount = slides.length; + swiperFraction.textContent = `Article n°1 sur ${slideCount}`; + dernieresDynamiquesSwiper = new Swiper(".featured-news-swiper", { + slidesPerView: 2, + spaceBetween: 30, + loop: true, + grabCursor: true, + keyboard: { + enabled: true, + onlyInViewport: true + }, + navigation: { + nextEl: ".swiper-button-next", + prevEl: ".swiper-button-prev" + }, + mousewheel: { + enabled: true, + forceToAxis: true, + // Force le scroll dans l'axe du slider + sensitivity: 1, + // Sensibilité du scroll (1 = normal) + releaseOnEdges: false // Continue le scroll même aux bords + }, + pagination: { + el: ".swiper-pagination", + clickable: true, + renderBullet: function (index, className) { + return ``; + } + }, + breakpoints: { + // when window width is >= 320px + + // when window width is >= 480px + 320: { + slidesPerView: 1 + }, + // when window width is >= 640px + 1100: { + slidesPerView: 2 + } + }, + on: { + slideChange: swiper => { + const slidesCount = swiper?.slides?.length; + swiperFraction.textContent = `Article n°${swiper.realIndex + 1} sur ${slidesCount}`; + } + } + }); +} +window.addEventListener("DOMContentLoaded", event => { + initiateSwiper(); + swiperCheckBreakpoints(); + window.addEventListener("resize", swiperCheckBreakpoints); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/featured-news/view.js.map b/plugins/carhop-blocks/build/featured-news/view.js.map new file mode 100644 index 0000000..aedb07b --- /dev/null +++ b/plugins/carhop-blocks/build/featured-news/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"featured-news/view.js","mappings":";;;;AAAA,SAASA,sBAAsBA,CAAA,EAAG;EACjC,MAAMC,SAAS,GAAGC,yBAAyB,CAACC,UAAU,KAAK,IAAI;AAChE;AAEA,SAASC,cAAcA,CAAA,EAAG;EACzB,MAAMC,YAAY,GAAGC,QAAQ,CAACC,aAAa,CAAC,uBAAuB,CAAC;EACpE,IAAI,CAACF,YAAY,EAAE;EAEnB,MAAMG,cAAc,GAAGH,YAAY,CAACE,aAAa,CAChD,6BACD,CAAC;EACD,MAAME,MAAM,GAAGJ,YAAY,CAACK,gBAAgB,CAAC,eAAe,CAAC;EAC7D,MAAMC,UAAU,GAAGF,MAAM,CAACG,MAAM;EAChCJ,cAAc,CAACK,WAAW,GAAG,mBAAmBF,UAAU,EAAE;EAE5DT,yBAAyB,GAAG,IAAIY,MAAM,CAAC,uBAAuB,EAAE;IAC/DC,aAAa,EAAE,CAAC;IAChBC,YAAY,EAAE,EAAE;IAChBC,IAAI,EAAE,IAAI;IACVC,UAAU,EAAE,IAAI;IAChBC,QAAQ,EAAE;MACTC,OAAO,EAAE,IAAI;MACbC,cAAc,EAAE;IACjB,CAAC;IACDC,UAAU,EAAE;MACXC,MAAM,EAAE,qBAAqB;MAC7BC,MAAM,EAAE;IACT,CAAC;IACDC,UAAU,EAAE;MACXL,OAAO,EAAE,IAAI;MACbM,WAAW,EAAE,IAAI;MAAE;MACnBC,WAAW,EAAE,CAAC;MAAE;MAChBC,cAAc,EAAE,KAAK,CAAE;IACxB,CAAC;IACDC,UAAU,EAAE;MACXC,EAAE,EAAE,oBAAoB;MACxBC,SAAS,EAAE,IAAI;MACfC,YAAY,EAAE,SAAAA,CAAUC,KAAK,EAAEC,SAAS,EAAE;QACzC,OAAO,kBAAkBA,SAAS,aAAa;MAChD;IACD,CAAC;IACDC,WAAW,EAAE;MACZ;;MAEA;MACA,GAAG,EAAE;QACJpB,aAAa,EAAE;MAChB,CAAC;MACD;MACA,IAAI,EAAE;QACLA,aAAa,EAAE;MAChB;IACD,CAAC;IACDqB,EAAE,EAAE;MACHC,WAAW,EAAGC,MAAM,IAAK;QACxB,MAAMC,WAAW,GAAGD,MAAM,EAAE7B,MAAM,EAAEG,MAAM;QAC1CJ,cAAc,CAACK,WAAW,GAAG,aAC5ByB,MAAM,CAACE,SAAS,GAAG,CAAC,QACbD,WAAW,EAAE;MACtB;IACD;EACD,CAAC,CAAC;AACH;AAEAE,MAAM,CAACC,gBAAgB,CAAC,kBAAkB,EAAGC,KAAK,IAAK;EACtDvC,cAAc,CAAC,CAAC;EAChBJ,sBAAsB,CAAC,CAAC;EAExByC,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAE1C,sBAAsB,CAAC;AAC1D,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/featured-news/view.js"],"sourcesContent":["function swiperCheckBreakpoints() {\n\tconst hasSwiper = dernieresDynamiquesSwiper.__swiper__ === true;\n}\n\nfunction initiateSwiper() {\n\tconst currentBlock = document.querySelector(\".featured-news-swiper\");\n\tif (!currentBlock) return;\n\n\tconst swiperFraction = currentBlock.querySelector(\n\t\t\".swiper-pagination-fraction\"\n\t);\n\tconst slides = currentBlock.querySelectorAll(\".swiper-slide\");\n\tconst slideCount = slides.length;\n\tswiperFraction.textContent = `Article n°1 sur ${slideCount}`;\n\n\tdernieresDynamiquesSwiper = new Swiper(\".featured-news-swiper\", {\n\t\tslidesPerView: 2,\n\t\tspaceBetween: 30,\n\t\tloop: true,\n\t\tgrabCursor: true,\n\t\tkeyboard: {\n\t\t\tenabled: true,\n\t\t\tonlyInViewport: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".swiper-button-next\",\n\t\t\tprevEl: \".swiper-button-prev\",\n\t\t},\n\t\tmousewheel: {\n\t\t\tenabled: true,\n\t\t\tforceToAxis: true, // Force le scroll dans l'axe du slider\n\t\t\tsensitivity: 1, // Sensibilité du scroll (1 = normal)\n\t\t\treleaseOnEdges: false, // Continue le scroll même aux bords\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".swiper-pagination\",\n\t\t\tclickable: true,\n\t\t\trenderBullet: function (index, className) {\n\t\t\t\treturn ``;\n\t\t\t},\n\t\t},\n\t\tbreakpoints: {\n\t\t\t// when window width is >= 320px\n\n\t\t\t// when window width is >= 480px\n\t\t\t320: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t// when window width is >= 640px\n\t\t\t1100: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t\ton: {\n\t\t\tslideChange: (swiper) => {\n\t\t\t\tconst slidesCount = swiper?.slides?.length;\n\t\t\t\tswiperFraction.textContent = `Article n°${\n\t\t\t\t\tswiper.realIndex + 1\n\t\t\t\t} sur ${slidesCount}`;\n\t\t\t},\n\t\t},\n\t});\n}\n\nwindow.addEventListener(\"DOMContentLoaded\", (event) => {\n\tinitiateSwiper();\n\tswiperCheckBreakpoints();\n\n\twindow.addEventListener(\"resize\", swiperCheckBreakpoints);\n});\n"],"names":["swiperCheckBreakpoints","hasSwiper","dernieresDynamiquesSwiper","__swiper__","initiateSwiper","currentBlock","document","querySelector","swiperFraction","slides","querySelectorAll","slideCount","length","textContent","Swiper","slidesPerView","spaceBetween","loop","grabCursor","keyboard","enabled","onlyInViewport","navigation","nextEl","prevEl","mousewheel","forceToAxis","sensitivity","releaseOnEdges","pagination","el","clickable","renderBullet","index","className","breakpoints","on","slideChange","swiper","slidesCount","realIndex","window","addEventListener","event"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/front-header/index.css b/plugins/carhop-blocks/build/front-header/index.css index 5de5b90..18c471e 100644 --- a/plugins/carhop-blocks/build/front-header/index.css +++ b/plugins/carhop-blocks/build/front-header/index.css @@ -1 +1,8 @@ -.wp-block-front-header-front-header{border:1px dotted red} +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/front-header/editor.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-front-header-front-header { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/front-header/index.css.map b/plugins/carhop-blocks/build/front-header/index.css.map new file mode 100644 index 0000000..4dcf326 --- /dev/null +++ b/plugins/carhop-blocks/build/front-header/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"front-header/index.css","mappings":";;;AAAA;EACC;AACD,C","sources":["webpack://carhop-blocks/./src/front-header/editor.scss"],"sourcesContent":[".wp-block-front-header-front-header {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/front-header/index.js b/plugins/carhop-blocks/build/front-header/index.js index 92b611a..79e9d51 100644 --- a/plugins/carhop-blocks/build/front-header/index.js +++ b/plugins/carhop-blocks/build/front-header/index.js @@ -1 +1,393 @@ -(()=>{"use strict";var e,r={310:()=>{const e=window.wp.blocks,r=(window.wp.i18n,window.wp.blockEditor),o=window.ReactJSXRuntime,l=JSON.parse('{"UU":"front-header/front-header"}');(0,e.registerBlockType)(l.UU,{icon:{foreground:"#136f63",src:(0,o.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,o.jsx)("g",{children:(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{stroke:"null",id:"svg_2",d:"m92.2486,13.78691a12.07103,12.07103 0 0 0 -12.07103,-12.07103l-60.35515,0a12.07103,12.07103 0 0 0 -12.07103,12.07103l0,12.07103a12.07103,12.07103 0 0 0 12.07103,12.07103l60.35515,0a12.07103,12.07103 0 0 0 12.07103,-12.07103l0,-12.07103zm-72.42617,12.07103l0,-12.07103l60.35515,0l0,12.07103l-60.35515,0z"}),(0,o.jsx)("rect",{stroke:"null",id:"svg_3",height:"18.10654",width:"12.07103",y:"46.98224",x:"7.7514"}),(0,o.jsx)("rect",{stroke:"null",id:"svg_4",height:"12.07103",width:"18.10654",y:"86.21309",x:"40.94673"}),(0,o.jsx)("rect",{stroke:"null",id:"svg_5",height:"18.10654",width:"12.07103",y:"46.98224",x:"80.17757"}),(0,o.jsx)("path",{stroke:"null",id:"svg_6",d:"m7.7514,89.23085a9.05327,9.05327 0 0 0 9.05327,9.05327l12.07103,0l0,-12.07103l-9.05327,0l0,-9.05327l-12.07103,0l0,12.07103z"}),(0,o.jsx)("path",{stroke:"null",id:"svg_7",d:"m80.17757,86.21309l-9.05327,0l0,12.07103l12.07103,0a9.05327,9.05327 0 0 0 9.05327,-9.05327l0,-12.07103l-12.07103,0l0,9.05327z"})]})})})},edit:function(){return(0,o.jsx)("section",{...(0,r.useBlockProps)({className:"block-front-header"}),children:(0,o.jsx)("div",{className:"front-header__innerblocks",children:(0,o.jsx)(r.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]],allowedBlocks:["core/paragraph","core/list","core/button","core/buttons","core/heading","carhop-blocks/cta-group","carhop-blocks/cta","carhop-blocks/heading","carhop-blocks/decorative-shapes"]})})})},save:function(){return(0,o.jsx)("section",{...r.useBlockProps.save({className:"block-front-header"}),children:(0,o.jsx)("div",{className:"front-header__innerblocks",children:(0,o.jsx)(r.InnerBlocks.Content,{})})})}}),wp.blocks.registerBlockStyle("front-header/front-header",{name:"has-overlap",label:"Superposition du bloc suivant”"})}},o={};function l(e){var s=o[e];if(void 0!==s)return s.exports;var t=o[e]={exports:{}};return r[e](t,t.exports,l),t.exports}l.m=r,e=[],l.O=(r,o,s,t)=>{if(!o){var a=1/0;for(h=0;h=t)&&Object.keys(l.O).every(e=>l.O[e](o[c]))?o.splice(c--,1):(n=!1,t0&&e[h-1][2]>t;h--)e[h]=e[h-1];e[h]=[o,s,t]},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5891:0,9771:0};l.O.j=r=>0===e[r];var r=(r,o)=>{var s,t,[a,n,c]=o,i=0;if(a.some(r=>0!==e[r])){for(s in n)l.o(n,s)&&(l.m[s]=n[s]);if(c)var h=c(l)}for(r&&r(o);il(310));s=l.O(s)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/front-header/block.json": +/*!*************************************!*\ + !*** ./src/front-header/block.json ***! + \*************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"front-header/front-header","version":"0.1.0","title":"Header","category":"carhop-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false,"align":["wide","full"]},"attributes":{"align":{"type":"string","default":"full"}},"textdomain":"front-header","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/front-header/edit.js": +/*!**********************************!*\ + !*** ./src/front-header/edit.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/front-header/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "block-front-header" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", { + className: "front-header__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["core/paragraph", { + placeholder: "Ajouter ici le texte" + }]], + allowedBlocks: ["core/paragraph", "core/list", "core/button", "core/buttons", "core/heading", "carhop-blocks/cta-group", "carhop-blocks/cta", "carhop-blocks/heading", "carhop-blocks/decorative-shapes"] + }) + }) + }); +} + +/***/ }), + +/***/ "./src/front-header/editor.scss": +/*!**************************************!*\ + !*** ./src/front-header/editor.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/front-header/index.js": +/*!***********************************!*\ + !*** ./src/front-header/index.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/front-header/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/front-header/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/front-header/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/front-header/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + id: "svg_2", + d: "m92.2486,13.78691a12.07103,12.07103 0 0 0 -12.07103,-12.07103l-60.35515,0a12.07103,12.07103 0 0 0 -12.07103,12.07103l0,12.07103a12.07103,12.07103 0 0 0 12.07103,12.07103l60.35515,0a12.07103,12.07103 0 0 0 12.07103,-12.07103l0,-12.07103zm-72.42617,12.07103l0,-12.07103l60.35515,0l0,12.07103l-60.35515,0z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("rect", { + stroke: "null", + id: "svg_3", + height: "18.10654", + width: "12.07103", + y: "46.98224", + x: "7.7514" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("rect", { + stroke: "null", + id: "svg_4", + height: "12.07103", + width: "18.10654", + y: "86.21309", + x: "40.94673" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("rect", { + stroke: "null", + id: "svg_5", + height: "18.10654", + width: "12.07103", + y: "46.98224", + x: "80.17757" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + id: "svg_6", + d: "m7.7514,89.23085a9.05327,9.05327 0 0 0 9.05327,9.05327l12.07103,0l0,-12.07103l-9.05327,0l0,-9.05327l-12.07103,0l0,12.07103z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + id: "svg_7", + d: "m80.17757,86.21309l-9.05327,0l0,12.07103l12.07103,0a9.05327,9.05327 0 0 0 9.05327,-9.05327l0,-12.07103l-12.07103,0l0,9.05327z" + })] + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); +wp.blocks.registerBlockStyle("front-header/front-header", { + name: "has-overlap", + label: "Superposition du bloc suivant”" +}); + +/***/ }), + +/***/ "./src/front-header/save.js": +/*!**********************************!*\ + !*** ./src/front-header/save.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("section", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "block-front-header" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "front-header__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }) + }); +} + +/***/ }), + +/***/ "./src/front-header/style.scss": +/*!*************************************!*\ + !*** ./src/front-header/style.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "front-header/index": 0, +/******/ "front-header/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["front-header/style-index"], () => (__webpack_require__("./src/front-header/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/front-header/index.js.map b/plugins/carhop-blocks/build/front-header/index.js.map new file mode 100644 index 0000000..7916c2c --- /dev/null +++ b/plugins/carhop-blocks/build/front-header/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"front-header/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AAAA;AAER,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GACKH,sEAAa,CAAC;MACjBK,SAAS,EAAE;IACZ,CAAC,CAAC;IAAAC,QAAA,eAEFH,sDAAA;MAAKE,SAAS,EAAC,2BAA2B;MAAAC,QAAA,eACzCH,sDAAA,CAACF,gEAAW;QACXM,QAAQ,EAAE,CACT,CAAC,gBAAgB,EAAE;UAAEC,WAAW,EAAE;QAAuB,CAAC,CAAC,CAC1D;QACFC,aAAa,EAAE,CACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,iCAAiC;MAChC,CACF;IAAC,CACE;EAAC,CACE,CAAC;AAEZ,C;;;;;;;;;;;AC/BA;;;;;;;;;;;;;;;;;;;;ACAsD;AAChC;AAEI;AACA;AACU;AAAA;AAEpCC,oEAAiB,CAACE,6CAAa,EAAE;EAChCI,IAAI,EAAE;IACLC,UAAU,EAAE,SAAS;IACrBC,GAAG,eACFf,sDAAA;MAAKgB,KAAK,EAAC,KAAK;MAACC,MAAM,EAAC,KAAK;MAACC,OAAO,EAAC,aAAa;MAAAf,QAAA,eAClDH,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I,CAAC;MACtBN,SAAS,EAAE;IACZ,CAAC,CAAC;IAAAC,QAAA,eAEFH,sDAAA;MAAKE,SAAS,EAAC,2BAA2B;MAAAC,QAAA,eACzCH,sDAAA,CAACF,gEAAW,CAAC+B,OAAO,IAAE;IAAC,CACnB;EAAC,CACE,CAAC;AAEZ,C;;;;;;;;;;;ACdA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/front-header/edit.js","webpack://carhop-blocks/./src/front-header/editor.scss?2ff7","webpack://carhop-blocks/./src/front-header/index.js","webpack://carhop-blocks/./src/front-header/save.js","webpack://carhop-blocks/./src/front-header/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n\nwp.blocks.registerBlockStyle(\"front-header/front-header\", {\n\tname: \"has-overlap\",\n\tlabel: \"Superposition du bloc suivant”\",\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"front-header/index\": 0,\n\t\"front-header/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"front-header/style-index\"], () => (__webpack_require__(\"./src/front-header/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","jsx","_jsx","Edit","className","children","template","placeholder","allowedBlocks","registerBlockType","save","metadata","jsxs","_jsxs","name","icon","foreground","src","width","height","viewBox","stroke","id","d","y","x","edit","wp","blocks","registerBlockStyle","label","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/front-header/style-index.css b/plugins/carhop-blocks/build/front-header/style-index.css index 8b13789..e3f69d4 100644 --- a/plugins/carhop-blocks/build/front-header/style-index.css +++ b/plugins/carhop-blocks/build/front-header/style-index.css @@ -1 +1,4 @@ +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/front-header/style.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/front-header/view.js b/plugins/carhop-blocks/build/front-header/view.js index e69de29..3682957 100644 --- a/plugins/carhop-blocks/build/front-header/view.js +++ b/plugins/carhop-blocks/build/front-header/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!**********************************!*\ + !*** ./src/front-header/view.js ***! + \**********************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/heading/index.css b/plugins/carhop-blocks/build/heading/index.css index 8b13789..6294964 100644 --- a/plugins/carhop-blocks/build/heading/index.css +++ b/plugins/carhop-blocks/build/heading/index.css @@ -1 +1,4 @@ +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/heading/editor.scss ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/heading/index.js b/plugins/carhop-blocks/build/heading/index.js index 63be0d5..9b95a4c 100644 --- a/plugins/carhop-blocks/build/heading/index.js +++ b/plugins/carhop-blocks/build/heading/index.js @@ -1 +1,416 @@ -(()=>{"use strict";var e,r={2397:()=>{const e=window.wp.blocks,r=window.wp.i18n,o=window.wp.blockEditor,l=window.wp.components,n=window.ReactJSXRuntime,i=JSON.parse('{"UU":"carhop-blocks/heading"}');(0,e.registerBlockType)(i.UU,{icon:{foreground:"#136f63",src:(0,n.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,n.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,n.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:i,...s}){const{hierarchy:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.InspectorControls,{children:(0,n.jsx)(l.PanelBody,{title:(0,r.__)("Aspect","carhop-blocks"),children:(0,n.jsxs)(l.__experimentalToggleGroupControl,{label:"Hiérarchie",value:a,onChange:function(e){i({hierarchy:e})},isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,n.jsx)(l.__experimentalToggleGroupControlOption,{value:"classic",label:"Classique"}),(0,n.jsx)(l.__experimentalToggleGroupControlOption,{value:"inverted",label:"Inversé"})]})})}),(0,n.jsx)("div",{...(0,o.useBlockProps)({className:`carhop-heading carhop-heading--hierarchy-${a}`}),children:(0,n.jsx)("div",{className:"carhop-heading__innerblocks",children:(0,n.jsx)(o.InnerBlocks,{template:[["core/heading",{placeholder:"Saisir le titre",content:"Titre"}],["core/paragraph",{placeholder:"Saisir le sous-titre supérieur",content:"Sous-titre"}]],allowedBlocks:["core/heading","core/paragraph","core/post-title"]})})})]})},save:function({attributes:e}){const{hierarchy:r}=e;return(0,n.jsx)("div",{...o.useBlockProps.save({className:`carhop-heading carhop-heading--hierarchy-${r}`}),children:(0,n.jsx)("div",{className:"carhop-heading__innerblocks",children:(0,n.jsx)(o.InnerBlocks.Content,{})})})}})}},o={};function l(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,l),i.exports}l.m=r,e=[],l.O=(r,o,n,i)=>{if(!o){var s=1/0;for(h=0;h=i)&&Object.keys(l.O).every(e=>l.O[e](o[t]))?o.splice(t--,1):(a=!1,i0&&e[h-1][2]>i;h--)e[h]=e[h-1];e[h]=[o,n,i]},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5430:0,6778:0};l.O.j=r=>0===e[r];var r=(r,o)=>{var n,i,[s,a,t]=o,c=0;if(s.some(r=>0!==e[r])){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);if(t)var h=t(l)}for(r&&r(o);cl(2397));n=l.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/heading/block.json": +/*!********************************!*\ + !*** ./src/heading/block.json ***! + \********************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/heading","version":"0.1.0","title":"Titrage","category":"carhop-blocks","icon":"smiley","description":"Boite de titrage pour la mise en forme d\'éléments de contenu","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","styles":[{"name":"stroked-after","label":"Titre + trait "}],"attributes":{"hierarchy":{"type":"string","enum":["classic","inverted"],"default":"classic"}}}'); + +/***/ }), + +/***/ "./src/heading/edit.js": +/*!*****************************!*\ + !*** ./src/heading/edit.js ***! + \*****************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/heading/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const { + hierarchy + } = attributes; + function onHierarchyChange(value) { + setAttributes({ + hierarchy: value + }); + } + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Aspect", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.__experimentalToggleGroupControl, { + label: "Hi\xE9rarchie", + value: hierarchy, + onChange: onHierarchyChange, + isBlock: true, + __nextHasNoMarginBottom: true, + __next40pxDefaultSize: true, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.__experimentalToggleGroupControlOption, { + value: "classic", + label: "Classique" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.__experimentalToggleGroupControlOption, { + value: "inverted", + label: "Invers\xE9" + })] + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `carhop-heading carhop-heading--hierarchy-${hierarchy}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "carhop-heading__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["core/heading", { + placeholder: "Saisir le titre", + content: "Titre" + }], ["core/paragraph", { + placeholder: "Saisir le sous-titre supérieur", + content: "Sous-titre" + }]], + allowedBlocks: ["core/heading", "core/paragraph", "core/post-title"] + }) + }) + })] + }); +} + +/***/ }), + +/***/ "./src/heading/editor.scss": +/*!*********************************!*\ + !*** ./src/heading/editor.scss ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/heading/index.js": +/*!******************************!*\ + !*** ./src/heading/index.js ***! + \******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/heading/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/heading/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/heading/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/heading/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + stroke: "null", + id: "svg_10", + class: "fills", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + d: "m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/heading/save.js": +/*!*****************************!*\ + !*** ./src/heading/save.js ***! + \*****************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + hierarchy + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `carhop-heading carhop-heading--hierarchy-${hierarchy}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "carhop-heading__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }) + }); +} + +/***/ }), + +/***/ "./src/heading/style.scss": +/*!********************************!*\ + !*** ./src/heading/style.scss ***! + \********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "heading/index": 0, +/******/ "heading/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["heading/style-index"], () => (__webpack_require__("./src/heading/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/heading/index.js.map b/plugins/carhop-blocks/build/heading/index.js.map new file mode 100644 index 0000000..2b8deea --- /dev/null +++ b/plugins/carhop-blocks/build/heading/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"heading/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AAQQ;AAC6B;AAAA;AAE7C,SAASkB,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAM;IAAEC;EAAU,CAAC,GAAGH,UAAU;EAEhC,SAASI,iBAAiBA,CAACC,KAA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BAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/heading/edit.js","webpack://carhop-blocks/./src/heading/editor.scss","webpack://carhop-blocks/./src/heading/index.js","webpack://carhop-blocks/./src/heading/save.js","webpack://carhop-blocks/./src/heading/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tButton,\n\tCheckboxControl,\n\tColorPalette,\n} from \"@wordpress/components\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst { hierarchy } = attributes;\n\n\tfunction onHierarchyChange(value) {\n\t\tsetAttributes({ hierarchy: value });\n\t}\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { hierarchy } = attributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"heading/index\": 0,\n\t\"heading/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"heading/style-index\"], () => (__webpack_require__(\"./src/heading/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Button","CheckboxControl","ColorPalette","InspectorControls","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","hierarchy","onHierarchyChange","value","children","title","label","onChange","isBlock","__nextHasNoMarginBottom","__next40pxDefaultSize","className","template","placeholder","content","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","stroke","id","class","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/heading/style-index.css b/plugins/carhop-blocks/build/heading/style-index.css index 8b13789..7c37552 100644 --- a/plugins/carhop-blocks/build/heading/style-index.css +++ b/plugins/carhop-blocks/build/heading/style-index.css @@ -1 +1,4 @@ +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/heading/style.scss ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/heading/view.js b/plugins/carhop-blocks/build/heading/view.js index e69de29..ab5443b 100644 --- a/plugins/carhop-blocks/build/heading/view.js +++ b/plugins/carhop-blocks/build/heading/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*****************************!*\ + !*** ./src/heading/view.js ***! + \*****************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/index.css b/plugins/carhop-blocks/build/highlight-timeline-step/index.css index 8b13789..e7dc39c 100644 --- a/plugins/carhop-blocks/build/highlight-timeline-step/index.css +++ b/plugins/carhop-blocks/build/highlight-timeline-step/index.css @@ -1 +1,4 @@ +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/highlight-timeline-step/editor.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/index.js b/plugins/carhop-blocks/build/highlight-timeline-step/index.js index 4fe0384..6a7a903 100644 --- a/plugins/carhop-blocks/build/highlight-timeline-step/index.js +++ b/plugins/carhop-blocks/build/highlight-timeline-step/index.js @@ -1 +1,413 @@ -(()=>{"use strict";var e,i={2172:()=>{const e=window.wp.blocks,i=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,r=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-blocks/highlight-timeline-step"}');(0,e.registerBlockType)(l.UU,{icon:{foreground:"#136f63",src:(0,r.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,r.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,r.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:l,...t}){const{year:c}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.InspectorControls,{children:(0,r.jsx)(s.PanelBody,{title:(0,i.__)("Étape de timeline","carhop-blocks"),children:(0,r.jsx)(s.__experimentalNumberControl,{label:(0,i.__)("Année","carhop-blocks"),value:c,onChange:e=>{const i=parseInt(e,10);l({year:Number.isFinite(i)?i:void 0})}})})}),(0,r.jsxs)("div",{...(0,o.useBlockProps)({className:"highlight-timeline-step",id:`year-${c}`}),children:[(0,r.jsx)("div",{className:"highlight-timeline-step__year",children:(0,r.jsx)("p",{className:"highlight-timeline-step__year-text",children:c})}),(0,r.jsx)("div",{className:"highlight-timeline-step__innerblocks",children:(0,r.jsx)(o.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/image","core/buttons","core/columns","core/post-title","core/embed","core/quote","core/pullquote","core/media-text","core/table","carhop-blocks/image-stack","carhop-blocks/heading","carhop-blocks/decorative-shapes","carhop-blocks/scroll-highlight-block","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/localisation-map","carhop-blocks/notice-panel","acf/statistics-datas","ninja-forms/form","gravityforms/form","dynamiques-blocks/sitemap","mailpoet/subscription-form-block","shortcode"]})})]})]})},save:function({attributes:e}){const{year:i}=e;return(0,r.jsxs)("div",{...o.useBlockProps.save({className:"highlight-timeline-step swiper-slide",id:`year-${i}`}),children:[(0,r.jsx)("div",{className:"highlight-timeline-step__year",children:(0,r.jsx)("p",{className:"highlight-timeline-step__year-text",children:i})}),(0,r.jsx)("div",{className:"highlight-timeline-step__innerblocks",children:(0,r.jsx)(o.InnerBlocks.Content,{})})]})}})}},o={};function s(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return i[e](l,l.exports,s),l.exports}s.m=i,e=[],s.O=(i,o,r,l)=>{if(!o){var t=1/0;for(h=0;h=l)&&Object.keys(s.O).every(e=>s.O[e](o[a]))?o.splice(a--,1):(c=!1,l0&&e[h-1][2]>l;h--)e[h]=e[h-1];e[h]=[o,r,l]},s.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={8319:0,7511:0};s.O.j=i=>0===e[i];var i=(i,o)=>{var r,l,[t,c,a]=o,n=0;if(t.some(i=>0!==e[i])){for(r in c)s.o(c,r)&&(s.m[r]=c[r]);if(a)var h=a(s)}for(i&&i(o);ns(2172));r=s.O(r)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/highlight-timeline-step/block.json": +/*!************************************************!*\ + !*** ./src/highlight-timeline-step/block.json ***! + \************************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/highlight-timeline-step","version":"0.1.0","title":"Étape de timeline","category":"carhop-blocks","icon":"calendar","description":"Étape de timeline pour la mise en forme d\'une étape de timeline","example":{},"parent":["carhop-blocks/highlight-timeline"],"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"year":{"type":"number","default":2025}}}'); + +/***/ }), + +/***/ "./src/highlight-timeline-step/edit.js": +/*!*********************************************!*\ + !*** ./src/highlight-timeline-step/edit.js ***! + \*********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/highlight-timeline-step/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const { + year + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Étape de timeline", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.__experimentalNumberControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Année", "carhop-blocks"), + value: year, + onChange: value => { + const n = parseInt(value, 10); + setAttributes({ + year: Number.isFinite(n) ? n : undefined + }); + } + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `highlight-timeline-step`, + id: `year-${year}` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "highlight-timeline-step__year", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p", { + className: "highlight-timeline-step__year-text", + children: year + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "highlight-timeline-step__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/heading", "core/paragraph", "core/group", "core/list", "core/button", "core/image", "core/buttons", "core/columns", "core/post-title", "core/embed", "core/quote", "core/pullquote", "core/media-text", "core/table", "carhop-blocks/image-stack", "carhop-blocks/heading", "carhop-blocks/decorative-shapes", "carhop-blocks/scroll-highlight-block", "carhop-blocks/cta-group", "carhop-blocks/audio-player", "carhop-blocks/localisation-map", "carhop-blocks/notice-panel", "acf/statistics-datas", "ninja-forms/form", "gravityforms/form", "dynamiques-blocks/sitemap", "mailpoet/subscription-form-block", "shortcode"] + }) + })] + })] + }); +} + +/***/ }), + +/***/ "./src/highlight-timeline-step/editor.scss": +/*!*************************************************!*\ + !*** ./src/highlight-timeline-step/editor.scss ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/highlight-timeline-step/index.js": +/*!**********************************************!*\ + !*** ./src/highlight-timeline-step/index.js ***! + \**********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/highlight-timeline-step/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/highlight-timeline-step/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/highlight-timeline-step/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/highlight-timeline-step/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + stroke: "null", + id: "svg_10", + class: "fills", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + d: "m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/highlight-timeline-step/save.js": +/*!*********************************************!*\ + !*** ./src/highlight-timeline-step/save.js ***! + \*********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + year + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `highlight-timeline-step swiper-slide`, + id: `year-${year}` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "highlight-timeline-step__year", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p", { + className: "highlight-timeline-step__year-text", + children: year + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "highlight-timeline-step__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + })] + }); +} + +/***/ }), + +/***/ "./src/highlight-timeline-step/style.scss": +/*!************************************************!*\ + !*** ./src/highlight-timeline-step/style.scss ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "highlight-timeline-step/index": 0, +/******/ "highlight-timeline-step/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["highlight-timeline-step/style-index"], () => (__webpack_require__("./src/highlight-timeline-step/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/index.js.map b/plugins/carhop-blocks/build/highlight-timeline-step/index.js.map new file mode 100644 index 0000000..5beeff4 --- /dev/null +++ b/plugins/carhop-blocks/build/highlight-timeline-step/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"highlight-timeline-step/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AASQ;AAC6B;AAAA;AAE7C,SAASkB,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAM;IAAEC;EAAK,CAAC,GAAGH,UAAU;EAE3B,oBACCJ,uDAAA,CAAAE,uDAAA;IAAAM,QAAA,gBACCV,sDAAA,CAACF,sEAAiB;MAAAY,QAAA,eACjBV,sDAAA,CAACV,4DAAS;QAACqB,KAAK,EAAExB,mDAAE,CAAC,mBAAmB,EAAE,eAAe,CAAE;QAAAuB,QAAA,eAC1DV,sDAAA,CAACH,8EAAa;UACbe,KAAK,EAAEzB,mDAAE,CAAC,OAAO,EAAE,eAAe,CAAE;UACpC0B,KAAK,EAAEJ,IAAK;UACZK,QAAQ,EAAGD,KAAK,IAAK;YACpB,MAAME,CAAC,GAAGC,QAAQ,CAACH,KAAK,EAAE,EAAE,CAAC;YAC7BN,aAAa,CAAC;cAAEE,IAAI,EAAEQ,MAAM,CAACC,QAAQ,CAACH,CAAC,CAAC,GAAGA,CAAC,GAAGI;YAAU,CAAC,CAAC;UAC5D;QAAE,CACF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ACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/highlight-timeline-step/edit.js","webpack://carhop-blocks/./src/highlight-timeline-step/editor.scss","webpack://carhop-blocks/./src/highlight-timeline-step/index.js","webpack://carhop-blocks/./src/highlight-timeline-step/save.js","webpack://carhop-blocks/./src/highlight-timeline-step/style.scss?109a","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport {\n\tPanelBody,\n\tCard,\n\tCardBody,\n\tCardHeader,\n\tTextControl,\n\tButton,\n\t__experimentalNumberControl as NumberControl,\n} from \"@wordpress/components\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst { year } = attributes;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst n = parseInt(value, 10);\n\t\t\t\t\t\t\tsetAttributes({ year: Number.isFinite(n) ? n : undefined });\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t

{year}

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { year } = attributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t

{year}

\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"highlight-timeline-step/index\": 0,\n\t\"highlight-timeline-step/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"highlight-timeline-step/style-index\"], () => (__webpack_require__(\"./src/highlight-timeline-step/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","PanelBody","Card","CardBody","CardHeader","TextControl","Button","__experimentalNumberControl","NumberControl","InspectorControls","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","year","children","title","label","value","onChange","n","parseInt","Number","isFinite","undefined","className","id","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","stroke","class","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css b/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css index 4136a8f..089b72b 100644 --- a/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css +++ b/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css @@ -1 +1,35 @@ -.highlight-timeline-step__year{position:relative}.highlight-timeline-step__year>*{z-index:1}.highlight-timeline-step__year .highlight-timeline-step__year-background{bottom:10px;left:10px;overflow:visible;position:absolute;right:10px;top:10px;z-index:0}.highlight-timeline-step__year .highlight-timeline-step__year-background svg{height:100%;overflow:visible;width:100%}.highlight-timeline-step__year .highlight-timeline-step__year-background svg polygon{fill:#efe8ff;overflow:visible;stroke:#fff;stroke-width:20px;vector-effect:non-scaling-stroke}.highlight-timeline-step__year .highlight-timeline-step__year-text{line-height:1!important} +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/highlight-timeline-step/style.scss ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.highlight-timeline-step__year { + position: relative; +} +.highlight-timeline-step__year > * { + z-index: 1; +} +.highlight-timeline-step__year .highlight-timeline-step__year-background { + position: absolute; + top: 10px; + right: 10px; + bottom: 10px; + left: 10px; + z-index: 0; + overflow: visible; +} +.highlight-timeline-step__year .highlight-timeline-step__year-background svg { + overflow: visible; + width: 100%; + height: 100%; +} +.highlight-timeline-step__year .highlight-timeline-step__year-background svg polygon { + overflow: visible; + fill: #efe8ff; + stroke: white; + stroke-width: 20px; + vector-effect: non-scaling-stroke; +} +.highlight-timeline-step__year .highlight-timeline-step__year-text { + line-height: 1 !important; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css.map b/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css.map new file mode 100644 index 0000000..ee0a210 --- /dev/null +++ b/plugins/carhop-blocks/build/highlight-timeline-step/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"highlight-timeline-step/style-index.css","mappings":";;;AAAA;EACC;AACD;AACC;EACC;AACF;AACC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;AACF;AACE;EACC;EACA;EACA;AACH;AACG;EACC;EACA;EACA;EACA;EACA;AACJ;AAIC;EACC;AAFF,C","sources":["webpack://carhop-blocks/./src/highlight-timeline-step/style.scss"],"sourcesContent":[".highlight-timeline-step__year {\r\n\tposition: relative;\r\n\r\n\t> * {\r\n\t\tz-index: 1;\r\n\t}\r\n\t.highlight-timeline-step__year-background {\r\n\t\tposition: absolute;\r\n\t\ttop: 10px;\r\n\t\tright: 10px;\r\n\t\tbottom: 10px;\r\n\t\tleft: 10px;\r\n\t\tz-index: 0;\r\n\t\toverflow: visible;\r\n\r\n\t\tsvg {\r\n\t\t\toverflow: visible;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\r\n\t\t\tpolygon {\r\n\t\t\t\toverflow: visible;\r\n\t\t\t\tfill: #efe8ff;\r\n\t\t\t\tstroke: white;\r\n\t\t\t\tstroke-width: 20px;\r\n\t\t\t\tvector-effect: non-scaling-stroke;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.highlight-timeline-step__year-text {\r\n\t\tline-height: 1 !important;\r\n\t}\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline-step/view.js b/plugins/carhop-blocks/build/highlight-timeline-step/view.js index e69de29..022aa93 100644 --- a/plugins/carhop-blocks/build/highlight-timeline-step/view.js +++ b/plugins/carhop-blocks/build/highlight-timeline-step/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*********************************************!*\ + !*** ./src/highlight-timeline-step/view.js ***! + \*********************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/index.css b/plugins/carhop-blocks/build/highlight-timeline/index.css index 8b13789..80ecff1 100644 --- a/plugins/carhop-blocks/build/highlight-timeline/index.css +++ b/plugins/carhop-blocks/build/highlight-timeline/index.css @@ -1 +1,4 @@ +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/highlight-timeline/editor.scss ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/highlight-timeline/index.js b/plugins/carhop-blocks/build/highlight-timeline/index.js index af86191..bc7ff6e 100644 --- a/plugins/carhop-blocks/build/highlight-timeline/index.js +++ b/plugins/carhop-blocks/build/highlight-timeline/index.js @@ -1 +1,374 @@ -(()=>{"use strict";var e,i={7301:()=>{const e=window.wp.blocks,i=(window.wp.i18n,window.wp.blockEditor),t=window.wp.data,r=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-blocks/highlight-timeline"}');(0,e.registerBlockType)(l.UU,{icon:{src:(0,r.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{d:"M16 24L8 16L16 8L24 16L16 24Z"})})},edit:function({attributes:e,setAttributes:l,...s}){const o=(0,t.useSelect)(e=>{const{getBlocks:i}=e("core/block-editor");return(i(s.clientId)||[]).filter(e=>"carhop-blocks/highlight-timeline-step"===e.name).map(e=>e.attributes?.year).filter(e=>null!=e&&""!==e)},[s.clientId]);return(0,r.jsxs)("div",{...(0,i.useBlockProps)({className:"highlight-timeline"}),children:[(0,r.jsx)("div",{className:"highlight-timeline__innerblocks",children:(0,r.jsx)(i.InnerBlocks,{allowedBlocks:["carhop-blocks/highlight-timeline-step"]})}),(0,r.jsx)("ul",{className:"highlight-timeline__years",children:o.map((e,i)=>(0,r.jsx)("li",{className:"story-timeline__year",children:e},i))})]})},save:function({attributes:e}){return(0,r.jsx)(i.InnerBlocks.Content,{})}})}},t={};function r(e){var l=t[e];if(void 0!==l)return l.exports;var s=t[e]={exports:{}};return i[e](s,s.exports,r),s.exports}r.m=i,e=[],r.O=(i,t,l,s)=>{if(!t){var o=1/0;for(h=0;h=s)&&Object.keys(r.O).every(e=>r.O[e](t[c]))?t.splice(c--,1):(n=!1,s0&&e[h-1][2]>s;h--)e[h]=e[h-1];e[h]=[t,l,s]},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={2454:0,3690:0};r.O.j=i=>0===e[i];var i=(i,t)=>{var l,s,[o,n,c]=t,a=0;if(o.some(i=>0!==e[i])){for(l in n)r.o(n,l)&&(r.m[l]=n[l]);if(c)var h=c(r)}for(i&&i(t);ar(7301));l=r.O(l)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/highlight-timeline/block.json": +/*!*******************************************!*\ + !*** ./src/highlight-timeline/block.json ***! + \*******************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/highlight-timeline","version":"0.1.0","title":"Highlight Timeline","category":"carhop-blocks","icon":"smiley","description":"Highlight Timeline pour la mise en forme d\'une timeline avec des éléments en surbrillance","example":{},"supports":{"html":false},"textdomain":"highlight-timeline","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/highlight-timeline/edit.js": +/*!****************************************!*\ + !*** ./src/highlight-timeline/edit.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/highlight-timeline/editor.scss"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const years = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => { + const { + getBlocks + } = select("core/block-editor"); + const childBlocks = getBlocks(props.clientId) || []; + return childBlocks.filter(b => b.name === "carhop-blocks/highlight-timeline-step").map(b => b.attributes?.year).filter(y => y !== undefined && y !== null && y !== ""); + }, [props.clientId]); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "highlight-timeline" + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "highlight-timeline__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["carhop-blocks/highlight-timeline-step"] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul", { + className: "highlight-timeline__years", + children: years.map((y, idx) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li", { + className: "story-timeline__year", + children: y + }, idx)) + })] + }); +} + +/***/ }), + +/***/ "./src/highlight-timeline/editor.scss": +/*!********************************************!*\ + !*** ./src/highlight-timeline/editor.scss ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/highlight-timeline/index.js": +/*!*****************************************!*\ + !*** ./src/highlight-timeline/index.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/highlight-timeline/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/highlight-timeline/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/highlight-timeline/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/highlight-timeline/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M16 24L8 16L16 8L24 16L16 24Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/highlight-timeline/save.js": +/*!****************************************!*\ + !*** ./src/highlight-timeline/save.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}); +} + +/***/ }), + +/***/ "./src/highlight-timeline/style.scss": +/*!*******************************************!*\ + !*** ./src/highlight-timeline/style.scss ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/data": +/*!******************************!*\ + !*** external ["wp","data"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "highlight-timeline/index": 0, +/******/ "highlight-timeline/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["highlight-timeline/style-index"], () => (__webpack_require__("./src/highlight-timeline/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/index.js.map b/plugins/carhop-blocks/build/highlight-timeline/index.js.map new file mode 100644 index 0000000..154c915 --- /dev/null +++ b/plugins/carhop-blocks/build/highlight-timeline/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"highlight-timeline/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AACqB;AAAA;AAE7B,SAASQ,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAMC,KAAK,GAAGT,0DAAS,CACrBU,MAAM,IAAK;IACX,MAAM;MAAEC;IAAU,CAAC,GAAGD,MAAM,CAAC,mBAAmB,CAAC;IACjD,MAAME,WAAW,GAAGD,SAAS,CAACH,KAAK,CAACK,QAAQ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;;;;;;;;;;;;;;;;;ACjBmE;AAAA;AAEtD,SAASA,IAAIA,CAAC;EAAEpB;AAAW,CAAC,EAAE;EAC5C,oBAAOJ,sDAAA,CAACH,gEAAW,CAACoC,OAAO,IAAE,CAAC;AAC/B,C;;;;;;;;;;;ACJA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/highlight-timeline/edit.js","webpack://carhop-blocks/./src/highlight-timeline/editor.scss","webpack://carhop-blocks/./src/highlight-timeline/index.js","webpack://carhop-blocks/./src/highlight-timeline/save.js","webpack://carhop-blocks/./src/highlight-timeline/style.scss?c818","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"data\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { useSelect } from \"@wordpress/data\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst years = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlocks } = select(\"core/block-editor\");\n\t\t\tconst childBlocks = getBlocks(props.clientId) || [];\n\t\t\treturn childBlocks\n\t\t\t\t.filter((b) => b.name === \"carhop-blocks/highlight-timeline-step\")\n\t\t\t\t.map((b) => b.attributes?.year)\n\t\t\t\t.filter((y) => y !== undefined && y !== null && y !== \"\");\n\t\t},\n\t\t[props.clientId]\n\t);\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\n\t\t\t
    \n\t\t\t\t{years.map((y, idx) => (\n\t\t\t\t\t
  • \n\t\t\t\t\t\t{y}\n\t\t\t\t\t
  • \n\t\t\t\t))}\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"highlight-timeline/index\": 0,\n\t\"highlight-timeline/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"highlight-timeline/style-index\"], () => (__webpack_require__(\"./src/highlight-timeline/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","useSelect","jsx","_jsx","jsxs","_jsxs","Edit","attributes","setAttributes","props","years","select","getBlocks","childBlocks","clientId","filter","b","name","map","year","y","undefined","className","children","allowedBlocks","idx","registerBlockType","save","metadata","icon","src","width","height","viewBox","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/style-index.css b/plugins/carhop-blocks/build/highlight-timeline/style-index.css index 4fe6fc4..b98dd12 100644 --- a/plugins/carhop-blocks/build/highlight-timeline/style-index.css +++ b/plugins/carhop-blocks/build/highlight-timeline/style-index.css @@ -1 +1,17 @@ -.highlight-timeline__years{display:flex;gap:20px;width:100%}.highlight-timeline__years li{border-bottom:1px solid #fff;color:#fff;flex-grow:1;list-style:none!important;text-align:center} +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/highlight-timeline/style.scss ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.highlight-timeline__years { + width: 100%; + display: flex; + gap: 20px; +} +.highlight-timeline__years li { + color: #fff; + flex-grow: 1; + text-align: center; + list-style: none !important; + border-bottom: 1px solid #fff; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/style-index.css.map b/plugins/carhop-blocks/build/highlight-timeline/style-index.css.map new file mode 100644 index 0000000..b69b788 --- /dev/null +++ b/plugins/carhop-blocks/build/highlight-timeline/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"highlight-timeline/style-index.css","mappings":";;;AACC;EACC;EAEA;EAEA;AAFF;AAGE;EACC;EACA;EACA;EACA;EACA;AADH,C","sources":["webpack://carhop-blocks/./src/highlight-timeline/style.scss"],"sourcesContent":[".highlight-timeline {\n\t&__years {\n\t\twidth: 100%;\n\n\t\tdisplay: flex;\n\n\t\tgap: 20px;\n\t\tli {\n\t\t\tcolor: #fff;\n\t\t\tflex-grow: 1;\n\t\t\ttext-align: center;\n\t\t\tlist-style: none !important;\n\t\t\tborder-bottom: 1px solid #fff;\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/view.js b/plugins/carhop-blocks/build/highlight-timeline/view.js index a6eeb63..a21f0d7 100644 --- a/plugins/carhop-blocks/build/highlight-timeline/view.js +++ b/plugins/carhop-blocks/build/highlight-timeline/view.js @@ -1 +1,62 @@ -window.addEventListener("DOMContentLoaded",e=>{!function(){const e=document.querySelector(".wp-block-carhop-blocks-highlight-timeline");if(!e)return;const t=e.querySelectorAll(".swiper-slide"),n=(t.length,Array.from(t).map(e=>{const t=e.querySelector(".highlight-timeline-step__year");if(t&&t.textContent)return t.textContent.trim();const n=(e.id||"").match(/^year-(.+)$/);return n?n[1]:""}));highlightTimelineSwiper=new Swiper(".highlight-timeline-swiper",{slidesPerView:1,spaceBetween:30,loop:!0,grabCursor:!0,keyboard:{enabled:!0,onlyInViewport:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},mousewheel:{enabled:!0,forceToAxis:!0,sensitivity:1,releaseOnEdges:!1},pagination:{el:".swiper-pagination",clickable:!0,renderBullet:function(e,t){var i;return``}}})}()}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!****************************************!*\ + !*** ./src/highlight-timeline/view.js ***! + \****************************************/ +function initiateSwiper() { + const currentBlock = document.querySelector(".wp-block-carhop-blocks-highlight-timeline"); + if (!currentBlock) return; + + // const swiperFraction = currentBlock.querySelector( + // ".swiper-pagination-fraction" + // ); + const slides = currentBlock.querySelectorAll(".swiper-slide"); + const slideCount = slides.length; + const years = Array.from(slides).map(slide => { + const yearEl = slide.querySelector(".highlight-timeline-step__year"); + if (yearEl && yearEl.textContent) { + return yearEl.textContent.trim(); + } + const id = slide.id || ""; + const match = id.match(/^year-(.+)$/); + return match ? match[1] : ""; + }); + highlightTimelineSwiper = new Swiper(".highlight-timeline-swiper", { + slidesPerView: 1, + spaceBetween: 30, + loop: true, + grabCursor: true, + keyboard: { + enabled: true, + onlyInViewport: true + }, + navigation: { + nextEl: ".swiper-button-next", + prevEl: ".swiper-button-prev" + }, + mousewheel: { + enabled: true, + forceToAxis: true, + // Force le scroll dans l'axe du slider + sensitivity: 1, + // Sensibilité du scroll (1 = normal) + releaseOnEdges: false // Continue le scroll même aux bords + }, + pagination: { + el: ".swiper-pagination", + clickable: true, + renderBullet: function (index, className) { + var _years$index; + return ``; + } + } + }); +} +window.addEventListener("DOMContentLoaded", event => { + initiateSwiper(); + + // swiperCheckBreakpoints(); + // window.addEventListener("resize", swiperCheckBreakpoints); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/highlight-timeline/view.js.map b/plugins/carhop-blocks/build/highlight-timeline/view.js.map new file mode 100644 index 0000000..bf653aa --- /dev/null +++ b/plugins/carhop-blocks/build/highlight-timeline/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"highlight-timeline/view.js","mappings":";;;;AAAA,SAASA,cAAcA,CAAA,EAAG;EACzB,MAAMC,YAAY,GAAGC,QAAQ,CAACC,aAAa,CAC1C,4CACD,CAAC;EACD,IAAI,CAACF,YAAY,EAAE;;EAEnB;EACA;EACA;EACA,MAAMG,MAAM,GAAGH,YAAY,CAACI,gBAAgB,CAAC,eAAe,CAAC;EAC7D,MAAMC,UAAU,GAAGF,MAAM,CAACG,MAAM;EAChC,MAAMC,KAAK,GAAGC,KAAK,CAACC,IAAI,CAACN,MAAM,CAAC,CAACO,GAAG,CAAEC,KAAK,IAAK;IAC/C,MAAMC,MAAM,GAAGD,KAAK,CAACT,aAAa,CAAC,gCAAgC,CAAC;IACpE,IAAIU,MAAM,IAAIA,MAAM,CAACC,WAAW,EAAE;MACjC,OAAOD,MAAM,CAACC,WAAW,CAACC,IAAI,CAAC,CAAC;IACjC;IACA,MAAMC,EAAE,GAAGJ,KAAK,CAACI,EAAE,IAAI,EAAE;IACzB,MAAMC,KAAK,GAAGD,EAAE,CAACC,KAAK,CAAC,aAAa,CAAC;IACrC,OAAOA,KAAK,GAAGA,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE;EAC7B,CAAC,CAAC;EAEFC,uBAAuB,GAAG,IAAIC,MAAM,CAAC,4BAA4B,EAAE;IAClEC,aAAa,EAAE,CAAC;IAChBC,YAAY,EAAE,EAAE;IAChBC,IAAI,EAAE,IAAI;IACVC,UAAU,EAAE,IAAI;IAChBC,QAAQ,EAAE;MACTC,OAAO,EAAE,IAAI;MACbC,cAAc,EAAE;IACjB,CAAC;IACDC,UAAU,EAAE;MACXC,MAAM,EAAE,qBAAqB;MAC7BC,MAAM,EAAE;IACT,CAAC;IACDC,UAAU,EAAE;MACXL,OAAO,EAAE,IAAI;MACbM,WAAW,EAAE,IAAI;MAAE;MACnBC,WAAW,EAAE,CAAC;MAAE;MAChBC,cAAc,EAAE,KAAK,CAAE;IACxB,CAAC;IACDC,UAAU,EAAE;MACXC,EAAE,EAAE,oBAAoB;MACxBC,SAAS,EAAE,IAAI;MACfC,YAAY,EAAE,SAAAA,CAAUC,KAAK,EAAEC,SAAS,EAAE;QAAA,IAAAC,YAAA;QACzC,OAAO,kBAAkBD,SAAS,MAAAC,YAAA,GAAKhC,KAAK,CAAC8B,KAAK,CAAC,cAAAE,YAAA,cAAAA,YAAA,GAAI,EAAE,WAAW;MACrE;IACD;EACD,CAAC,CAAC;AACH;AAEAC,MAAM,CAACC,gBAAgB,CAAC,kBAAkB,EAAGC,KAAK,IAAK;EACtD3C,cAAc,CAAC,CAAC;;EAEhB;EACA;AACD,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/highlight-timeline/view.js"],"sourcesContent":["function initiateSwiper() {\n\tconst currentBlock = document.querySelector(\n\t\t\".wp-block-carhop-blocks-highlight-timeline\"\n\t);\n\tif (!currentBlock) return;\n\n\t// const swiperFraction = currentBlock.querySelector(\n\t// \t\".swiper-pagination-fraction\"\n\t// );\n\tconst slides = currentBlock.querySelectorAll(\".swiper-slide\");\n\tconst slideCount = slides.length;\n\tconst years = Array.from(slides).map((slide) => {\n\t\tconst yearEl = slide.querySelector(\".highlight-timeline-step__year\");\n\t\tif (yearEl && yearEl.textContent) {\n\t\t\treturn yearEl.textContent.trim();\n\t\t}\n\t\tconst id = slide.id || \"\";\n\t\tconst match = id.match(/^year-(.+)$/);\n\t\treturn match ? match[1] : \"\";\n\t});\n\n\thighlightTimelineSwiper = new Swiper(\".highlight-timeline-swiper\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 30,\n\t\tloop: true,\n\t\tgrabCursor: true,\n\t\tkeyboard: {\n\t\t\tenabled: true,\n\t\t\tonlyInViewport: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".swiper-button-next\",\n\t\t\tprevEl: \".swiper-button-prev\",\n\t\t},\n\t\tmousewheel: {\n\t\t\tenabled: true,\n\t\t\tforceToAxis: true, // Force le scroll dans l'axe du slider\n\t\t\tsensitivity: 1, // Sensibilité du scroll (1 = normal)\n\t\t\treleaseOnEdges: false, // Continue le scroll même aux bords\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".swiper-pagination\",\n\t\t\tclickable: true,\n\t\t\trenderBullet: function (index, className) {\n\t\t\t\treturn ``;\n\t\t\t},\n\t\t},\n\t});\n}\n\nwindow.addEventListener(\"DOMContentLoaded\", (event) => {\n\tinitiateSwiper();\n\n\t// swiperCheckBreakpoints();\n\t// window.addEventListener(\"resize\", swiperCheckBreakpoints);\n});\n"],"names":["initiateSwiper","currentBlock","document","querySelector","slides","querySelectorAll","slideCount","length","years","Array","from","map","slide","yearEl","textContent","trim","id","match","highlightTimelineSwiper","Swiper","slidesPerView","spaceBetween","loop","grabCursor","keyboard","enabled","onlyInViewport","navigation","nextEl","prevEl","mousewheel","forceToAxis","sensitivity","releaseOnEdges","pagination","el","clickable","renderBullet","index","className","_years$index","window","addEventListener","event"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/index.css b/plugins/carhop-blocks/build/image-stack/index.css index e8dfb0a..4bc8374 100644 --- a/plugins/carhop-blocks/build/image-stack/index.css +++ b/plugins/carhop-blocks/build/image-stack/index.css @@ -1 +1,53 @@ -.wp-block-carhop-blocks-image-stack{overflow:visible}.wp-block-carhop-blocks-image-stack .image-stack-placeholder{align-items:center;background-color:hsla(0,0%,94%,.5);background-color:red;border:2px dashed #ccc;display:flex;height:100%;justify-content:center;width:100%}.wp-block-carhop-blocks-image-stack .image-stack-item{cursor:pointer;transition:opacity .2s ease}.wp-block-carhop-blocks-image-stack .image-stack-item:hover{opacity:.9}.wp-block-carhop-blocks-image-stack .image-stack-item.is-selected{outline:3px solid #007cba;outline-offset:-3px;z-index:10}.image-stack-image-preview{margin-bottom:16px}.image-stack-image-preview img{border-radius:4px;display:block;height:auto;width:100%}.image-stack-image-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.image-stack-image-controls .components-button{flex:1;justify-content:center;min-width:80px} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/image-stack/editor.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + */ +.wp-block-carhop-blocks-image-stack { + overflow: visible; +} +.wp-block-carhop-blocks-image-stack .image-stack-placeholder { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + background-color: rgba(240, 240, 240, 0.5); + background-color: red; + border: 2px dashed #ccc; +} +.wp-block-carhop-blocks-image-stack .image-stack-item { + cursor: pointer; + transition: opacity 0.2s ease; +} +.wp-block-carhop-blocks-image-stack .image-stack-item:hover { + opacity: 0.9; +} +.wp-block-carhop-blocks-image-stack .image-stack-item.is-selected { + outline: 3px solid #007cba; + outline-offset: -3px; + z-index: 10; +} +.image-stack-image-preview { + margin-bottom: 16px; +} +.image-stack-image-preview img { + width: 100%; + height: auto; + display: block; + border-radius: 4px; +} +.image-stack-image-controls { + display: flex; + gap: 8px; + margin-top: 16px; + flex-wrap: wrap; +} +.image-stack-image-controls .components-button { + flex: 1; + min-width: 80px; + justify-content: center; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/index.css.map b/plugins/carhop-blocks/build/image-stack/index.css.map new file mode 100644 index 0000000..43802eb --- /dev/null +++ b/plugins/carhop-blocks/build/image-stack/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"image-stack/index.css","mappings":";;;AAAA;;EAAA;AAIA;EACC;AAAD;AACC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACF;AAEC;EACC;EACA;AAAF;AAEE;EACC;AAAH;AAGE;EACC;EACA;EACA;AADH;AAMA;EACC;AAHD;AAKC;EACC;EACA;EACA;EACA;AAHF;AAOA;EACC;EACA;EACA;EACA;AAJD;AAMC;EACC;EACA;EACA;AAJF,C","sources":["webpack://carhop-blocks/./src/image-stack/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n */\n\n.wp-block-carhop-blocks-image-stack {\n\toverflow: visible;\n\t.image-stack-placeholder {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: rgba(240, 240, 240, 0.5);\n\t\tbackground-color: red;\n\t\tborder: 2px dashed #ccc;\n\t}\n\n\t.image-stack-item {\n\t\tcursor: pointer;\n\t\ttransition: opacity 0.2s ease;\n\n\t\t&:hover {\n\t\t\topacity: 0.9;\n\t\t}\n\n\t\t&.is-selected {\n\t\t\toutline: 3px solid #007cba;\n\t\t\toutline-offset: -3px;\n\t\t\tz-index: 10;\n\t\t}\n\t}\n}\n\n.image-stack-image-preview {\n\tmargin-bottom: 16px;\n\n\timg {\n\t\twidth: 100%;\n\t\theight: auto;\n\t\tdisplay: block;\n\t\tborder-radius: 4px;\n\t}\n}\n\n.image-stack-image-controls {\n\tdisplay: flex;\n\tgap: 8px;\n\tmargin-top: 16px;\n\tflex-wrap: wrap;\n\n\t.components-button {\n\t\tflex: 1;\n\t\tmin-width: 80px;\n\t\tjustify-content: center;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/index.js b/plugins/carhop-blocks/build/image-stack/index.js index a7f201e..fe8e1f8 100644 --- a/plugins/carhop-blocks/build/image-stack/index.js +++ b/plugins/carhop-blocks/build/image-stack/index.js @@ -1 +1,602 @@ -(()=>{"use strict";var e,a={4864:()=>{const e=window.wp.blocks,a=window.wp.i18n,t=window.wp.blockEditor,i=window.wp.components,l=window.wp.element,s=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/image-stack"}');(0,e.registerBlockType)(n.UU,{edit:function({attributes:e,setAttributes:n}){const{images:o,height:r}=e,[c,d]=(0,l.useState)(null),m=(0,t.useBlockProps)(),g=e=>{const a=e.map(e=>({id:e.id,url:e.url,alt:e.alt||"",focalPoint:{x:.5,y:.5},scale:.8,rotation:0}));n({images:[...o,...a]})},h=(e,a)=>{const t=[...o],i=e+a;i>=0&&i{const a=e.focalPoint||{x:.5,y:.5},t=e.scale||.8,i=e.rotation||0;return{left:100*a.x+"%",top:100*a.y+"%",transform:` rotate(${i}deg) scale(${t})`}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.BlockControls,{children:(0,s.jsx)(i.ToolbarGroup,{children:(0,s.jsx)(t.MediaUploadCheck,{children:(0,s.jsx)(t.MediaUpload,{onSelect:g,allowedTypes:["image"],multiple:!0,gallery:!0,value:o.map(e=>e.id),render:({open:e})=>(0,s.jsx)(i.ToolbarButton,{onClick:e,children:(0,a.__)("Add Images","image-stack")})})})})}),(0,s.jsxs)(t.InspectorControls,{children:[(0,s.jsx)(i.PanelBody,{title:(0,a.__)("Container Settings","image-stack"),children:(0,s.jsx)(i.RangeControl,{label:(0,a.__)("Container Height","image-stack"),value:r,onChange:e=>n({height:e}),min:200,max:800,step:10})}),o.length>0&&(0,s.jsx)(i.PanelBody,{title:(0,a.__)("Images","image-stack"),initialOpen:!0,children:o.map((e,t)=>(0,s.jsxs)(i.PanelBody,{title:`${(0,a.__)("Image","image-stack")} ${t+1}`,initialOpen:c===t,onToggle:()=>d(c===t?null:t),children:[(0,s.jsx)("div",{className:"image-stack-image-preview",children:(0,s.jsx)("img",{src:e.url,alt:e.alt})}),(0,s.jsx)(i.FocalPointPicker,{label:(0,a.__)("Focal Point","image-stack"),url:e.url,value:e.focalPoint||{x:.5,y:.5},onChange:e=>((e,a)=>{const t=[...o];t[e]={...t[e],focalPoint:a},n({images:t})})(t,e)}),(0,s.jsx)(i.RangeControl,{label:(0,a.__)("Scale","image-stack"),value:e.scale||.8,onChange:e=>((e,a)=>{const t=[...o];t[e]={...t[e],scale:a},n({images:t})})(t,e),min:.1,max:3,step:.05}),(0,s.jsx)(i.RangeControl,{label:(0,a.__)("Rotation (deg)","image-stack"),value:e.rotation||0,onChange:e=>((e,a)=>{const t=[...o];t[e]={...t[e],rotation:a},n({images:t})})(t,e),min:-180,max:180,step:1}),(0,s.jsxs)("div",{className:"image-stack-image-controls",children:[(0,s.jsx)(i.Button,{isSecondary:!0,isSmall:!0,disabled:0===t,onClick:()=>h(t,-1),children:(0,a.__)("↑ Move Up","image-stack")}),(0,s.jsx)(i.Button,{isSecondary:!0,isSmall:!0,disabled:t===o.length-1,onClick:()=>h(t,1),children:(0,a.__)("↓ Move Down","image-stack")}),(0,s.jsx)(i.Button,{isDestructive:!0,isSmall:!0,onClick:()=>(e=>{const a=o.filter((a,t)=>t!==e);n({images:a}),c===e&&d(null)})(t),children:(0,a.__)("Remove","image-stack")})]})]},e.id))})]}),(0,s.jsx)("div",{...m,children:(0,s.jsxs)("div",{className:"image-stack-container",style:{height:`${r}px`},children:[0===o.length&&(0,s.jsx)("div",{className:"image-stack-placeholder",children:(0,s.jsx)(t.MediaUploadCheck,{children:(0,s.jsx)(t.MediaUpload,{onSelect:g,allowedTypes:["image"],multiple:!0,gallery:!0,render:({open:e})=>(0,s.jsx)(i.Button,{variant:"primary",onClick:e,children:(0,a.__)("Ajouter une Image","image-stack")})})})}),o.map((e,a)=>(0,s.jsx)("div",{className:"image-stack-item "+(c===a?"is-selected":""),onClick:()=>d(a),role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d(a)},style:p(e),children:(0,s.jsx)("img",{src:e.url,alt:e.alt})},e.id))]})})]})},save:function({attributes:e}){const{images:a,height:i}=e,l=t.useBlockProps.save(),n=e=>{const a=e.focalPoint||{x:.5,y:.5},t=e.scale||.8,i=e.rotation||0;return{left:100*a.x+"%",top:100*a.y+"%",transform:`rotate(${i}deg) scale(${t})`}};return(0,s.jsx)("div",{...l,children:(0,s.jsx)("div",{className:"image-stack-container",style:{height:`${i}px`},children:a.map(e=>(0,s.jsx)("div",{className:"image-stack-item",style:n(e),children:(0,s.jsx)("img",{src:e.url,alt:e.alt})},e.id))})})}})}},t={};function i(e){var l=t[e];if(void 0!==l)return l.exports;var s=t[e]={exports:{}};return a[e](s,s.exports,i),s.exports}i.m=a,e=[],i.O=(a,t,l,s)=>{if(!t){var n=1/0;for(d=0;d=s)&&Object.keys(i.O).every(e=>i.O[e](t[r]))?t.splice(r--,1):(o=!1,s0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,l,s]},i.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={6788:0,7020:0};i.O.j=a=>0===e[a];var a=(a,t)=>{var l,s,[n,o,r]=t,c=0;if(n.some(a=>0!==e[a])){for(l in o)i.o(o,l)&&(i.m[l]=o[l]);if(r)var d=r(i)}for(a&&a(t);ci(4864));l=i.O(l)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/image-stack/block.json": +/*!************************************!*\ + !*** ./src/image-stack/block.json ***! + \************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/image-stack","version":"0.1.0","title":"Image Stack (Focal Point)","category":"carhop-blocks","icon":"images-alt2","description":"Layer multiple images with individual focal point positioning.","example":{"attributes":{"images":[{"id":1,"url":"https://images.unsplash.com/photo-1506905925346-21bda4d32df4","alt":"Mountain landscape","focalPoint":{"x":0.5,"y":0.3},"scale":0.8},{"id":2,"url":"https://images.unsplash.com/photo-1511884642898-4c92249e20b6","alt":"Forest scene","focalPoint":{"x":0.7,"y":0.6},"scale":0.6}],"height":400}},"attributes":{"images":{"type":"array","default":[],"items":{"type":"object"}},"height":{"type":"number","default":400}},"supports":{"html":false,"align":["wide","full"],"spacing":{"margin":true,"padding":true}},"textdomain":"image-stack","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'); + +/***/ }), + +/***/ "./src/image-stack/edit.js": +/*!*********************************!*\ + !*** ./src/image-stack/edit.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./editor.scss */ "./src/image-stack/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + images, + height + } = attributes; + const [selectedImageIndex, setSelectedImageIndex] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)(null); + const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(); + const onSelectImages = media => { + const newImages = media.map(img => ({ + id: img.id, + url: img.url, + alt: img.alt || "", + focalPoint: { + x: 0.5, + y: 0.5 + }, + scale: 0.8, + rotation: 0 + })); + setAttributes({ + images: [...images, ...newImages] + }); + }; + const updateImageFocalPoint = (index, focalPoint) => { + const newImages = [...images]; + newImages[index] = { + ...newImages[index], + focalPoint + }; + setAttributes({ + images: newImages + }); + }; + const updateImageScale = (index, scale) => { + const newImages = [...images]; + newImages[index] = { + ...newImages[index], + scale + }; + setAttributes({ + images: newImages + }); + }; + const updateImageRotation = (index, rotation) => { + const newImages = [...images]; + newImages[index] = { + ...newImages[index], + rotation + }; + setAttributes({ + images: newImages + }); + }; + const removeImage = index => { + const newImages = images.filter((_, i) => i !== index); + setAttributes({ + images: newImages + }); + if (selectedImageIndex === index) { + setSelectedImageIndex(null); + } + }; + const moveImage = (index, direction) => { + const newImages = [...images]; + const newIndex = index + direction; + if (newIndex >= 0 && newIndex < images.length) { + [newImages[index], newImages[newIndex]] = [newImages[newIndex], newImages[index]]; + setAttributes({ + images: newImages + }); + setSelectedImageIndex(newIndex); + } + }; + const getImageStyle = image => { + const focalPoint = image.focalPoint || { + x: 0.5, + y: 0.5 + }; + const scale = image.scale || 0.8; + const rotation = image.rotation || 0; + return { + left: `${focalPoint.x * 100}%`, + top: `${focalPoint.y * 100}%`, + transform: ` rotate(${rotation}deg) scale(${scale})` + }; + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarGroup, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUploadCheck, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUpload, { + onSelect: onSelectImages, + allowedTypes: ["image"], + multiple: true, + gallery: true, + value: images.map(img => img.id), + render: ({ + open + }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToolbarButton, { + onClick: open, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Add Images", "image-stack") + }) + }) + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Container Settings", "image-stack"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RangeControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Container Height", "image-stack"), + value: height, + onChange: value => setAttributes({ + height: value + }), + min: 200, + max: 800, + step: 10 + }) + }), images.length > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Images", "image-stack"), + initialOpen: true, + children: images.map((image, index) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + title: `${(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Image", "image-stack")} ${index + 1}`, + initialOpen: selectedImageIndex === index, + onToggle: () => setSelectedImageIndex(selectedImageIndex === index ? null : index), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "image-stack-image-preview", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("img", { + src: image.url, + alt: image.alt + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.FocalPointPicker, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Focal Point", "image-stack"), + url: image.url, + value: image.focalPoint || { + x: 0.5, + y: 0.5 + }, + onChange: focalPoint => updateImageFocalPoint(index, focalPoint) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RangeControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Scale", "image-stack"), + value: image.scale || 0.8, + onChange: scale => updateImageScale(index, scale), + min: 0.1, + max: 3, + step: 0.05 + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.RangeControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Rotation (deg)", "image-stack"), + value: image.rotation || 0, + onChange: rotation => updateImageRotation(index, rotation), + min: -180, + max: 180, + step: 1 + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "image-stack-image-controls", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + isSecondary: true, + isSmall: true, + disabled: index === 0, + onClick: () => moveImage(index, -1), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("↑ Move Up", "image-stack") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + isSecondary: true, + isSmall: true, + disabled: index === images.length - 1, + onClick: () => moveImage(index, 1), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("↓ Move Down", "image-stack") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + isDestructive: true, + isSmall: true, + onClick: () => removeImage(index), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remove", "image-stack") + })] + })] + }, image.id)) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + ...blockProps, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", { + className: "image-stack-container", + style: { + height: `${height}px` + }, + children: [images.length === 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: "image-stack-placeholder", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUploadCheck, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUpload, { + onSelect: onSelectImages, + allowedTypes: ["image"], + multiple: true, + gallery: true, + render: ({ + open + }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + variant: "primary", + onClick: open, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Ajouter une Image", "image-stack") + }) + }) + }) + }), images.map((image, index) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { + className: `image-stack-item ${selectedImageIndex === index ? "is-selected" : ""}`, + onClick: () => setSelectedImageIndex(index), + role: "button", + tabIndex: 0, + onKeyDown: e => { + if (e.key === "Enter" || e.key === " ") { + setSelectedImageIndex(index); + } + }, + style: getImageStyle(image), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("img", { + src: image.url, + alt: image.alt + }) + }, image.id))] + }) + })] + }); +} + +/***/ }), + +/***/ "./src/image-stack/editor.scss": +/*!*************************************!*\ + !*** ./src/image-stack/editor.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/image-stack/index.js": +/*!**********************************!*\ + !*** ./src/image-stack/index.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/image-stack/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/image-stack/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/image-stack/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/image-stack/block.json"); + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/image-stack/save.js": +/*!*********************************!*\ + !*** ./src/image-stack/save.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + images, + height + } = attributes; + const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save(); + const getImageStyle = image => { + const focalPoint = image.focalPoint || { + x: 0.5, + y: 0.5 + }; + const scale = image.scale || 0.8; + const rotation = image.rotation || 0; + return { + left: `${focalPoint.x * 100}%`, + top: `${focalPoint.y * 100}%`, + transform: `rotate(${rotation}deg) scale(${scale})` + }; + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ...blockProps, + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "image-stack-container", + style: { + height: `${height}px` + }, + children: images.map(image => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "image-stack-item", + style: getImageStyle(image), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img", { + src: image.url, + alt: image.alt + }) + }, image.id)) + }) + }); +} + +/***/ }), + +/***/ "./src/image-stack/style.scss": +/*!************************************!*\ + !*** ./src/image-stack/style.scss ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/element": +/*!*********************************!*\ + !*** external ["wp","element"] ***! + \*********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "image-stack/index": 0, +/******/ "image-stack/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["image-stack/style-index"], () => (__webpack_require__("./src/image-stack/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/index.js.map b/plugins/carhop-blocks/build/image-stack/index.js.map new file mode 100644 index 0000000..826f716 --- /dev/null +++ b/plugins/carhop-blocks/build/image-stack/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"image-stack/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAMJ;AAQF;AACyB;AACV;AAEvB;AAAA;AAER,SAASmB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGH,UAAU;EACrC,MAAM,CAACI,kBAAkB,EAAE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ACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/image-stack/edit.js","webpack://carhop-blocks/./src/image-stack/editor.scss?5c70","webpack://carhop-blocks/./src/image-stack/index.js","webpack://carhop-blocks/./src/image-stack/save.js","webpack://carhop-blocks/./src/image-stack/style.scss?0ea7","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tInspectorControls,\n\tMediaUpload,\n\tMediaUploadCheck,\n} from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tButton,\n\tFocalPointPicker,\n\tRangeControl,\n\tToolbarGroup,\n\tToolbarButton,\n} from \"@wordpress/components\";\nimport { BlockControls } from \"@wordpress/block-editor\";\nimport { useState } from \"@wordpress/element\";\n\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { images, height } = attributes;\n\tconst [selectedImageIndex, setSelectedImageIndex] = useState(null);\n\n\tconst blockProps = useBlockProps();\n\n\tconst onSelectImages = (media) => {\n\t\tconst newImages = media.map((img) => ({\n\t\t\tid: img.id,\n\t\t\turl: img.url,\n\t\t\talt: img.alt || \"\",\n\t\t\tfocalPoint: { x: 0.5, y: 0.5 },\n\t\t\tscale: 0.8,\n\t\t\trotation: 0,\n\t\t}));\n\t\tsetAttributes({ images: [...images, ...newImages] });\n\t};\n\n\tconst updateImageFocalPoint = (index, focalPoint) => {\n\t\tconst newImages = [...images];\n\t\tnewImages[index] = { ...newImages[index], focalPoint };\n\t\tsetAttributes({ images: newImages });\n\t};\n\n\tconst updateImageScale = (index, scale) => {\n\t\tconst newImages = [...images];\n\t\tnewImages[index] = { ...newImages[index], scale };\n\t\tsetAttributes({ images: newImages });\n\t};\n\n\tconst updateImageRotation = (index, rotation) => {\n\t\tconst newImages = [...images];\n\t\tnewImages[index] = { ...newImages[index], rotation };\n\t\tsetAttributes({ images: newImages });\n\t};\n\n\tconst removeImage = (index) => {\n\t\tconst newImages = images.filter((_, i) => i !== index);\n\t\tsetAttributes({ images: newImages });\n\t\tif (selectedImageIndex === index) {\n\t\t\tsetSelectedImageIndex(null);\n\t\t}\n\t};\n\n\tconst moveImage = (index, direction) => {\n\t\tconst newImages = [...images];\n\t\tconst newIndex = index + direction;\n\t\tif (newIndex >= 0 && newIndex < images.length) {\n\t\t\t[newImages[index], newImages[newIndex]] = [\n\t\t\t\tnewImages[newIndex],\n\t\t\t\tnewImages[index],\n\t\t\t];\n\t\t\tsetAttributes({ images: newImages });\n\t\t\tsetSelectedImageIndex(newIndex);\n\t\t}\n\t};\n\n\tconst getImageStyle = (image) => {\n\t\tconst focalPoint = image.focalPoint || { x: 0.5, y: 0.5 };\n\t\tconst scale = image.scale || 0.8;\n\t\tconst rotation = image.rotation || 0;\n\t\treturn {\n\t\t\tleft: `${focalPoint.x * 100}%`,\n\t\t\ttop: `${focalPoint.y * 100}%`,\n\t\t\ttransform: ` rotate(${rotation}deg) scale(${scale})`,\n\t\t};\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t img.id)}\n\t\t\t\t\t\t\trender={({ open }) => (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{__(\"Add Images\", \"image-stack\")}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ height: value })}\n\t\t\t\t\t\tmin={200}\n\t\t\t\t\t\tmax={800}\n\t\t\t\t\t\tstep={10}\n\t\t\t\t\t/>\n\t\t\t\t\n\n\t\t\t\t{images.length > 0 && (\n\t\t\t\t\t\n\t\t\t\t\t\t{images.map((image, index) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetSelectedImageIndex(\n\t\t\t\t\t\t\t\t\t\tselectedImageIndex === index ? null : index\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{image.alt}\n\t\t\t\t\t\t\t\t
\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tupdateImageFocalPoint(index, focalPoint)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t updateImageScale(index, scale)}\n\t\t\t\t\t\t\t\t\tmin={0.1}\n\t\t\t\t\t\t\t\t\tmax={3}\n\t\t\t\t\t\t\t\t\tstep={0.05}\n\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t updateImageRotation(index, rotation)}\n\t\t\t\t\t\t\t\t\tmin={-180}\n\t\t\t\t\t\t\t\t\tmax={180}\n\t\t\t\t\t\t\t\t\tstep={1}\n\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t moveImage(index, -1)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{__(\"↑ Move Up\", \"image-stack\")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t moveImage(index, 1)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{__(\"↓ Move Down\", \"image-stack\")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t removeImage(index)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{__(\"Remove\", \"image-stack\")}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t))}\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{images.length === 0 && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t{images.map((image, index) => (\n\t\t\t\t\t\t setSelectedImageIndex(index)}\n\t\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t\ttabIndex={0}\n\t\t\t\t\t\t\tonKeyDown={(e) => {\n\t\t\t\t\t\t\t\tif (e.key === \"Enter\" || e.key === \" \") {\n\t\t\t\t\t\t\t\t\tsetSelectedImageIndex(index);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tstyle={getImageStyle(image)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{image.alt}\n\t\t\t\t\t\t
\n\t\t\t\t\t))}\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { images, height } = attributes;\n\tconst blockProps = useBlockProps.save();\n\n\tconst getImageStyle = (image) => {\n\t\tconst focalPoint = image.focalPoint || { x: 0.5, y: 0.5 };\n\t\tconst scale = image.scale || 0.8;\n\t\tconst rotation = image.rotation || 0;\n\t\treturn {\n\t\t\tleft: `${focalPoint.x * 100}%`,\n\t\t\ttop: `${focalPoint.y * 100}%`,\n\t\t\ttransform: `rotate(${rotation}deg) scale(${scale})`,\n\t\t};\n\t};\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t{images.map((image) => (\n\t\t\t\t\t\n\t\t\t\t\t\t{image.alt}\n\t\t\t\t\t
\n\t\t\t\t))}\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"image-stack/index\": 0,\n\t\"image-stack/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"image-stack/style-index\"], () => (__webpack_require__(\"./src/image-stack/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InspectorControls","MediaUpload","MediaUploadCheck","PanelBody","Button","FocalPointPicker","RangeControl","ToolbarGroup","ToolbarButton","BlockControls","useState","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","images","height","selectedImageIndex","setSelectedImageIndex","blockProps","onSelectImages","media","newImages","map","img","id","url","alt","focalPoint","x","y","scale","rotation","updateImageFocalPoint","index","updateImageScale","updateImageRotation","removeImage","filter","_","i","moveImage","direction","newIndex","length","getImageStyle","image","left","top","transform","children","onSelect","allowedTypes","multiple","gallery","value","render","open","onClick","title","label","onChange","min","max","step","initialOpen","onToggle","className","src","isSecondary","isSmall","disabled","isDestructive","style","variant","role","tabIndex","onKeyDown","e","key","registerBlockType","save","metadata","name","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/style-index.css b/plugins/carhop-blocks/build/image-stack/style-index.css index 13166ec..4b955ff 100644 --- a/plugins/carhop-blocks/build/image-stack/style-index.css +++ b/plugins/carhop-blocks/build/image-stack/style-index.css @@ -1 +1,24 @@ -.wp-block-carhop-blocks-image-stack .image-stack-container{overflow:visible;position:relative;width:100%}.wp-block-carhop-blocks-image-stack .image-stack-item{position:absolute}.wp-block-carhop-blocks-image-stack .image-stack-item img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%} +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/image-stack/style.scss ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + */ +.wp-block-carhop-blocks-image-stack .image-stack-container { + position: relative; + width: 100%; + overflow: visible; +} +.wp-block-carhop-blocks-image-stack .image-stack-item { + position: absolute; +} +.wp-block-carhop-blocks-image-stack .image-stack-item img { + width: 100%; + height: 100%; + -o-object-fit: contain; + object-fit: contain; + display: block; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/image-stack/style-index.css.map b/plugins/carhop-blocks/build/image-stack/style-index.css.map new file mode 100644 index 0000000..5512a86 --- /dev/null +++ b/plugins/carhop-blocks/build/image-stack/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"image-stack/style-index.css","mappings":";;;AAAA;;;EAAA;AAMC;EACC;EACA;EACA;AADF;AAIC;EACC;AAFF;AAIE;EACC;EACA;EACA;KAAA;EACA;AAFH,C","sources":["webpack://carhop-blocks/./src/image-stack/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n */\n\n.wp-block-carhop-blocks-image-stack {\n\t.image-stack-container {\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\toverflow: visible;\n\t}\n\n\t.image-stack-item {\n\t\tposition: absolute;\n\n\t\timg {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tobject-fit: contain;\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/index.css b/plugins/carhop-blocks/build/latest-news/index.css index 8995616..65007bf 100644 --- a/plugins/carhop-blocks/build/latest-news/index.css +++ b/plugins/carhop-blocks/build/latest-news/index.css @@ -1 +1,13 @@ -.wp-block-carhop-plugin-latest-news{border:1px dotted red} +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/latest-news/editor.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-carhop-plugin-latest-news { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/index.css.map b/plugins/carhop-blocks/build/latest-news/index.css.map new file mode 100644 index 0000000..fac15fd --- /dev/null +++ b/plugins/carhop-blocks/build/latest-news/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"latest-news/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/latest-news/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-carhop-plugin-latest-news {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/index.js b/plugins/carhop-blocks/build/latest-news/index.js index 1c7aea3..8916dac 100644 --- a/plugins/carhop-blocks/build/latest-news/index.js +++ b/plugins/carhop-blocks/build/latest-news/index.js @@ -1 +1,315 @@ -(()=>{"use strict";var r,e={8878:()=>{const r=window.wp.blocks,e=window.wp.i18n,o=window.wp.blockEditor,a=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-plugin/latest-news"}');(0,r.registerBlockType)(l.UU,{icon:{src:(0,a.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"m13.6069,24.44496l-12.82407,12.82407a1.40154,1.40154 0 1 0 1.97617,1.97617l12.82407,-12.82407l-1.97617,-1.97617z"}),(0,a.jsx)("path",{d:"m39.19898,9.93905l-9.10999,-9.10999a3.01331,3.01331 0 0 0 -4.20461,4.20461a0.23826,0.23826 0 0 1 0,0.29432l-5.03152,5.03152a3.62998,3.62998 0 0 1 -4.54098,0.60266a6.40503,6.40503 0 0 0 -8.18498,0.74281l-1.62578,1.65381a1.40154,1.40154 0 0 0 0,1.94814l18.21999,18.21999a1.40154,1.40154 0 0 0 1.97617,0l1.65381,-1.65381a6.40503,6.40503 0 0 0 0.71478,-8.15695a3.62998,3.62998 0 0 1 0.60266,-4.54098l4.97546,-4.97546a0.23826,0.23826 0 0 1 0.29432,0a3.01331,3.01331 0 0 0 4.20461,-4.20461l0.05606,-0.05606z"})]})}),foreground:"#136f63"},edit:function(){return(0,a.jsx)("p",{...(0,o.useBlockProps)(),children:(0,e.__)("Dernières actualités – hello from the editor!","latest-news")})}})}},o={};function a(r){var l=o[r];if(void 0!==l)return l.exports;var t=o[r]={exports:{}};return e[r](t,t.exports,a),t.exports}a.m=e,r=[],a.O=(e,o,l,t)=>{if(!o){var i=1/0;for(p=0;p=t)&&Object.keys(a.O).every(r=>a.O[r](o[s]))?o.splice(s--,1):(n=!1,t0&&r[p-1][2]>t;p--)r[p]=r[p-1];r[p]=[o,l,t]},a.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={2639:0,2183:0};a.O.j=e=>0===r[e];var e=(e,o)=>{var l,t,[i,n,s]=o,c=0;if(i.some(e=>0!==r[e])){for(l in n)a.o(n,l)&&(a.m[l]=n[l]);if(s)var p=s(a)}for(e&&e(o);ca(8878));l=a.O(l)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/latest-news/block.json": +/*!************************************!*\ + !*** ./src/latest-news/block.json ***! + \************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-plugin/latest-news","version":"0.1.0","title":"Dernières actualités","category":"carhop-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false},"textdomain":"latest-news","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/latest-news/edit.js": +/*!*********************************!*\ + !*** ./src/latest-news/edit.js ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/latest-news/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Dernières actualités – hello from the editor!", "latest-news") + }); +} + +/***/ }), + +/***/ "./src/latest-news/editor.scss": +/*!*************************************!*\ + !*** ./src/latest-news/editor.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/latest-news/index.js": +/*!**********************************!*\ + !*** ./src/latest-news/index.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/latest-news/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/latest-news/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/latest-news/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", { + width: "40", + height: "40", + viewBox: "0 0 40 40", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("g", { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", { + d: "m13.6069,24.44496l-12.82407,12.82407a1.40154,1.40154 0 1 0 1.97617,1.97617l12.82407,-12.82407l-1.97617,-1.97617z" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", { + d: "m39.19898,9.93905l-9.10999,-9.10999a3.01331,3.01331 0 0 0 -4.20461,4.20461a0.23826,0.23826 0 0 1 0,0.29432l-5.03152,5.03152a3.62998,3.62998 0 0 1 -4.54098,0.60266a6.40503,6.40503 0 0 0 -8.18498,0.74281l-1.62578,1.65381a1.40154,1.40154 0 0 0 0,1.94814l18.21999,18.21999a1.40154,1.40154 0 0 0 1.97617,0l1.65381,-1.65381a6.40503,6.40503 0 0 0 0.71478,-8.15695a3.62998,3.62998 0 0 1 0.60266,-4.54098l4.97546,-4.97546a0.23826,0.23826 0 0 1 0.29432,0a3.01331,3.01331 0 0 0 4.20461,-4.20461l0.05606,-0.05606z" + })] + }) + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/latest-news/style.scss": +/*!************************************!*\ + !*** ./src/latest-news/style.scss ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "latest-news/index": 0, +/******/ "latest-news/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["latest-news/style-index"], () => (__webpack_require__("./src/latest-news/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/index.js.map b/plugins/carhop-blocks/build/latest-news/index.js.map new file mode 100644 index 0000000..7af60d3 --- /dev/null +++ b/plugins/carhop-blocks/build/latest-news/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"latest-news/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACjC;AAAA;AAER,SAASI,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAAOF,sEAAa,CAAC,CAAC;IAAAI,QAAA,EACpBL,mDAAE,CAAC,+CAA+C,EAAE,aAAa;EAAC,CACjE,CAAC;AAEN,C;;;;;;;;;;;ACVA;;;;;;;;;;;;;;;;;;;ACAsD;AAChC;AAEI;AACU;AAAA;AAEpCM,oEAAiB,CAACC,6CAAa,EAAE;EAChCI,IAAI,EAAE;IACLC,GAAG,eACFT,sDAAA;MAAKU,KAAK,EAAC,IAAI;MAACC,MAAM,EAAC,IAAI;MAACC,OAAO,EAAC,WAAW;MAAAV,QAAA,eAC9CI,uDAAA;QAAAJ,QAAA,gBACCF,sDAAA;UAAMa,CAAC,EAAC;QAAkH,CAAE,CAAC,eAC7Hb,sDAAA;UAAMa,CAAC,EAAC;QAAuf,CAAE,CAAC;MAAA,CAChgB;IAAC,CACA,CACL;IACDC,UAAU,EAAE;EACb,CAAC;EACDC,IAAI,EAAEd,6CAAIA;AACX,CAAC,CAAC,C;;;;;;;;;;;ACnBF;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/latest-news/edit.js","webpack://carhop-blocks/./src/latest-news/editor.scss?0cb6","webpack://carhop-blocks/./src/latest-news/index.js","webpack://carhop-blocks/./src/latest-news/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit() {\n\treturn (\n\t\t

\n\t\t\t{__(\"Dernières actualités – hello from the editor!\", \"latest-news\")}\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"latest-news/index\": 0,\n\t\"latest-news/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"latest-news/style-index\"], () => (__webpack_require__(\"./src/latest-news/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","jsx","_jsx","Edit","children","registerBlockType","metadata","jsxs","_jsxs","name","icon","src","width","height","viewBox","d","foreground","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/style-index.css b/plugins/carhop-blocks/build/latest-news/style-index.css index 8b13789..f209d84 100644 --- a/plugins/carhop-blocks/build/latest-news/style-index.css +++ b/plugins/carhop-blocks/build/latest-news/style-index.css @@ -1 +1,4 @@ +/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/latest-news/style.scss ***! + \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/latest-news/view.js b/plugins/carhop-blocks/build/latest-news/view.js index 0cfdb54..73c302d 100644 --- a/plugins/carhop-blocks/build/latest-news/view.js +++ b/plugins/carhop-blocks/build/latest-news/view.js @@ -1 +1,29 @@ -document.addEventListener("DOMContentLoaded",function(){new Swiper(".latest-news-swiper",{slidesPerView:1,spaceBetween:30,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3}}})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!*********************************!*\ + !*** ./src/latest-news/view.js ***! + \*********************************/ +document.addEventListener("DOMContentLoaded", function () { + new Swiper(".latest-news-swiper", { + slidesPerView: 1, + spaceBetween: 30, + pagination: { + el: ".swiper-pagination", + clickable: true + }, + navigation: { + nextEl: ".swiper-button-next", + prevEl: ".swiper-button-prev" + }, + breakpoints: { + 640: { + slidesPerView: 2 + }, + 1024: { + slidesPerView: 3 + } + } + }); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/latest-news/view.js.map b/plugins/carhop-blocks/build/latest-news/view.js.map new file mode 100644 index 0000000..51b7f54 --- /dev/null +++ b/plugins/carhop-blocks/build/latest-news/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"latest-news/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;EACzD,IAAIC,MAAM,CAAC,qBAAqB,EAAE;IACjCC,aAAa,EAAE,CAAC;IAChBC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE;MACXC,EAAE,EAAE,oBAAoB;MACxBC,SAAS,EAAE;IACZ,CAAC;IACDC,UAAU,EAAE;MACXC,MAAM,EAAE,qBAAqB;MAC7BC,MAAM,EAAE;IACT,CAAC;IACDC,WAAW,EAAE;MACZ,GAAG,EAAE;QACJR,aAAa,EAAE;MAChB,CAAC;MACD,IAAI,EAAE;QACLA,aAAa,EAAE;MAChB;IACD;EACD,CAAC,CAAC;AACH,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/latest-news/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\n\tnew Swiper(\".latest-news-swiper\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 30,\n\t\tpagination: {\n\t\t\tel: \".swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".swiper-button-next\",\n\t\t\tprevEl: \".swiper-button-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t640: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n});\n"],"names":["document","addEventListener","Swiper","slidesPerView","spaceBetween","pagination","el","clickable","navigation","nextEl","prevEl","breakpoints"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/index.js b/plugins/carhop-blocks/build/localisation-map/index.js index 8ee6096..f320ba2 100644 --- a/plugins/carhop-blocks/build/localisation-map/index.js +++ b/plugins/carhop-blocks/build/localisation-map/index.js @@ -1 +1,699 @@ -(()=>{var e,t={1458:()=>{const e={apiKey:"AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk",center:{lat:50.61036915572659,lng:4.148529499893204},zoom:15,marker:{lat:50.61036915386491,lng:4.151615298397132,title:"Carhop",address:"Av. de la Houssière 80, 7090 Braine-le-Comte",placeId:"ChIJ41pZLUq1w0cRjXw8zlHnvXI",color:"green"},styles:[{featureType:"administrative",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#ffffff"},{gamma:"1.00"},{lightness:"0"},{saturation:"0"},{visibility:"on"},{weight:"1.5"}]},{featureType:"administrative",elementType:"labels.text.stroke",stylers:[{color:"#19464b"},{weight:"2"}]},{featureType:"administrative.land_parcel",elementType:"geometry",stylers:[{color:"#19464b"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#19464b"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.natural",elementType:"labels.text.fill",stylers:[{color:"#ffffff"},{visibility:"on"}]},{featureType:"landscape.natural.landcover",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.natural.terrain",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.government",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.school",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.sports_complex",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#136f63"},{lightness:"-40"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#0a1f14"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#136f63"},{lightness:30}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#136f63"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.stroke",stylers:[{color:"#2c2c2c"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:-20}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:-20}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:18},{saturation:-50},{visibility:"simplified"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{visibility:"simplified"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}]};function t(){document.querySelectorAll(".carhop-localisation-map").forEach(t=>{const l=t.querySelector(".map-container");if(!l||"true"===l.dataset.initialized)return;const o=new google.maps.Map(l,{zoom:e.zoom,center:new google.maps.LatLng(e.center.lat,e.center.lng),styles:e.styles,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP,style:google.maps.ZoomControlStyle.DEFAULT},mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1});new google.maps.Marker({position:new google.maps.LatLng(e.marker.lat,e.marker.lng),map:o,title:e.marker.title,icon:{url:"/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png",scaledSize:new google.maps.Size(40,40),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(20,40)}}).addListener("click",function(){const t=e.marker.placeId;let l;l=t&&"ChIJXXXXXXXXXXXXXXXXXXXX"!==t?`https://www.google.com/maps/place/?q=place_id:${t}`:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.marker.address)}`,window.open(l,"_blank")}),l.dataset.initialized="true"})}function l(){if("undefined"!=typeof google&&google.maps)return void t();if(window.carhopMapsLoading)return window.carhopMapsCallbacks=window.carhopMapsCallbacks||[],void window.carhopMapsCallbacks.push(t);window.carhopMapsLoading=!0,window.carhopMapsCallbacks=[t],window.carhopMapsReady=function(){window.carhopMapsLoading=!1,window.carhopMapsCallbacks&&(window.carhopMapsCallbacks.forEach(e=>e()),window.carhopMapsCallbacks=[])};const l=document.createElement("script");l.src=`https://maps.googleapis.com/maps/api/js?key=${e.apiKey}&callback=carhopMapsReady`,l.async=!0,l.defer=!0,document.head.appendChild(l)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l(),window.addEventListener("load",l)},4461:(e,t,l)=>{"use strict";const o=window.wp.blocks,a=window.wp.serverSideRender;var r=l.n(a);const s=window.wp.blockEditor,i=window.ReactJSXRuntime,n=JSON.parse('{"UU":"carhop-blocks/localisation-map"}');l(1458),(0,o.registerBlockType)(n.UU,{edit:function(e){return(0,i.jsx)("div",{...(0,s.useBlockProps)(),children:(0,i.jsx)(r(),{block:"carhop-blocks/localisation-map",attributes:e.attributes})})}})}},l={};function o(e){var a=l[e];if(void 0!==a)return a.exports;var r=l[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,l,a,r)=>{if(!l){var s=1/0;for(y=0;y=r)&&Object.keys(o.O).every(e=>o.O[e](l[n]))?l.splice(n--,1):(i=!1,r0&&e[y-1][2]>r;y--)e[y]=e[y-1];e[y]=[l,a,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var l in t)o.o(t,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={618:0,7315:0,7067:0};o.O.j=t=>0===e[t];var t=(t,l)=>{var a,r,[s,i,n]=l,p=0;if(s.some(t=>0!==e[t])){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);if(n)var y=n(o)}for(t&&t(l);po(4461));a=o.O(a)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ "./src/localisation-map/block.json": +/*!*****************************************!*\ + !*** ./src/localisation-map/block.json ***! + \*****************************************/ +/***/ ((module) => { + +"use strict"; +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/localisation-map","version":"0.1.0","title":"Localisation Map","category":"carhop-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false},"textdomain":"localisation-map","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/localisation-map/edit.js": +/*!**************************************!*\ + !*** ./src/localisation-map/edit.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__); + + + +function Edit(props) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_0___default()), { + block: "carhop-blocks/localisation-map", + attributes: props.attributes + }) + }); +} + +/***/ }), + +/***/ "./src/localisation-map/index.js": +/*!***************************************!*\ + !*** ./src/localisation-map/index.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/localisation-map/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/localisation-map/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/localisation-map/block.json"); +/* harmony import */ var _view_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./view.js */ "./src/localisation-map/view.js"); +/* harmony import */ var _view_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_view_js__WEBPACK_IMPORTED_MODULE_4__); + + + + + +// Import the view script to load map handling on the backend + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/localisation-map/style.scss": +/*!*****************************************!*\ + !*** ./src/localisation-map/style.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/localisation-map/view.js": +/*!**************************************!*\ + !*** ./src/localisation-map/view.js ***! + \**************************************/ +/***/ (() => { + +/** + * Google Maps initialization for Carhop Localisation Map block + */ + +// Configuration +const GOOGLE_MAPS_CONFIG = { + apiKey: "AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk", + center: { + lat: 50.61036915572659, + lng: 4.148529499893204 + }, + zoom: 15, + marker: { + lat: 50.61036915386491, + lng: 4.151615298397132, + // Position originale du pin + title: "Carhop", + address: "Av. de la Houssière 80, 7090 Braine-le-Comte", + placeId: "ChIJ41pZLUq1w0cRjXw8zlHnvXI", + // Place ID Google Maps (à remplacer par le vrai) + + color: "green" + }, + styles: [{ + featureType: "administrative", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "administrative", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }, { + gamma: "1.00" + }, { + lightness: "0" + }, { + saturation: "0" + }, { + visibility: "on" + }, { + weight: "1.5" + }] + }, { + featureType: "administrative", + elementType: "labels.text.stroke", + stylers: [{ + color: "#19464b" + }, { + weight: "2" + }] + }, { + featureType: "administrative.land_parcel", + elementType: "geometry", + stylers: [{ + color: "#19464b" + }] + }, { + featureType: "landscape", + elementType: "all", + stylers: [{ + color: "#19464b" + }] + }, { + featureType: "landscape", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.man_made", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.natural", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }, { + visibility: "on" + }] + }, { + featureType: "landscape.natural.landcover", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.natural.terrain", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "poi", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.attraction", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.business", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.government", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.park", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.school", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.medical", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.place_of_worship", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.sports_complex", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "geometry.fill", + stylers: [{ + color: "#136f63" + }, { + lightness: "-40" + }] + }, { + featureType: "road.highway", + elementType: "geometry.stroke", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "road.highway", + elementType: "labels.text.stroke", + stylers: [{ + color: "#0a1f14" + }] + }, { + featureType: "road.arterial", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }, { + lightness: 30 + }] + }, { + featureType: "road.arterial", + elementType: "geometry.fill", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "road.arterial", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.arterial", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "road.arterial", + elementType: "labels.text.stroke", + stylers: [{ + color: "#2c2c2c" + }] + }, { + featureType: "road.local", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: -20 + }] + }, { + featureType: "road.local", + elementType: "labels", + stylers: [{ + visibility: "simplified" + }] + }, { + featureType: "road.local", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "transit", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: -20 + }] + }, + // Grandes masses d'eau (océans, lacs, grands fleuves) + { + featureType: "water", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: 18 + }, { + saturation: -50 + }, { + visibility: "simplified" // Simplifie l'affichage + }] + }, { + featureType: "water", + elementType: "geometry.fill", + stylers: [{ + visibility: "simplified" + }] + }, + // Masquer les labels des petites rivières + { + featureType: "water", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }] +}; + +/** + * Initialize Google Maps for all map containers on the page + */ +function initializeCarhopMaps() { + // Find all map containers + const mapContainers = document.querySelectorAll(".carhop-localisation-map"); + mapContainers.forEach(container => { + const mapElement = container.querySelector(".map-container"); + if (!mapElement || mapElement.dataset.initialized === "true") { + return; + } + + // Create map + const map = new google.maps.Map(mapElement, { + zoom: GOOGLE_MAPS_CONFIG.zoom, + center: new google.maps.LatLng(GOOGLE_MAPS_CONFIG.center.lat, GOOGLE_MAPS_CONFIG.center.lng), + styles: GOOGLE_MAPS_CONFIG.styles, + // Contrôles de zoom + zoomControl: true, + zoomControlOptions: { + position: google.maps.ControlPosition.RIGHT_TOP, + style: google.maps.ZoomControlStyle.DEFAULT + }, + // Autres contrôles utiles + mapTypeControl: false, + // Masquer le sélecteur de type de carte + streetViewControl: false, + // Contrôle Street View + fullscreenControl: false // Bouton plein écran + }); + // Chemin vers votre pin personnalisé avec fallback + const customPinPath = "/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png"; + + // Add marker with custom color + const marker = new google.maps.Marker({ + position: new google.maps.LatLng(GOOGLE_MAPS_CONFIG.marker.lat, GOOGLE_MAPS_CONFIG.marker.lng), + map: map, + title: GOOGLE_MAPS_CONFIG.marker.title, + icon: { + url: customPinPath, + scaledSize: new google.maps.Size(40, 40), + // Taille du pin + origin: new google.maps.Point(0, 0), + anchor: new google.maps.Point(20, 40) // Point d'ancrage (centre bas) + } + }); + + // Add click event to open Google Maps place + marker.addListener("click", function () { + const placeId = GOOGLE_MAPS_CONFIG.marker.placeId; + + // URL pour ouvrir la fiche Google Maps complète + let googleMapsUrl; + if (placeId && placeId !== "ChIJXXXXXXXXXXXXXXXXXXXX") { + // Utiliser le Place ID pour ouvrir la fiche complète + googleMapsUrl = `https://www.google.com/maps/place/?q=place_id:${placeId}`; + } else { + // Fallback avec l'adresse + const address = encodeURIComponent(GOOGLE_MAPS_CONFIG.marker.address); + googleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${address}`; + } + + // Ouvrir dans un nouvel onglet + window.open(googleMapsUrl, "_blank"); + }); + + // Mark as initialized + mapElement.dataset.initialized = "true"; + }); +} + +/** + * Load Google Maps API and initialize maps + */ +function loadGoogleMapsAPI() { + // Check if Google Maps is already loaded + if (typeof google !== "undefined" && google.maps) { + initializeCarhopMaps(); + return; + } + + // Check if script is already loading + if (window.carhopMapsLoading) { + window.carhopMapsCallbacks = window.carhopMapsCallbacks || []; + window.carhopMapsCallbacks.push(initializeCarhopMaps); + return; + } + + // Mark as loading + window.carhopMapsLoading = true; + window.carhopMapsCallbacks = [initializeCarhopMaps]; + + // Create callback function + window.carhopMapsReady = function () { + window.carhopMapsLoading = false; + if (window.carhopMapsCallbacks) { + window.carhopMapsCallbacks.forEach(callback => callback()); + window.carhopMapsCallbacks = []; + } + }; + + // Load Google Maps API + const script = document.createElement("script"); + script.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_CONFIG.apiKey}&callback=carhopMapsReady`; + script.async = true; + script.defer = true; + document.head.appendChild(script); +} + +// Initialize when DOM is ready +if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", loadGoogleMapsAPI); +} else { + loadGoogleMapsAPI(); +} + +// Also initialize on window load as fallback +window.addEventListener("load", loadGoogleMapsAPI); + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "localisation-map/index": 0, +/******/ "localisation-map/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["localisation-map/style-index"], () => (__webpack_require__("./src/localisation-map/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/index.js.map b/plugins/carhop-blocks/build/localisation-map/index.js.map new file mode 100644 index 0000000..231a657 --- /dev/null +++ b/plugins/carhop-blocks/build/localisation-map/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"localisation-map/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA6D;AACL;AAAA;AAEzC,SAASI,IAAIA,CAACC,KAAK,EAAE;EACnC,oBACCF,sDAAA;IAAA,GAASF,sEAAa,CAAC,CAAC;IAAAK,QAAA,eACvBH,sDAAA,CAACH,sEAAgB;MAChBO,KAAK,EAAC,gCAAgC;MACtCC,UAAU,EAAEH,KAAK,CAACG;IAAW,CAC7B;EAAC,CACE,CAAC;AAER,C;;;;;;;;;;;;;;;;;;;ACZsD;AAChC;AAEI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AAG,IAAI;EACnBhD,QAAQ,CAACiD,IAAI,CAACC,WAAW,CAACN,MAAM,CAAC;AAClC;;AAEA;AACA,IAAI5C,QAAQ,CAACmD,UAAU,KAAK,SAAS,EAAE;EACtCnD,QAAQ,CAACoD,gBAAgB,CAAC,kBAAkB,EAAEd,iBAAiB,CAAC;AACjE,CAAC,MAAM;EACNA,iBAAiB,CAAC,CAAC;AACpB;;AAEA;AACAF,MAAM,CAACgB,gBAAgB,CAAC,MAAM,EAAEd,iBAAiB,CAAC,C;;;;;;;;;;;ACrgBlD,6C;;;;;;;;;;;ACAA,wC;;;;;;;;;;;ACAA,kD;;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/localisation-map/edit.js","webpack://carhop-blocks/./src/localisation-map/index.js","webpack://carhop-blocks/./src/localisation-map/style.scss?e20f","webpack://carhop-blocks/./src/localisation-map/view.js","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import ServerSideRender from \"@wordpress/server-side-render\";\r\nimport { useBlockProps } from \"@wordpress/block-editor\";\r\n\r\nexport default function Edit(props) {\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\n\n// Import the view script to load map handling on the backend\nimport \"./view.js\";\n\nregisterBlockType(metadata.name, {\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","/**\n * Google Maps initialization for Carhop Localisation Map block\n */\n\n// Configuration\nconst GOOGLE_MAPS_CONFIG = {\n\tapiKey: \"AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk\",\n\tcenter: {\n\t\tlat: 50.61036915572659,\n\t\tlng: 4.148529499893204,\n\t},\n\tzoom: 15,\n\tmarker: {\n\t\tlat: 50.61036915386491,\n\t\tlng: 4.151615298397132, // Position originale du pin\n\t\ttitle: \"Carhop\",\n\t\taddress: \"Av. de la Houssière 80, 7090 Braine-le-Comte\",\n\t\tplaceId: \"ChIJ41pZLUq1w0cRjXw8zlHnvXI\", // Place ID Google Maps (à remplacer par le vrai)\n\n\t\tcolor: \"green\",\n\t},\n\tstyles: [\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgamma: \"1.00\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: \"0\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsaturation: \"0\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"on\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tweight: \"1.5\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tweight: \"2\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative.land_parcel\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.man_made\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"on\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural.landcover\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural.terrain\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.attraction\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.business\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.government\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.park\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.school\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.medical\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.place_of_worship\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.sports_complex\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: \"-40\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"geometry.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#0a1f14\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: 30,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#2c2c2c\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: -20,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"transit\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: -20,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t// Grandes masses d'eau (océans, lacs, grands fleuves)\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: 18,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsaturation: -50,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\", // Simplifie l'affichage\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t// Masquer les labels des petites rivières\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n\n/**\n * Initialize Google Maps for all map containers on the page\n */\nfunction initializeCarhopMaps() {\n\t// Find all map containers\n\tconst mapContainers = document.querySelectorAll(\".carhop-localisation-map\");\n\n\tmapContainers.forEach((container) => {\n\t\tconst mapElement = container.querySelector(\".map-container\");\n\n\t\tif (!mapElement || mapElement.dataset.initialized === \"true\") {\n\t\t\treturn;\n\t\t}\n\n\t\t// Create map\n\t\tconst map = new google.maps.Map(mapElement, {\n\t\t\tzoom: GOOGLE_MAPS_CONFIG.zoom,\n\t\t\tcenter: new google.maps.LatLng(\n\t\t\t\tGOOGLE_MAPS_CONFIG.center.lat,\n\t\t\t\tGOOGLE_MAPS_CONFIG.center.lng,\n\t\t\t),\n\t\t\tstyles: GOOGLE_MAPS_CONFIG.styles,\n\t\t\t// Contrôles de zoom\n\t\t\tzoomControl: true,\n\t\t\tzoomControlOptions: {\n\t\t\t\tposition: google.maps.ControlPosition.RIGHT_TOP,\n\t\t\t\tstyle: google.maps.ZoomControlStyle.DEFAULT,\n\t\t\t},\n\t\t\t// Autres contrôles utiles\n\t\t\tmapTypeControl: false, // Masquer le sélecteur de type de carte\n\t\t\tstreetViewControl: false, // Contrôle Street View\n\t\t\tfullscreenControl: false, // Bouton plein écran\n\t\t});\n\t\t// Chemin vers votre pin personnalisé avec fallback\n\t\tconst customPinPath =\n\t\t\t\"/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png\";\n\n\t\t// Add marker with custom color\n\t\tconst marker = new google.maps.Marker({\n\t\t\tposition: new google.maps.LatLng(\n\t\t\t\tGOOGLE_MAPS_CONFIG.marker.lat,\n\t\t\t\tGOOGLE_MAPS_CONFIG.marker.lng,\n\t\t\t),\n\t\t\tmap: map,\n\t\t\ttitle: GOOGLE_MAPS_CONFIG.marker.title,\n\t\t\ticon: {\n\t\t\t\turl: customPinPath,\n\t\t\t\tscaledSize: new google.maps.Size(40, 40), // Taille du pin\n\t\t\t\torigin: new google.maps.Point(0, 0),\n\t\t\t\tanchor: new google.maps.Point(20, 40), // Point d'ancrage (centre bas)\n\t\t\t},\n\t\t});\n\n\t\t// Add click event to open Google Maps place\n\t\tmarker.addListener(\"click\", function () {\n\t\t\tconst placeId = GOOGLE_MAPS_CONFIG.marker.placeId;\n\n\t\t\t// URL pour ouvrir la fiche Google Maps complète\n\t\t\tlet googleMapsUrl;\n\t\t\tif (placeId && placeId !== \"ChIJXXXXXXXXXXXXXXXXXXXX\") {\n\t\t\t\t// Utiliser le Place ID pour ouvrir la fiche complète\n\t\t\t\tgoogleMapsUrl = `https://www.google.com/maps/place/?q=place_id:${placeId}`;\n\t\t\t} else {\n\t\t\t\t// Fallback avec l'adresse\n\t\t\t\tconst address = encodeURIComponent(GOOGLE_MAPS_CONFIG.marker.address);\n\t\t\t\tgoogleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${address}`;\n\t\t\t}\n\n\t\t\t// Ouvrir dans un nouvel onglet\n\t\t\twindow.open(googleMapsUrl, \"_blank\");\n\t\t});\n\n\t\t// Mark as initialized\n\t\tmapElement.dataset.initialized = \"true\";\n\t});\n}\n\n/**\n * Load Google Maps API and initialize maps\n */\nfunction loadGoogleMapsAPI() {\n\t// Check if Google Maps is already loaded\n\tif (typeof google !== \"undefined\" && google.maps) {\n\t\tinitializeCarhopMaps();\n\t\treturn;\n\t}\n\n\t// Check if script is already loading\n\tif (window.carhopMapsLoading) {\n\t\twindow.carhopMapsCallbacks = window.carhopMapsCallbacks || [];\n\t\twindow.carhopMapsCallbacks.push(initializeCarhopMaps);\n\t\treturn;\n\t}\n\n\t// Mark as loading\n\twindow.carhopMapsLoading = true;\n\twindow.carhopMapsCallbacks = [initializeCarhopMaps];\n\n\t// Create callback function\n\twindow.carhopMapsReady = function () {\n\t\twindow.carhopMapsLoading = false;\n\t\tif (window.carhopMapsCallbacks) {\n\t\t\twindow.carhopMapsCallbacks.forEach((callback) => callback());\n\t\t\twindow.carhopMapsCallbacks = [];\n\t\t}\n\t};\n\n\t// Load Google Maps API\n\tconst script = document.createElement(\"script\");\n\tscript.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_CONFIG.apiKey}&callback=carhopMapsReady`;\n\tscript.async = true;\n\tscript.defer = true;\n\tdocument.head.appendChild(script);\n}\n\n// Initialize when DOM is ready\nif (document.readyState === \"loading\") {\n\tdocument.addEventListener(\"DOMContentLoaded\", loadGoogleMapsAPI);\n} else {\n\tloadGoogleMapsAPI();\n}\n\n// Also initialize on window load as fallback\nwindow.addEventListener(\"load\", loadGoogleMapsAPI);\n","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"localisation-map/index\": 0,\n\t\"localisation-map/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"localisation-map/style-index\"], () => (__webpack_require__(\"./src/localisation-map/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["ServerSideRender","useBlockProps","jsx","_jsx","Edit","props","children","block","attributes","registerBlockType","metadata","name","edit","GOOGLE_MAPS_CONFIG","apiKey","center","lat","lng","zoom","marker","title","address","placeId","color","styles","featureType","elementType","stylers","gamma","lightness","saturation","visibility","weight","initializeCarhopMaps","mapContainers","document","querySelectorAll","forEach","container","mapElement","querySelector","dataset","initialized","map","google","maps","Map","LatLng","zoomControl","zoomControlOptions","position","ControlPosition","RIGHT_TOP","style","ZoomControlStyle","DEFAULT","mapTypeControl","streetViewControl","fullscreenControl","customPinPath","Marker","icon","url","scaledSize","Size","origin","Point","anchor","addListener","googleMapsUrl","encodeURIComponent","window","open","loadGoogleMapsAPI","carhopMapsLoading","carhopMapsCallbacks","push","carhopMapsReady","callback","script","createElement","src","async","defer","head","appendChild","readyState","addEventListener"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/style-index.css b/plugins/carhop-blocks/build/localisation-map/style-index.css index 27072be..b266113 100644 --- a/plugins/carhop-blocks/build/localisation-map/style-index.css +++ b/plugins/carhop-blocks/build/localisation-map/style-index.css @@ -1 +1,25 @@ -.carhop-localisation-map .map-container a:after{content:none!important}.carhop-localisation-map .map-container{background-color:var(--wp--preset--color--primary);height:500px;margin:0 auto;max-width:1200px;overflow:hidden;width:100%}.carhop-localisation-map .map-container:not([data-initialized=true]){align-items:center;color:#fff;display:flex;justify-content:center}.carhop-localisation-map .map-container:not([data-initialized=true]):before{content:"Chargement de la carte..."} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/localisation-map/style.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.carhop-localisation-map .map-container a:after { + content: none !important; +} +.carhop-localisation-map .map-container { + margin: 0 auto; + max-width: 1200px; + width: 100%; + height: 500px; + background-color: var(--wp--preset--color--primary); + overflow: hidden; +} +.carhop-localisation-map .map-container:not([data-initialized=true]) { + display: flex; + align-items: center; + justify-content: center; + color: white; +} +.carhop-localisation-map .map-container:not([data-initialized=true])::before { + content: "Chargement de la carte..."; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/style-index.css.map b/plugins/carhop-blocks/build/localisation-map/style-index.css.map new file mode 100644 index 0000000..eb3b118 --- /dev/null +++ b/plugins/carhop-blocks/build/localisation-map/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"localisation-map/style-index.css","mappings":";;;AAEE;EACC;AADH;AADC;EAIC;EACA;EACA;EACA;EACA;EACA;AAAF;AAGE;EACC;EACA;EACA;EACA;AADH;AAGG;EACC;AADJ,C","sources":["webpack://carhop-blocks/./src/localisation-map/style.scss"],"sourcesContent":[".carhop-localisation-map {\n\t.map-container {\n\t\ta:after {\n\t\t\tcontent: none !important;\n\t\t}\n\t\tmargin: 0 auto;\n\t\tmax-width: 1200px;\n\t\twidth: 100%;\n\t\theight: 500px;\n\t\tbackground-color: var(--wp--preset--color--primary);\n\t\toverflow: hidden;\n\n\t\t// Loading state\n\t\t&:not([data-initialized=\"true\"]) {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tcolor: white;\n\n\t\t\t&::before {\n\t\t\t\tcontent: \"Chargement de la carte...\";\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/view.js b/plugins/carhop-blocks/build/localisation-map/view.js index 0e0ede4..bb0a109 100644 --- a/plugins/carhop-blocks/build/localisation-map/view.js +++ b/plugins/carhop-blocks/build/localisation-map/view.js @@ -1 +1,399 @@ -(()=>{const e={apiKey:"AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk",center:{lat:50.61036915572659,lng:4.148529499893204},zoom:15,marker:{lat:50.61036915386491,lng:4.151615298397132,title:"Carhop",address:"Av. de la Houssière 80, 7090 Braine-le-Comte",placeId:"ChIJ41pZLUq1w0cRjXw8zlHnvXI",color:"green"},styles:[{featureType:"administrative",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#ffffff"},{gamma:"1.00"},{lightness:"0"},{saturation:"0"},{visibility:"on"},{weight:"1.5"}]},{featureType:"administrative",elementType:"labels.text.stroke",stylers:[{color:"#19464b"},{weight:"2"}]},{featureType:"administrative.land_parcel",elementType:"geometry",stylers:[{color:"#19464b"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#19464b"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.natural",elementType:"labels.text.fill",stylers:[{color:"#ffffff"},{visibility:"on"}]},{featureType:"landscape.natural.landcover",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"landscape.natural.terrain",elementType:"geometry",stylers:[{color:"#136f63"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.government",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.school",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.sports_complex",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#136f63"},{lightness:"-40"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#0a1f14"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#136f63"},{lightness:30}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#136f63"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.stroke",stylers:[{color:"#2c2c2c"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:-20}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:-20}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#136F63"},{lightness:18},{saturation:-50},{visibility:"simplified"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{visibility:"simplified"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}]};function l(){document.querySelectorAll(".carhop-localisation-map").forEach(l=>{const t=l.querySelector(".map-container");if(!t||"true"===t.dataset.initialized)return;const a=new google.maps.Map(t,{zoom:e.zoom,center:new google.maps.LatLng(e.center.lat,e.center.lng),styles:e.styles,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP,style:google.maps.ZoomControlStyle.DEFAULT},mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1});new google.maps.Marker({position:new google.maps.LatLng(e.marker.lat,e.marker.lng),map:a,title:e.marker.title,icon:{url:"/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png",scaledSize:new google.maps.Size(40,40),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(20,40)}}).addListener("click",function(){const l=e.marker.placeId;let t;t=l&&"ChIJXXXXXXXXXXXXXXXXXXXX"!==l?`https://www.google.com/maps/place/?q=place_id:${l}`:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.marker.address)}`,window.open(t,"_blank")}),t.dataset.initialized="true"})}function t(){if("undefined"!=typeof google&&google.maps)return void l();if(window.carhopMapsLoading)return window.carhopMapsCallbacks=window.carhopMapsCallbacks||[],void window.carhopMapsCallbacks.push(l);window.carhopMapsLoading=!0,window.carhopMapsCallbacks=[l],window.carhopMapsReady=function(){window.carhopMapsLoading=!1,window.carhopMapsCallbacks&&(window.carhopMapsCallbacks.forEach(e=>e()),window.carhopMapsCallbacks=[])};const t=document.createElement("script");t.src=`https://maps.googleapis.com/maps/api/js?key=${e.apiKey}&callback=carhopMapsReady`,t.async=!0,t.defer=!0,document.head.appendChild(t)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t(),window.addEventListener("load",t)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!**************************************!*\ + !*** ./src/localisation-map/view.js ***! + \**************************************/ +/** + * Google Maps initialization for Carhop Localisation Map block + */ + +// Configuration +const GOOGLE_MAPS_CONFIG = { + apiKey: "AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk", + center: { + lat: 50.61036915572659, + lng: 4.148529499893204 + }, + zoom: 15, + marker: { + lat: 50.61036915386491, + lng: 4.151615298397132, + // Position originale du pin + title: "Carhop", + address: "Av. de la Houssière 80, 7090 Braine-le-Comte", + placeId: "ChIJ41pZLUq1w0cRjXw8zlHnvXI", + // Place ID Google Maps (à remplacer par le vrai) + + color: "green" + }, + styles: [{ + featureType: "administrative", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "administrative", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }, { + gamma: "1.00" + }, { + lightness: "0" + }, { + saturation: "0" + }, { + visibility: "on" + }, { + weight: "1.5" + }] + }, { + featureType: "administrative", + elementType: "labels.text.stroke", + stylers: [{ + color: "#19464b" + }, { + weight: "2" + }] + }, { + featureType: "administrative.land_parcel", + elementType: "geometry", + stylers: [{ + color: "#19464b" + }] + }, { + featureType: "landscape", + elementType: "all", + stylers: [{ + color: "#19464b" + }] + }, { + featureType: "landscape", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.man_made", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.natural", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }, { + visibility: "on" + }] + }, { + featureType: "landscape.natural.landcover", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "landscape.natural.terrain", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "poi", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.attraction", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.business", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.government", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.park", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.school", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.medical", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.place_of_worship", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "poi.sports_complex", + elementType: "all", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "geometry.fill", + stylers: [{ + color: "#136f63" + }, { + lightness: "-40" + }] + }, { + featureType: "road.highway", + elementType: "geometry.stroke", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.highway", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "road.highway", + elementType: "labels.text.stroke", + stylers: [{ + color: "#0a1f14" + }] + }, { + featureType: "road.arterial", + elementType: "geometry", + stylers: [{ + color: "#136f63" + }, { + lightness: 30 + }] + }, { + featureType: "road.arterial", + elementType: "geometry.fill", + stylers: [{ + color: "#136f63" + }] + }, { + featureType: "road.arterial", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }, { + featureType: "road.arterial", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "road.arterial", + elementType: "labels.text.stroke", + stylers: [{ + color: "#2c2c2c" + }] + }, { + featureType: "road.local", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: -20 + }] + }, { + featureType: "road.local", + elementType: "labels", + stylers: [{ + visibility: "simplified" + }] + }, { + featureType: "road.local", + elementType: "labels.text.fill", + stylers: [{ + color: "#ffffff" + }] + }, { + featureType: "transit", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: -20 + }] + }, + // Grandes masses d'eau (océans, lacs, grands fleuves) + { + featureType: "water", + elementType: "geometry", + stylers: [{ + color: "#136F63" + }, { + lightness: 18 + }, { + saturation: -50 + }, { + visibility: "simplified" // Simplifie l'affichage + }] + }, { + featureType: "water", + elementType: "geometry.fill", + stylers: [{ + visibility: "simplified" + }] + }, + // Masquer les labels des petites rivières + { + featureType: "water", + elementType: "labels", + stylers: [{ + visibility: "off" + }] + }] +}; + +/** + * Initialize Google Maps for all map containers on the page + */ +function initializeCarhopMaps() { + // Find all map containers + const mapContainers = document.querySelectorAll(".carhop-localisation-map"); + mapContainers.forEach(container => { + const mapElement = container.querySelector(".map-container"); + if (!mapElement || mapElement.dataset.initialized === "true") { + return; + } + + // Create map + const map = new google.maps.Map(mapElement, { + zoom: GOOGLE_MAPS_CONFIG.zoom, + center: new google.maps.LatLng(GOOGLE_MAPS_CONFIG.center.lat, GOOGLE_MAPS_CONFIG.center.lng), + styles: GOOGLE_MAPS_CONFIG.styles, + // Contrôles de zoom + zoomControl: true, + zoomControlOptions: { + position: google.maps.ControlPosition.RIGHT_TOP, + style: google.maps.ZoomControlStyle.DEFAULT + }, + // Autres contrôles utiles + mapTypeControl: false, + // Masquer le sélecteur de type de carte + streetViewControl: false, + // Contrôle Street View + fullscreenControl: false // Bouton plein écran + }); + // Chemin vers votre pin personnalisé avec fallback + const customPinPath = "/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png"; + + // Add marker with custom color + const marker = new google.maps.Marker({ + position: new google.maps.LatLng(GOOGLE_MAPS_CONFIG.marker.lat, GOOGLE_MAPS_CONFIG.marker.lng), + map: map, + title: GOOGLE_MAPS_CONFIG.marker.title, + icon: { + url: customPinPath, + scaledSize: new google.maps.Size(40, 40), + // Taille du pin + origin: new google.maps.Point(0, 0), + anchor: new google.maps.Point(20, 40) // Point d'ancrage (centre bas) + } + }); + + // Add click event to open Google Maps place + marker.addListener("click", function () { + const placeId = GOOGLE_MAPS_CONFIG.marker.placeId; + + // URL pour ouvrir la fiche Google Maps complète + let googleMapsUrl; + if (placeId && placeId !== "ChIJXXXXXXXXXXXXXXXXXXXX") { + // Utiliser le Place ID pour ouvrir la fiche complète + googleMapsUrl = `https://www.google.com/maps/place/?q=place_id:${placeId}`; + } else { + // Fallback avec l'adresse + const address = encodeURIComponent(GOOGLE_MAPS_CONFIG.marker.address); + googleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${address}`; + } + + // Ouvrir dans un nouvel onglet + window.open(googleMapsUrl, "_blank"); + }); + + // Mark as initialized + mapElement.dataset.initialized = "true"; + }); +} + +/** + * Load Google Maps API and initialize maps + */ +function loadGoogleMapsAPI() { + // Check if Google Maps is already loaded + if (typeof google !== "undefined" && google.maps) { + initializeCarhopMaps(); + return; + } + + // Check if script is already loading + if (window.carhopMapsLoading) { + window.carhopMapsCallbacks = window.carhopMapsCallbacks || []; + window.carhopMapsCallbacks.push(initializeCarhopMaps); + return; + } + + // Mark as loading + window.carhopMapsLoading = true; + window.carhopMapsCallbacks = [initializeCarhopMaps]; + + // Create callback function + window.carhopMapsReady = function () { + window.carhopMapsLoading = false; + if (window.carhopMapsCallbacks) { + window.carhopMapsCallbacks.forEach(callback => callback()); + window.carhopMapsCallbacks = []; + } + }; + + // Load Google Maps API + const script = document.createElement("script"); + script.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_CONFIG.apiKey}&callback=carhopMapsReady`; + script.async = true; + script.defer = true; + document.head.appendChild(script); +} + +// Initialize when DOM is ready +if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", loadGoogleMapsAPI); +} else { + loadGoogleMapsAPI(); +} + +// Also initialize on window load as fallback +window.addEventListener("load", loadGoogleMapsAPI); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/localisation-map/view.js.map b/plugins/carhop-blocks/build/localisation-map/view.js.map new file mode 100644 index 0000000..9b152a7 --- /dev/null +++ b/plugins/carhop-blocks/build/localisation-map/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"localisation-map/view.js","mappings":";;;;AAAA;AACA;AACA;;AAEA;AACA,MAAMA,kBAAkB,GAAG;EAC1BC,MAAM,EAAE,yCAAyC;EACjDC,MAAM,EAAE;IACPC,GAAG,EAAE,iBAAiB;IACtBC,GAAG,EAAE;EACN,CAAC;EACDC,IAAI,EAAE,EAAE;EACRC,MAAM,EAAE;IACPH,GAAG,EAAE,iBAAiB;IACtBC,GAAG,EAAE,iBAAiB;IAAE;IACxBG,KAAK,EAAE,QAAQ;IACfC,OAAO,EAAE,8CAA8C;IACvDC,OAAO,EAAE,6BAA6B;IAAE;;IAExCC,KAAK,EAAE;EACR,CAAC;EACDC,MAAM,EAAE,CACP;IACCC,WAAW,EAAE,gBAAgB;IAC7BC,WAAW,EAAE,UAAU;IACvBC,OAAO,EAAE,CACR;MACCJ,KAAK,EAAE;IACR,CAAC;EAEH,CAAC,EACD;IACCE,WAAW,EAAE,gBAAgB;IAC7BC,WAAW,EAAE,kBAAkB;IAC/BC,OAAO,EAAE,CACR;MACCJ,KAAK,EAAE;IACR,CAAC,EACD;MACCK,KAAK,EAAE;IACR,CAAC,EACD;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,CAACG,iBAAiB,GAAG,KAAK;IAChC,IAAIH,MAAM,CAACI,mBAAmB,EAAE;MAC/BJ,MAAM,CAACI,mBAAmB,CAACtC,OAAO,CAAEyC,QAAQ,IAAKA,QAAQ,CAAC,CAAC,CAAC;MAC5DP,MAAM,CAACI,mBAAmB,GAAG,EAAE;IAChC;EACD,CAAC;;EAED;EACA,MAAMI,MAAM,GAAG5C,QAAQ,CAAC6C,aAAa,CAAC,QAAQ,CAAC;EAC/CD,MAAM,CAACE,GAAG,GAAG,+CAA+CpE,kBAAkB,CAACC,MAAM,2BAA2B;EAChHiE,MAAM,CAACG,KAAK,GAAG,IAAI;EACnBH,MAAM,CAACI,KAAK,GAAG,IAAI;EACnBhD,QAAQ,CAACiD,IAAI,CAACC,WAAW,CAACN,MAAM,CAAC;AAClC;;AAEA;AACA,IAAI5C,QAAQ,CAACmD,UAAU,KAAK,SAAS,EAAE;EACtCnD,QAAQ,CAACoD,gBAAgB,CAAC,kBAAkB,EAAEd,iBAAiB,CAAC;AACjE,CAAC,MAAM;EACNA,iBAAiB,CAAC,CAAC;AACpB;;AAEA;AACAF,MAAM,CAACgB,gBAAgB,CAAC,MAAM,EAAEd,iBAAiB,CAAC,C","sources":["webpack://carhop-blocks/./src/localisation-map/view.js"],"sourcesContent":["/**\n * Google Maps initialization for Carhop Localisation Map block\n */\n\n// Configuration\nconst GOOGLE_MAPS_CONFIG = {\n\tapiKey: \"AIzaSyBs-owKPe4qiYLb2baCTAptLeNNJX7bTQk\",\n\tcenter: {\n\t\tlat: 50.61036915572659,\n\t\tlng: 4.148529499893204,\n\t},\n\tzoom: 15,\n\tmarker: {\n\t\tlat: 50.61036915386491,\n\t\tlng: 4.151615298397132, // Position originale du pin\n\t\ttitle: \"Carhop\",\n\t\taddress: \"Av. de la Houssière 80, 7090 Braine-le-Comte\",\n\t\tplaceId: \"ChIJ41pZLUq1w0cRjXw8zlHnvXI\", // Place ID Google Maps (à remplacer par le vrai)\n\n\t\tcolor: \"green\",\n\t},\n\tstyles: [\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgamma: \"1.00\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: \"0\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsaturation: \"0\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"on\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tweight: \"1.5\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tweight: \"2\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"administrative.land_parcel\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#19464b\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.man_made\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"on\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural.landcover\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"landscape.natural.terrain\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.attraction\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.business\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.government\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.park\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.school\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.medical\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.place_of_worship\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"poi.sports_complex\",\n\t\t\telementType: \"all\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: \"-40\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"geometry.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.highway\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#0a1f14\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: 30,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136f63\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.arterial\",\n\t\t\telementType: \"labels.text.stroke\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#2c2c2c\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: -20,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"road.local\",\n\t\t\telementType: \"labels.text.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tfeatureType: \"transit\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: -20,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t// Grandes masses d'eau (océans, lacs, grands fleuves)\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"geometry\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tcolor: \"#136F63\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlightness: 18,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tsaturation: -50,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\", // Simplifie l'affichage\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"geometry.fill\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"simplified\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\t// Masquer les labels des petites rivières\n\t\t{\n\t\t\tfeatureType: \"water\",\n\t\t\telementType: \"labels\",\n\t\t\tstylers: [\n\t\t\t\t{\n\t\t\t\t\tvisibility: \"off\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t],\n};\n\n/**\n * Initialize Google Maps for all map containers on the page\n */\nfunction initializeCarhopMaps() {\n\t// Find all map containers\n\tconst mapContainers = document.querySelectorAll(\".carhop-localisation-map\");\n\n\tmapContainers.forEach((container) => {\n\t\tconst mapElement = container.querySelector(\".map-container\");\n\n\t\tif (!mapElement || mapElement.dataset.initialized === \"true\") {\n\t\t\treturn;\n\t\t}\n\n\t\t// Create map\n\t\tconst map = new google.maps.Map(mapElement, {\n\t\t\tzoom: GOOGLE_MAPS_CONFIG.zoom,\n\t\t\tcenter: new google.maps.LatLng(\n\t\t\t\tGOOGLE_MAPS_CONFIG.center.lat,\n\t\t\t\tGOOGLE_MAPS_CONFIG.center.lng,\n\t\t\t),\n\t\t\tstyles: GOOGLE_MAPS_CONFIG.styles,\n\t\t\t// Contrôles de zoom\n\t\t\tzoomControl: true,\n\t\t\tzoomControlOptions: {\n\t\t\t\tposition: google.maps.ControlPosition.RIGHT_TOP,\n\t\t\t\tstyle: google.maps.ZoomControlStyle.DEFAULT,\n\t\t\t},\n\t\t\t// Autres contrôles utiles\n\t\t\tmapTypeControl: false, // Masquer le sélecteur de type de carte\n\t\t\tstreetViewControl: false, // Contrôle Street View\n\t\t\tfullscreenControl: false, // Bouton plein écran\n\t\t});\n\t\t// Chemin vers votre pin personnalisé avec fallback\n\t\tconst customPinPath =\n\t\t\t\"/wp-content/plugins/carhop-blocks/blocks/localisation-map/src/localisation-map/carhop-pin.png\";\n\n\t\t// Add marker with custom color\n\t\tconst marker = new google.maps.Marker({\n\t\t\tposition: new google.maps.LatLng(\n\t\t\t\tGOOGLE_MAPS_CONFIG.marker.lat,\n\t\t\t\tGOOGLE_MAPS_CONFIG.marker.lng,\n\t\t\t),\n\t\t\tmap: map,\n\t\t\ttitle: GOOGLE_MAPS_CONFIG.marker.title,\n\t\t\ticon: {\n\t\t\t\turl: customPinPath,\n\t\t\t\tscaledSize: new google.maps.Size(40, 40), // Taille du pin\n\t\t\t\torigin: new google.maps.Point(0, 0),\n\t\t\t\tanchor: new google.maps.Point(20, 40), // Point d'ancrage (centre bas)\n\t\t\t},\n\t\t});\n\n\t\t// Add click event to open Google Maps place\n\t\tmarker.addListener(\"click\", function () {\n\t\t\tconst placeId = GOOGLE_MAPS_CONFIG.marker.placeId;\n\n\t\t\t// URL pour ouvrir la fiche Google Maps complète\n\t\t\tlet googleMapsUrl;\n\t\t\tif (placeId && placeId !== \"ChIJXXXXXXXXXXXXXXXXXXXX\") {\n\t\t\t\t// Utiliser le Place ID pour ouvrir la fiche complète\n\t\t\t\tgoogleMapsUrl = `https://www.google.com/maps/place/?q=place_id:${placeId}`;\n\t\t\t} else {\n\t\t\t\t// Fallback avec l'adresse\n\t\t\t\tconst address = encodeURIComponent(GOOGLE_MAPS_CONFIG.marker.address);\n\t\t\t\tgoogleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${address}`;\n\t\t\t}\n\n\t\t\t// Ouvrir dans un nouvel onglet\n\t\t\twindow.open(googleMapsUrl, \"_blank\");\n\t\t});\n\n\t\t// Mark as initialized\n\t\tmapElement.dataset.initialized = \"true\";\n\t});\n}\n\n/**\n * Load Google Maps API and initialize maps\n */\nfunction loadGoogleMapsAPI() {\n\t// Check if Google Maps is already loaded\n\tif (typeof google !== \"undefined\" && google.maps) {\n\t\tinitializeCarhopMaps();\n\t\treturn;\n\t}\n\n\t// Check if script is already loading\n\tif (window.carhopMapsLoading) {\n\t\twindow.carhopMapsCallbacks = window.carhopMapsCallbacks || [];\n\t\twindow.carhopMapsCallbacks.push(initializeCarhopMaps);\n\t\treturn;\n\t}\n\n\t// Mark as loading\n\twindow.carhopMapsLoading = true;\n\twindow.carhopMapsCallbacks = [initializeCarhopMaps];\n\n\t// Create callback function\n\twindow.carhopMapsReady = function () {\n\t\twindow.carhopMapsLoading = false;\n\t\tif (window.carhopMapsCallbacks) {\n\t\t\twindow.carhopMapsCallbacks.forEach((callback) => callback());\n\t\t\twindow.carhopMapsCallbacks = [];\n\t\t}\n\t};\n\n\t// Load Google Maps API\n\tconst script = document.createElement(\"script\");\n\tscript.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_CONFIG.apiKey}&callback=carhopMapsReady`;\n\tscript.async = true;\n\tscript.defer = true;\n\tdocument.head.appendChild(script);\n}\n\n// Initialize when DOM is ready\nif (document.readyState === \"loading\") {\n\tdocument.addEventListener(\"DOMContentLoaded\", loadGoogleMapsAPI);\n} else {\n\tloadGoogleMapsAPI();\n}\n\n// Also initialize on window load as fallback\nwindow.addEventListener(\"load\", loadGoogleMapsAPI);\n"],"names":["GOOGLE_MAPS_CONFIG","apiKey","center","lat","lng","zoom","marker","title","address","placeId","color","styles","featureType","elementType","stylers","gamma","lightness","saturation","visibility","weight","initializeCarhopMaps","mapContainers","document","querySelectorAll","forEach","container","mapElement","querySelector","dataset","initialized","map","google","maps","Map","LatLng","zoomControl","zoomControlOptions","position","ControlPosition","RIGHT_TOP","style","ZoomControlStyle","DEFAULT","mapTypeControl","streetViewControl","fullscreenControl","customPinPath","Marker","icon","url","scaledSize","Size","origin","Point","anchor","addListener","googleMapsUrl","encodeURIComponent","window","open","loadGoogleMapsAPI","carhopMapsLoading","carhopMapsCallbacks","push","carhopMapsReady","callback","script","createElement","src","async","defer","head","appendChild","readyState","addEventListener"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/index.css b/plugins/carhop-blocks/build/narrative-card/index.css index b03f397..8049ec7 100644 --- a/plugins/carhop-blocks/build/narrative-card/index.css +++ b/plugins/carhop-blocks/build/narrative-card/index.css @@ -1 +1,34 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color);display:block;display:flex;gap:10px;line-height:normal;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{stroke:var(--cta-current-color)}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/narrative-card/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + color: var(--cta-current-color); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + stroke: var(--cta-current-color); +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/index.css.map b/plugins/carhop-blocks/build/narrative-card/index.css.map new file mode 100644 index 0000000..d0d3b36 --- /dev/null +++ b/plugins/carhop-blocks/build/narrative-card/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"narrative-card/index.css","mappings":";;;AAAA;EACC;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;AAAD;AAGE;EACC;EACA;AADH;AAGE;;EAEC;AADH;AAKC;EACC;AAHF;AAKC;EACC;EACA;AAHF;AAKC;EACC;AAHF,C","sources":["webpack://carhop-blocks/./src/narrative-card/editor.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tcolor: var(--cta-current-color);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tstroke: var(--cta-current-color);\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/index.js b/plugins/carhop-blocks/build/narrative-card/index.js index 758b69e..1159a94 100644 --- a/plugins/carhop-blocks/build/narrative-card/index.js +++ b/plugins/carhop-blocks/build/narrative-card/index.js @@ -1 +1,615 @@ -(()=>{"use strict";var e,o={5435:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.components,a=window.wp.primitives,t=window.ReactJSXRuntime;var c=(0,t.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});function n({coverUrl:e,coverAlt:o,onSelect:l,aspectRatio:a}){const c=a&&"auto"!==a?` narrative-card__cover--ratio-${String(a).replace(/[/:]/g,"-")}`:"";return(0,t.jsxs)("div",{className:`narrative-card__cover${c}`,children:[e&&(0,t.jsx)("img",{src:e,alt:o}),!e&&(0,t.jsx)(r.MediaPlaceholder,{accept:"image/*",allowedTypes:["image"],onSelect:l,multiple:!1,handleUpload:!0})]})}const i=JSON.parse('{"UU":"carhop-blocks/narrative-card"}');(0,e.registerBlockType)(i.UU,{icon:{src:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8,7h8a1,1,0,0,1,1,1v8a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8A1,1,0,0,1,8,7Zm3-5V4h2V2Zm7,0H16V4h2ZM6,4H8V2H6ZM2,2V4L4,2ZM22,4V2H20ZM13,22V20H11v2Zm3,0h2V20H16ZM6,22H8V20H6Zm14-9h2V11H20Zm0,5h2V16H20ZM20,8h2V6H20ZM4,11H2v2H4Zm0,5H2v2H4ZM4,6H2V8H4ZM2,20v2H4Zm20,2V20l-2,2Z"})}),foreground:"#136f63"},edit:function({attributes:e,setAttributes:a}){const{coverId:i,coverUrl:s,coverAlt:v,coverPosition:p,hasCover:h,blackWhiteCoverFilter:d,aspectRatio:u}=e;function m(e){a({coverId:e.id,coverAlt:e.alt,coverUrl:e.url})}(0,r.useSetting)("color.palette.theme");const g=h&&"left"===p,b=h&&"right"===p;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.InspectorControls,{children:(0,t.jsxs)(l.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,o.__)("Image d'accompagnement","deligraph-blocks"),children:[(0,t.jsx)(l.CheckboxControl,{label:"Afficher l'image d'accompagnement",checked:h,onChange:e=>a({hasCover:e})}),s&&(0,t.jsx)("img",{src:s,alt:v}),h&&(0,t.jsxs)("div",{className:"media-replace-container",children:[(0,t.jsx)(r.MediaReplaceFlow,{mediaId:i,mediaUrl:s,allowedTypes:["image"],accept:"image/*",onSelect:m,name:s?(0,o.__)("Remplacer","homegrade-blocks"):(0,o.__)("Ajouter votre image manuellement","homegrade-blocks")}),s&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.Button,{className:"custom-flow-button",variant:"primary",icon:c,label:"Supprimer",onClick:function(){a({coverId:null,coverAlt:null,coverUrl:null})}})}),(0,t.jsxs)(l.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Disposition",onChange:e=>a({coverPosition:e}),value:p,children:[(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Gauche",value:"left"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Droite",value:"right"})]}),(0,t.jsx)(l.SelectControl,{label:(0,o.__)("Proportion","carhop-blocks"),value:u||"auto",options:[{label:(0,o.__)("Auto","carhop-blocks"),value:"auto"},{label:"1:1",value:"1/1"},{label:"4:3",value:"4/3"},{label:"3:4",value:"3/4"},{label:"3:2",value:"3/2"},{label:"2:3",value:"2/3"},{label:"16:9",value:"16/9"},{label:"21:9",value:"21/9"},{label:"9:16",value:"9/16"},{label:"9:21",value:"9/21"}],onChange:e=>a({aspectRatio:e}),help:(0,o.__)("Sélectionnez la proportion d'affichage de la carte.","carhop-blocks")}),(0,t.jsxs)(l.__experimentalToggleGroupControl,{className:"deligraph-blocks__variant",isBlock:!0,label:"Filtre",onChange:e=>{a({blackWhiteCoverFilter:"true"===e})},value:d?"true":"false",children:[(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Noir et blanc",value:"true"}),(0,t.jsx)(l.__experimentalToggleGroupControlOption,{label:"Aucun",value:"false"})]})]})]})}),(0,t.jsxs)("div",{...(0,r.useBlockProps)({className:"narrative-card "+(h?`narrative-card--has-cover narrative-card--has-cover--${p} ${d?"narrative-card--black-white-cover-filter":""}`:"")}),children:[(0,t.jsx)("svg",{viewBox:"0 0 1216 407",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",className:"narrative-card__background",children:(0,t.jsx)("path",{d:"M1 11V406H1205L1215 1L1 11Z",fill:"white",stroke:"#136F63",strokeWidth:"2",vectorEffect:"non-scaling-stroke"})}),g&&(0,t.jsx)(n,{coverUrl:s,coverAlt:v,aspectRatio:u,onSelect:m}),(0,t.jsx)("div",{className:"narrative-card__content",children:(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["core/paragraph","core/heading","core/image","carhop-blocks/cta","carhop-blocks/cta-group","core/list","core/list-item","core/group","core/columns","core/column","core/button","core/buttons"],template:[["core/heading",{content:"Lorem ipsum"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet consectetur adipisicing elit."}]]})}),b&&(0,t.jsx)(n,{coverUrl:s,coverAlt:v,aspectRatio:u,onSelect:m})]})]})},save:function({attributes:e}){const{hasCover:o,coverUrl:l,coverAlt:a,coverPosition:c,blackWhiteCoverFilter:n,aspectRatio:i}=e;return(0,t.jsx)(r.InnerBlocks.Content,{})}})}},r={};function l(e){var a=r[e];if(void 0!==a)return a.exports;var t=r[e]={exports:{}};return o[e](t,t.exports,l),t.exports}l.m=o,e=[],l.O=(o,r,a,t)=>{if(!r){var c=1/0;for(v=0;v=t)&&Object.keys(l.O).every(e=>l.O[e](r[i]))?r.splice(i--,1):(n=!1,t0&&e[v-1][2]>t;v--)e[v]=e[v-1];e[v]=[r,a,t]},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={2627:0,571:0};l.O.j=o=>0===e[o];var o=(o,r)=>{var a,t,[c,n,i]=r,s=0;if(c.some(o=>0!==e[o])){for(a in n)l.o(n,a)&&(l.m[a]=n[a]);if(i)var v=i(l)}for(o&&o(r);sl(5435));a=l.O(a)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js ***! + \*****************************************************************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ trash_default) +/* harmony export */ }); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +// packages/icons/src/library/trash.tsx + + +var trash_default = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)( + _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, + { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z" + } +) }); + +//# sourceMappingURL=trash.js.map + + +/***/ }), + +/***/ "./src/narrative-card/Cover.jsx": +/*!**************************************!*\ + !*** ./src/narrative-card/Cover.jsx ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Cover) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function Cover({ + coverUrl, + coverAlt, + onSelect, + aspectRatio +}) { + const ratioClass = aspectRatio && aspectRatio !== "auto" ? ` narrative-card__cover--ratio-${String(aspectRatio).replace(/[/:]/g, "-")}` : ""; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: `narrative-card__cover${ratioClass}`, + children: [coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img", { + src: coverUrl, + alt: coverAlt + }), !coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.MediaPlaceholder, { + accept: "image/*", + allowedTypes: ["image"], + onSelect: onSelect, + multiple: false, + handleUpload: true + })] + }); +} + +/***/ }), + +/***/ "./src/narrative-card/block.json": +/*!***************************************!*\ + !*** ./src/narrative-card/block.json ***! + \***************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/narrative-card","version":"0.1.0","title":"Carte narrative","category":"carhop-blocks","icon":"smiley","description":"Une carte narrative","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php","attributes":{"hasCover":{"type":"boolean","default":true},"aspectRatio":{"type":"string","default":"auto","enum":["auto","1/1","4/3","3/4","3/2","2/3","16/9","21/9","9/16","9/21"]},"coverPosition":{"type":"string","default":"right","enum":["left","right"]},"coverId":{"type":"number"},"coverUrl":{"type":"string"},"coverAlt":{"type":"string"},"blackWhiteCoverFilter":{"type":"boolean","default":true}}}'); + +/***/ }), + +/***/ "./src/narrative-card/edit.js": +/*!************************************!*\ + !*** ./src/narrative-card/edit.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/narrative-card/editor.scss"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js"); +/* harmony import */ var _Cover__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Cover */ "./src/narrative-card/Cover.jsx"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__); + + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + coverId, + coverUrl, + coverAlt, + coverPosition, + hasCover, + blackWhiteCoverFilter, + aspectRatio + } = attributes; + const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme"); + function setCoverAttributes(cover) { + setAttributes({ + coverId: cover.id, + coverAlt: cover.alt, + coverUrl: cover.url + }); + } + function removeCoverAttributes() { + setAttributes({ + coverId: null, + coverAlt: null, + coverUrl: null + }); + } + + // Déterminer l'ordre des éléments basé sur la position + const shouldShowCoverLeft = hasCover && coverPosition === "left"; + const shouldShowCoverRight = hasCover && coverPosition === "right"; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Image d'accompagnement", "deligraph-blocks"), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl, { + label: "Afficher l'image d'accompagnement", + checked: hasCover, + onChange: value => setAttributes({ + hasCover: value + }) + }), coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("img", { + src: coverUrl, + alt: coverAlt + }), hasCover && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + className: "media-replace-container", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaReplaceFlow, { + mediaId: coverId, + mediaUrl: coverUrl, + allowedTypes: ["image"], + accept: "image/*", + onSelect: setCoverAttributes, + name: !coverUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Ajouter votre image manuellement", "homegrade-blocks") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remplacer", "homegrade-blocks") + }), coverUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, { + className: "custom-flow-button", + variant: "primary", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"], + label: "Supprimer", + onClick: removeCoverAttributes + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Disposition", + onChange: value => setAttributes({ + coverPosition: value + }), + value: coverPosition, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Gauche", + value: "left" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Droite", + value: "right" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.SelectControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Proportion", "carhop-blocks"), + value: aspectRatio || "auto", + options: [{ + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Auto", "carhop-blocks"), + value: "auto" + }, { + label: "1:1", + value: "1/1" + }, { + label: "4:3", + value: "4/3" + }, { + label: "3:4", + value: "3/4" + }, { + label: "3:2", + value: "3/2" + }, { + label: "2:3", + value: "2/3" + }, { + label: "16:9", + value: "16/9" + }, { + label: "21:9", + value: "21/9" + }, { + label: "9:16", + value: "9/16" + }, { + label: "9:21", + value: "9/21" + }], + onChange: value => setAttributes({ + aspectRatio: value + }), + help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Sélectionnez la proportion d'affichage de la carte.", "carhop-blocks") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + className: "deligraph-blocks__variant", + isBlock: true, + label: "Filtre", + onChange: value => { + setAttributes({ + blackWhiteCoverFilter: value === "true" + }); + }, + value: blackWhiteCoverFilter ? "true" : "false", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Noir et blanc", + value: "true" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControlOption, { + label: "Aucun", + value: "false" + })] + })] + })] + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `narrative-card ${hasCover ? `narrative-card--has-cover narrative-card--has-cover--${coverPosition} ${blackWhiteCoverFilter ? "narrative-card--black-white-cover-filter" : ""}` : ""}` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("svg", { + viewBox: "0 0 1216 407", + fill: "none", + xmlns: "http://www.w3.org/2000/svg", + preserveAspectRatio: "none", + className: "narrative-card__background", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("path", { + d: "M1 11V406H1205L1215 1L1 11Z", + fill: "white", + stroke: "#136F63", + strokeWidth: "2", + vectorEffect: "non-scaling-stroke" + }) + }), shouldShowCoverLeft && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Cover__WEBPACK_IMPORTED_MODULE_5__["default"], { + coverUrl: coverUrl, + coverAlt: coverAlt, + aspectRatio: aspectRatio, + onSelect: setCoverAttributes + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", { + className: "narrative-card__content", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/paragraph", "core/heading", "core/image", "carhop-blocks/cta", "carhop-blocks/cta-group", "core/list", "core/list-item", "core/group", "core/columns", "core/column", "core/button", "core/buttons"], + template: [["core/heading", { + content: "Lorem ipsum" + }], ["core/paragraph", { + content: "Lorem ipsum dolor sit amet consectetur adipisicing elit." + }]] + }) + }), shouldShowCoverRight && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_Cover__WEBPACK_IMPORTED_MODULE_5__["default"], { + coverUrl: coverUrl, + coverAlt: coverAlt, + aspectRatio: aspectRatio, + onSelect: setCoverAttributes + })] + })] + }); +} + +/***/ }), + +/***/ "./src/narrative-card/editor.scss": +/*!****************************************!*\ + !*** ./src/narrative-card/editor.scss ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/narrative-card/index.js": +/*!*************************************!*\ + !*** ./src/narrative-card/index.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/narrative-card/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/narrative-card/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/narrative-card/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/narrative-card/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M8,7h8a1,1,0,0,1,1,1v8a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8A1,1,0,0,1,8,7Zm3-5V4h2V2Zm7,0H16V4h2ZM6,4H8V2H6ZM2,2V4L4,2ZM22,4V2H20ZM13,22V20H11v2Zm3,0h2V20H16ZM6,22H8V20H6Zm14-9h2V11H20Zm0,5h2V16H20ZM20,8h2V6H20ZM4,11H2v2H4Zm0,5H2v2H4ZM4,6H2V8H4ZM2,20v2H4Zm20,2V20l-2,2Z" + }) + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/narrative-card/save.js": +/*!************************************!*\ + !*** ./src/narrative-card/save.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save({ + attributes +}) { + const { + hasCover, + coverUrl, + coverAlt, + coverPosition, + blackWhiteCoverFilter, + aspectRatio + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}); +} + +/***/ }), + +/***/ "./src/narrative-card/style.scss": +/*!***************************************!*\ + !*** ./src/narrative-card/style.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/primitives": +/*!************************************!*\ + !*** external ["wp","primitives"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["primitives"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "narrative-card/index": 0, +/******/ "narrative-card/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["narrative-card/style-index"], () => (__webpack_require__("./src/narrative-card/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/index.js.map b/plugins/carhop-blocks/build/narrative-card/index.js.map new file mode 100644 index 0000000..3eeb5b3 --- /dev/null +++ b/plugins/carhop-blocks/build/narrative-card/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"narrative-card/index.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACkD;AACV;AACxC,oCAAoC,sDAAG,CAAC,sDAAG,IAAI,qFAAqF,sDAAG;AACvI,EAAE,uDAAI;AACN;AACA;AACA;AACA;AACA;AACA,GAAG;AAGD;AACF;;;;;;;;;;;;;;;;;;;ACd2D;AAAA;AAE5C,SAASK,KAAKA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAY,CAAC,EAAE;EAC5E,MAAMC,UAAU,GACfD,WAAW,IAAIA,WAAW,KAAK,MAAM,GAClC,iCAAiCE,MAAM,CAACF,WAAW,CAAC,CAACG,OAAO,CAC5D,OAAO,EACP,GACA,CAAC,EAAE,GACH,EAAE;EACN,oBACCR,uDAAA;IAAKS,SAAS,EAAE,wBAAwBH,UAAU,EAAG;IAAAI,QAAA,GACnDR,QAAQ,iBAAIJ,sDAAA;MAAKa,GAAG,EAAET,QAAS;MAACU,GAAG,EAAET;IAAS,CAAE,CAAC,EACjD,CAACD,QAAQ,iBACTJ,sDAAA,CAACF,qEAAgB;MAChBiB,MAAM,EAAC,SAAS;MAChBC,YAAY,EAAE,CAAC,OAAO,CAAE;MACxBV,QAAQ,EAAEA,QAAS;MACnBW,QAAQ,EAAE,KAAM;MAChBC,YAAY,EAAE;IAAK,CACnB,CACD;EAAA,C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UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./node_modules/.pnpm/@wordpress+icons@11.2.0_react@18.3.1/node_modules/@wordpress/icons/build-module/library/trash.js","webpack://carhop-blocks/./src/narrative-card/Cover.jsx","webpack://carhop-blocks/./src/narrative-card/edit.js","webpack://carhop-blocks/./src/narrative-card/editor.scss?240b","webpack://carhop-blocks/./src/narrative-card/index.js","webpack://carhop-blocks/./src/narrative-card/save.js","webpack://carhop-blocks/./src/narrative-card/style.scss?7d5f","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"primitives\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["// packages/icons/src/library/trash.tsx\nimport { Path, SVG } from \"@wordpress/primitives\";\nimport { jsx } from \"react/jsx-runtime\";\nvar trash_default = /* @__PURE__ */ jsx(SVG, { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", children: /* @__PURE__ */ jsx(\n Path,\n {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z\"\n }\n) });\nexport {\n trash_default as default\n};\n//# sourceMappingURL=trash.js.map\n","import { MediaPlaceholder } from \"@wordpress/block-editor\";\r\n\r\nexport default function Cover({ coverUrl, coverAlt, onSelect, aspectRatio }) {\r\n\tconst ratioClass =\r\n\t\taspectRatio && aspectRatio !== \"auto\"\r\n\t\t\t? ` narrative-card__cover--ratio-${String(aspectRatio).replace(\r\n\t\t\t\t\t/[/:]/g,\r\n\t\t\t\t\t\"-\"\r\n\t\t\t )}`\r\n\t\t\t: \"\";\r\n\treturn (\r\n\t\t
\r\n\t\t\t{coverUrl && {coverAlt}}\r\n\t\t\t{!coverUrl && (\r\n\t\t\t\t\r\n\t\t\t)}\r\n\t\t
\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tRichText,\n\tMediaReplaceFlow,\n\tInspectorControls,\n\t__experimentalLinkControl as LinkControl,\n\tuseSetting,\n\tInnerBlocks,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n\tButton,\n\tCheckboxControl,\n\tSelectControl,\n} from \"@wordpress/components\";\nimport \"./editor.scss\";\nimport { lock, trash } from \"@wordpress/icons\";\nimport CoverImage from \"./Cover\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst {\n\t\tcoverId,\n\t\tcoverUrl,\n\t\tcoverAlt,\n\t\tcoverPosition,\n\t\thasCover,\n\t\tblackWhiteCoverFilter,\n\t\taspectRatio,\n\t} = attributes;\n\tconst colors = useSetting(\"color.palette.theme\");\n\n\tfunction setCoverAttributes(cover) {\n\t\tsetAttributes({\n\t\t\tcoverId: cover.id,\n\t\t\tcoverAlt: cover.alt,\n\t\t\tcoverUrl: cover.url,\n\t\t});\n\t}\n\tfunction removeCoverAttributes() {\n\t\tsetAttributes({\n\t\t\tcoverId: null,\n\t\t\tcoverAlt: null,\n\t\t\tcoverUrl: null,\n\t\t});\n\t}\n\n\t// Déterminer l'ordre des éléments basé sur la position\n\tconst shouldShowCoverLeft = hasCover && coverPosition === \"left\";\n\tconst shouldShowCoverRight = hasCover && coverPosition === \"right\";\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ hasCover: value })}\n\t\t\t\t\t/>\n\t\t\t\t\t{coverUrl && {coverAlt}}\n\n\t\t\t\t\t{hasCover && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{coverUrl && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t setAttributes({ coverPosition: value })}\n\t\t\t\t\t\t\t\tvalue={coverPosition}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t setAttributes({ aspectRatio: value })}\n\t\t\t\t\t\t\t\thelp={__(\n\t\t\t\t\t\t\t\t\t\"Sélectionnez la proportion d'affichage de la carte.\",\n\t\t\t\t\t\t\t\t\t\"carhop-blocks\",\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes({ blackWhiteCoverFilter: value === \"true\" });\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tvalue={blackWhiteCoverFilter ? \"true\" : \"false\"}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{shouldShowCoverLeft && (\n\t\t\t\t\t\n\t\t\t\t)}\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t{shouldShowCoverRight && (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst {\n\t\thasCover,\n\t\tcoverUrl,\n\t\tcoverAlt,\n\t\tcoverPosition,\n\t\tblackWhiteCoverFilter,\n\t\taspectRatio,\n\t} = attributes;\n\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"narrative-card/index\": 0,\n\t\"narrative-card/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"narrative-card/style-index\"], () => (__webpack_require__(\"./src/narrative-card/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["MediaPlaceholder","jsx","_jsx","jsxs","_jsxs","Cover","coverUrl","coverAlt","onSelect","aspectRatio","ratioClass","String","replace","className","children","src","alt","accept","allowedTypes","multiple","handleUpload","__","useBlockProps","RichText","MediaReplaceFlow","InspectorControls","__experimentalLinkControl","LinkControl","useSetting","InnerBlocks","PanelBody","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","Button","CheckboxControl","SelectControl","lock","trash","CoverImage","Fragment","_Fragment","Edit","attributes","setAttributes","coverId","coverPosition","hasCover","blackWhiteCoverFilter","colors","setCoverAttributes","cover","id","url","removeCoverAttributes","shouldShowCoverLeft","shouldShowCoverRight","title","label","checked","onChange","value","mediaId","mediaUrl","name","variant","icon","onClick","isBlock","options","help","viewBox","fill","xmlns","preserveAspectRatio","d","stroke","strokeWidth","vectorEffect","allowedBlocks","template","content","registerBlockType","save","metadata","foreground","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/style-index.css b/plugins/carhop-blocks/build/narrative-card/style-index.css index acd8444..b5ce026 100644 --- a/plugins/carhop-blocks/build/narrative-card/style-index.css +++ b/plugins/carhop-blocks/build/narrative-card/style-index.css @@ -1 +1,39 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color);display:block;display:flex;font-weight:700;gap:10px;line-height:normal;margin-top:20px;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta a{text-decoration:none}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{stroke:var(--cta-current-color)}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/narrative-card/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + margin-top: 20px; + color: var(--cta-current-color); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; + font-weight: 700; +} +.wp-block-carhop-blocks-cta a { + text-decoration: none; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + stroke: var(--cta-current-color); +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/style-index.css.map b/plugins/carhop-blocks/build/narrative-card/style-index.css.map new file mode 100644 index 0000000..3c1fcd7 --- /dev/null +++ b/plugins/carhop-blocks/build/narrative-card/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"narrative-card/style-index.css","mappings":";;;AAAA;EACC;EACA;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;EAEA;AADD;AAGC;EACC;AADF;AAIE;EACC;EACA;AAFH;AAIE;;EAEC;AAFH;AAMC;EACC;AAJF;AAMC;EACC;EACA;AAJF;AAMC;EACC;AAJF,C","sources":["webpack://carhop-blocks/./src/narrative-card/style.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tmargin-top: 20px;\n\tcolor: var(--cta-current-color);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\tfont-weight: 700;\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tstroke: var(--cta-current-color);\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/narrative-card/view.js b/plugins/carhop-blocks/build/narrative-card/view.js index e69de29..6426876 100644 --- a/plugins/carhop-blocks/build/narrative-card/view.js +++ b/plugins/carhop-blocks/build/narrative-card/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!************************************!*\ + !*** ./src/narrative-card/view.js ***! + \************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/notice-panel/index.css b/plugins/carhop-blocks/build/notice-panel/index.css index 8b13789..ff5e4b2 100644 --- a/plugins/carhop-blocks/build/notice-panel/index.css +++ b/plugins/carhop-blocks/build/notice-panel/index.css @@ -1 +1,4 @@ +/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/notice-panel/editor.scss ***! + \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/notice-panel/index.js b/plugins/carhop-blocks/build/notice-panel/index.js index deb2f2e..83a8860 100644 --- a/plugins/carhop-blocks/build/notice-panel/index.js +++ b/plugins/carhop-blocks/build/notice-panel/index.js @@ -1 +1,401 @@ -(()=>{"use strict";var e,n={8198:()=>{const e=window.wp.blocks,n=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,c=window.ReactJSXRuntime,r=JSON.parse('{"UU":"carhop-blocks/notice-panel"}');(0,e.registerBlockType)(r.UU,{icon:{src:(0,c.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,c.jsx)("path",{d:"M16 24L8 16L16 8L24 16L16 24Z"})})},edit:function({attributes:e,setAttributes:r}){const{hasIcon:i}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.InspectorControls,{children:(0,c.jsx)(s.PanelBody,{title:(0,n.__)("Icone","carhop-blocks"),children:(0,c.jsx)(s.CheckboxControl,{label:(0,n.__)("Afficher une icône","carhop-blocks"),checked:i,onChange:e=>r({hasIcon:e})})})}),(0,c.jsx)("div",{...(0,o.useBlockProps)({className:"notice-panel"}),children:(0,c.jsxs)("div",{className:`notice-panel__content has-icon-${i}`,children:[i&&(0,c.jsx)("div",{className:"icon"}),(0,c.jsx)("div",{className:"innerblocks",children:(0,c.jsx)(o.InnerBlocks,{template:[["core/paragraph",{placeholder:"Ajouter ici le texte"}]]})})]})})]})},save:function({attributes:e}){const{hasIcon:n}=e;return(0,c.jsx)("div",{...o.useBlockProps.save({className:"notice-panel"}),children:(0,c.jsxs)("div",{className:`notice-panel__content has-icon-${n}`,children:[n&&(0,c.jsx)("div",{className:"icon"}),(0,c.jsx)("div",{className:"innerblocks",children:(0,c.jsx)(o.InnerBlocks.Content,{})})]})})}})}},o={};function s(e){var c=o[e];if(void 0!==c)return c.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,s),r.exports}s.m=n,e=[],s.O=(n,o,c,r)=>{if(!o){var i=1/0;for(h=0;h=r)&&Object.keys(s.O).every(e=>s.O[e](o[a]))?o.splice(a--,1):(t=!1,r0&&e[h-1][2]>r;h--)e[h]=e[h-1];e[h]=[o,c,r]},s.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={4247:0,5871:0};s.O.j=n=>0===e[n];var n=(n,o)=>{var c,r,[i,t,a]=o,l=0;if(i.some(n=>0!==e[n])){for(c in t)s.o(t,c)&&(s.m[c]=t[c]);if(a)var h=a(s)}for(n&&n(o);ls(8198));c=s.O(c)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/notice-panel/block.json": +/*!*************************************!*\ + !*** ./src/notice-panel/block.json ***! + \*************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/notice-panel","version":"0.1.0","title":"Encart d\'information","category":"carhop-blocks","icon":"smiley","description":"Encart d\'information pour la mise en avant d\'éléments informatifs","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"hasIcon":{"type":"boolean","default":true}}}'); + +/***/ }), + +/***/ "./src/notice-panel/edit.js": +/*!**********************************!*\ + !*** ./src/notice-panel/edit.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/notice-panel/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + hasIcon + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Icone", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.CheckboxControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Afficher une icône", "carhop-blocks"), + checked: hasIcon, + onChange: value => setAttributes({ + hasIcon: value + }) + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "notice-panel" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + className: `notice-panel__content has-icon-${hasIcon}`, + children: [hasIcon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "icon" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [["core/paragraph", { + placeholder: "Ajouter ici le texte" + }]] + }) + })] + }) + })] + }); +} + +/***/ }), + +/***/ "./src/notice-panel/editor.scss": +/*!**************************************!*\ + !*** ./src/notice-panel/editor.scss ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/notice-panel/index.js": +/*!***********************************!*\ + !*** ./src/notice-panel/index.js ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/notice-panel/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/notice-panel/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/notice-panel/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/notice-panel/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M16 24L8 16L16 8L24 16L16 24Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/notice-panel/save.js": +/*!**********************************!*\ + !*** ./src/notice-panel/save.js ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + + +function save({ + attributes +}) { + const { + hasIcon + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "notice-panel" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: `notice-panel__content has-icon-${hasIcon}`, + children: [hasIcon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "icon" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + })] + }) + }); +} + +/***/ }), + +/***/ "./src/notice-panel/style.scss": +/*!*************************************!*\ + !*** ./src/notice-panel/style.scss ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "notice-panel/index": 0, +/******/ "notice-panel/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["notice-panel/style-index"], () => (__webpack_require__("./src/notice-panel/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/notice-panel/index.js.map b/plugins/carhop-blocks/build/notice-panel/index.js.map new file mode 100644 index 0000000..d6e1af3 --- /dev/null +++ b/plugins/carhop-blocks/build/notice-panel/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"notice-panel/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAMJ;AACV;AAC4C;AAAA;AAEpD,SAASa,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAQ,CAAC,GAAGF,UAAU;EAC9B,oBACCJ,uDAAA,CAAAE,uDAAA;IAAAK,QAAA,gBACCT,sDAAA,CAACJ,sEAAiB;MAAAa,QAAA,eACjBT,sDAAA,CAACH,4DAAS;QAACa,KAAK,EAAElB,mDAAE,CAAC,OAAO,EAAE,eAAe,CAAE;QAAAiB,QAAA,eAC9CT,sDAAA,CAACF,kEAAe;UACfa,KAAK,EAAEnB,mDAAE,CAAC,oBAAoB,EAAE,eAAe,CAAE;UACjDoB,OAAO,EAAEJ,OAAQ;UACjBK,QAAQ,EAAGC,KAAK,IAAKP,aAAa,CAAC;YAAEC,OAAO,EAAEM;UAAM,CAAC;QAAE,CACvD;MAAC,CACQ;IAAC,CACM,CAAC,eACpBd,sDAAA;MAAA,GACKP,sEAAa,CAAC;QACjBsB,SAAS,EAAE;MACZ,CAAC,CAAC;MAAAN,QAAA,eAEFP,uDAAA;QAAKa,SAAS,EAAE,kCAAkCP,OAAO,EAAG;QAAAC,QAAA,GAC1DD,OAAO,iBAAIR,sDAAA;UAAKe,SAAS,EAAC;QAAM,CAAM,CAAC,eACxCf,sDAAA;UAAKe,SAAS,EAAC,aAAa;UAAAN,QAAA,eAC3BT,sDAAA,CAACL,gEAAW;YACXqB,QAAQ,EAAE,CACT,CAAC,gBAAgB,EAAE;cAAEC,WAAW,EAAE;YAAuB,CAAC,CAAC;UAC1D,CACF;QAAC,CACE,C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A;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/notice-panel/edit.js","webpack://carhop-blocks/./src/notice-panel/editor.scss","webpack://carhop-blocks/./src/notice-panel/index.js","webpack://carhop-blocks/./src/notice-panel/save.js","webpack://carhop-blocks/./src/notice-panel/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { PanelBody, CheckboxControl } from \"@wordpress/components\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { hasIcon } = attributes;\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ hasIcon: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{hasIcon &&
}\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { hasIcon } = attributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t{hasIcon &&
}\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"notice-panel/index\": 0,\n\t\"notice-panel/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"notice-panel/style-index\"], () => (__webpack_require__(\"./src/notice-panel/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","InspectorControls","PanelBody","CheckboxControl","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","hasIcon","children","title","label","checked","onChange","value","className","template","placeholder","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/notice-panel/style-index.css b/plugins/carhop-blocks/build/notice-panel/style-index.css index 8b13789..a6a8135 100644 --- a/plugins/carhop-blocks/build/notice-panel/style-index.css +++ b/plugins/carhop-blocks/build/notice-panel/style-index.css @@ -1 +1,4 @@ +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/notice-panel/style.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/notice-panel/view.js b/plugins/carhop-blocks/build/notice-panel/view.js index e69de29..46a49e9 100644 --- a/plugins/carhop-blocks/build/notice-panel/view.js +++ b/plugins/carhop-blocks/build/notice-panel/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!**********************************!*\ + !*** ./src/notice-panel/view.js ***! + \**********************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/index.css b/plugins/carhop-blocks/build/our-collection/index.css index 336ad6f..d7e6906 100644 --- a/plugins/carhop-blocks/build/our-collection/index.css +++ b/plugins/carhop-blocks/build/our-collection/index.css @@ -1 +1,13 @@ -.wp-block-create-block-our-collection{border:1px dotted red} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/our-collection/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-our-collection { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/index.css.map b/plugins/carhop-blocks/build/our-collection/index.css.map new file mode 100644 index 0000000..aa3df77 --- /dev/null +++ b/plugins/carhop-blocks/build/our-collection/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"our-collection/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/our-collection/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-our-collection {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/index.js b/plugins/carhop-blocks/build/our-collection/index.js index 9d7e8b1..ff363d5 100644 --- a/plugins/carhop-blocks/build/our-collection/index.js +++ b/plugins/carhop-blocks/build/our-collection/index.js @@ -1 +1,501 @@ -(()=>{"use strict";var e,i={1904:()=>{const e=window.wp.blocks,i=window.wp.i18n,s=window.wp.blockEditor,r=window.wp.components,c=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-blocks/our-collection"}');(0,e.registerBlockType)(l.UU,{icon:{foreground:"#146F63",src:(0,c.jsxs)("svg",{"data-name":"Calque 1",xmlns:"http://www.w3.org/2000/svg",width:"592.3",height:"592.3",viewBox:"0 0 592.3 592.3",children:[(0,c.jsx)("path",{d:"M83.6,271.6C37.3,271.6,0,234.4,0,188v-104.5C0,37.3,37.3,0,83.6,0h104.5c46.3,0,83.6,37.3,83.6,83.6v104.5c0,46.3-37.3,83.6-83.6,83.6h-104.5Z",fill:"#146F63"}),(0,c.jsx)("polygon",{points:"443.6 9.4 300.9 256.5 586.2 256.5 443.6 9.4",fill:"#146F63"}),(0,c.jsx)("circle",{cx:"135.8",cy:"455.6",r:"135.8",fill:"#146F63"}),(0,c.jsx)("polygon",{points:"505.3 334.3 364.3 334.3 293.8 456.4 364.3 578.5 505.3 578.5 575.8 456.4 505.3 334.3",fill:"#146F63"})]})},edit:function({attributes:e,setAttributes:l}){const{imageId:a,imageUrl:o}=e,n=e=>{l({imageId:e.id,imageUrl:e.url})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.BlockControls,{children:[(0,c.jsx)(s.MediaReplaceFlow,{mediaId:a,mediaUrl:o,allowedTypes:["image"],accept:"image/*",onSelect:n,name:o?"Remplacer":"Ajouter"}),(0,c.jsx)(r.ToolbarButton,{onClick:()=>{l({imageId:0,imageUrl:""})},children:(0,i.__)("Retirer","carhop-blocks")})]}),(0,c.jsxs)("section",{...(0,s.useBlockProps)({className:"our-collections"}),children:[o?(0,c.jsx)("img",{src:o,className:"our-collections__selected-image",alt:""}):(0,c.jsx)(s.MediaPlaceholder,{onSelect:n,allowedTypes:["image"],accept:"image/*",multiple:!1,labels:{title:(0,i.__)("Sélectionner une image","carhop-blocks")}}),(0,c.jsx)("div",{className:"our-collections__innerblocks",children:(0,c.jsx)(s.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","carhop-blocks/heading"]})}),o&&(0,c.jsx)("img",{src:o,alt:""}),(0,c.jsxs)("div",{className:"redirection-grid",children:[(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Archives"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Documentation"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Images fixes"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Audio"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Images animées"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Objets"})]}),(0,c.jsx)("a",{href:"/collections",className:"see-all",children:"Voir toutes nos collections"}),(0,c.jsx)("div",{className:"background-shape"})]})]})},save:function({attributes:e}){const{imageUrl:i}=e;return(0,c.jsxs)("section",{...s.useBlockProps.save({className:"our-collections"}),children:[i?(0,c.jsx)("img",{src:i,className:"our-collections__selected-image",alt:""}):null,(0,c.jsx)("div",{className:"our-collections__innerblocks",children:(0,c.jsx)(s.InnerBlocks.Content,{})}),(0,c.jsxs)("div",{className:"redirection-grid",children:[(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Archives"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Documentation"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Images fixes"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Audio"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Images animées"}),(0,c.jsx)("a",{className:"redirection-grid__item",href:"/Archives",children:"Objets"})]}),(0,c.jsx)("a",{href:"/collections",className:"see-all",children:"Voir toutes nos collections"}),(0,c.jsx)("div",{className:"background-shape"})]})}})}},s={};function r(e){var c=s[e];if(void 0!==c)return c.exports;var l=s[e]={exports:{}};return i[e](l,l.exports,r),l.exports}r.m=i,e=[],r.O=(i,s,c,l)=>{if(!s){var a=1/0;for(d=0;d=l)&&Object.keys(r.O).every(e=>r.O[e](s[n]))?s.splice(n--,1):(o=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[s,c,l]},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={9945:0,4893:0};r.O.j=i=>0===e[i];var i=(i,s)=>{var c,l,[a,o,n]=s,t=0;if(a.some(i=>0!==e[i])){for(c in o)r.o(o,c)&&(r.m[c]=o[c]);if(n)var d=n(r)}for(i&&i(s);tr(1904));c=r.O(c)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/our-collection/block.json": +/*!***************************************!*\ + !*** ./src/our-collection/block.json ***! + \***************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/our-collection","version":"0.1.0","title":"Notre collection","category":"carhop-blocks","icon":"products","description":"Bloc pour afficher la collection de produits","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"imageId":{"type":"number","default":0},"imageUrl":{"type":"string","default":""}}}'); + +/***/ }), + +/***/ "./src/our-collection/edit.js": +/*!************************************!*\ + !*** ./src/our-collection/edit.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/our-collection/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + imageId, + imageUrl + } = attributes; + const onImageSelect = media => { + setAttributes({ + imageId: media.id, + imageUrl: media.url + }); + }; + const onRemoveImage = () => { + setAttributes({ + imageId: 0, + imageUrl: "" + }); + }; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.BlockControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaReplaceFlow, { + mediaId: imageId, + mediaUrl: imageUrl, + allowedTypes: ["image"], + accept: "image/*", + onSelect: onImageSelect, + name: imageUrl ? "Remplacer" : "Ajouter" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton, { + onClick: onRemoveImage, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Retirer", "carhop-blocks") + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "our-collections" + }), + children: [imageUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", { + src: imageUrl, + className: "our-collections__selected-image", + alt: "" + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaPlaceholder, { + onSelect: onImageSelect, + allowedTypes: ["image"], + accept: "image/*", + multiple: false, + labels: { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Sélectionner une image", "carhop-blocks") + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "our-collections__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/heading", "core/paragraph", "carhop-blocks/heading"] + }) + }), imageUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", { + src: imageUrl, + alt: "" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + className: "redirection-grid", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Archives" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Documentation" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Images fixes" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Audio" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Images anim\xE9es" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Objets" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", { + href: "/collections", + className: "see-all", + children: "Voir toutes nos collections" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "background-shape" + })] + })] + }); +} + +/***/ }), + +/***/ "./src/our-collection/editor.scss": +/*!****************************************!*\ + !*** ./src/our-collection/editor.scss ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/our-collection/index.js": +/*!*************************************!*\ + !*** ./src/our-collection/index.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/our-collection/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/our-collection/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/our-collection/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/our-collection/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#146F63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("svg", { + "data-name": "Calque 1", + xmlns: "http://www.w3.org/2000/svg", + width: "592.3", + height: "592.3", + viewBox: "0 0 592.3 592.3", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M83.6,271.6C37.3,271.6,0,234.4,0,188v-104.5C0,37.3,37.3,0,83.6,0h104.5c46.3,0,83.6,37.3,83.6,83.6v104.5c0,46.3-37.3,83.6-83.6,83.6h-104.5Z", + fill: "#146F63" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("polygon", { + points: "443.6 9.4 300.9 256.5 586.2 256.5 443.6 9.4", + fill: "#146F63" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("circle", { + cx: "135.8", + cy: "455.6", + r: "135.8", + fill: "#146F63" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("polygon", { + points: "505.3 334.3 364.3 334.3 293.8 456.4 364.3 578.5 505.3 578.5 575.8 456.4 505.3 334.3", + fill: "#146F63" + })] + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/our-collection/save.js": +/*!************************************!*\ + !*** ./src/our-collection/save.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + imageUrl + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("section", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "our-collections" + }), + children: [imageUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("img", { + src: imageUrl, + className: "our-collections__selected-image", + alt: "" + }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "our-collections__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + className: "redirection-grid", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Archives" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Documentation" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Images fixes" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Audio" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Images anim\xE9es" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + className: "redirection-grid__item", + href: "/Archives", + children: "Objets" + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a", { + href: "/collections", + className: "see-all", + children: "Voir toutes nos collections" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "background-shape" + })] + }); +} + +/***/ }), + +/***/ "./src/our-collection/style.scss": +/*!***************************************!*\ + !*** ./src/our-collection/style.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "our-collection/index": 0, +/******/ "our-collection/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["our-collection/style-index"], () => (__webpack_require__("./src/our-collection/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/index.js.map b/plugins/carhop-blocks/build/our-collection/index.js.map new file mode 100644 index 0000000..f0986c3 --- /dev/null +++ b/plugins/carhop-blocks/build/our-collection/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"our-collection/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmF;AACjG;AAC+B;AAAA;AAIvC,SAASa,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAGH,UA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qB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/our-collection/edit.js","webpack://carhop-blocks/./src/our-collection/editor.scss?9392","webpack://carhop-blocks/./src/our-collection/index.js","webpack://carhop-blocks/./src/our-collection/save.js","webpack://carhop-blocks/./src/our-collection/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks, BlockControls, MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { ToolbarButton } from \"@wordpress/components\";\n\n\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { imageId, imageUrl } = attributes;\n\tconst onImageSelect = (media) => {\n\t\tsetAttributes({ imageId: media.id, imageUrl: media.url });\n\t};\n\tconst onRemoveImage = () => {\n\t\tsetAttributes({ imageId: 0, imageUrl: \"\" });\n\t};\n\treturn (\n\t\t<>\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t{__(\"Retirer\", \"carhop-blocks\")}\n\t\t\t\n\t\t\n\n\t\t
\n\n\t\t\t{imageUrl ? (\n\t\t\t\t\"\"\n\t\t\t) : (\n\t\t\t\t\n\t\t\t)}\n\n\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t{imageUrl && \"\"}\n\n\t\t\t
\t\n\t\t\t\tArchives\n\t\t\t\tDocumentation\n\t\t\t\tImages fixes\n\t\t\t\tAudio\n\t\t\t\tImages animées\n\t\t\t\tObjets\n\t\t\t
\n\t\t\tVoir toutes nos collections\n\t\t\t
\n\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#146F63\",\n\t\tsrc: (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { imageUrl } = attributes;\n\treturn (\n\t\t
\n\t\t\t\t{imageUrl ? \"\" : null}\n\n\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\t\n\t\t\t\tArchives\n\t\t\t\tDocumentation\n\t\t\t\tImages fixes\n\t\t\t\tAudio\n\t\t\t\tImages animées\n\t\t\t\tObjets\n\t\t\t
\n\t\t\tVoir toutes nos collections\n\t\t\t
\n\t\t\t\n\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"our-collection/index\": 0,\n\t\"our-collection/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"our-collection/style-index\"], () => (__webpack_require__(\"./src/our-collection/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","BlockControls","MediaReplaceFlow","MediaPlaceholder","ToolbarButton","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","imageId","imageUrl","onImageSelect","media","id","url","onRemoveImage","children","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","onClick","className","src","alt","multiple","labels","title","allowedBlocks","href","registerBlockType","save","metadata","icon","foreground","xmlns","width","height","viewBox","d","fill","points","cx","cy","r","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/style-index.css b/plugins/carhop-blocks/build/our-collection/style-index.css index 8b13789..7882d35 100644 --- a/plugins/carhop-blocks/build/our-collection/style-index.css +++ b/plugins/carhop-blocks/build/our-collection/style-index.css @@ -1 +1,4 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/our-collection/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/our-collection/view.js b/plugins/carhop-blocks/build/our-collection/view.js index 953ee05..33a6066 100644 --- a/plugins/carhop-blocks/build/our-collection/view.js +++ b/plugins/carhop-blocks/build/our-collection/view.js @@ -1 +1,32 @@ -console.log("Hello World! (from create-block-our-collection block)"); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!************************************!*\ + !*** ./src/our-collection/view.js ***! + \************************************/ +/** + * Use this file for JavaScript code that you want to run in the front-end + * on posts/pages that contain this block. + * + * When this file is defined as the value of the `viewScript` property + * in `block.json` it will be enqueued on the front end of the site. + * + * Example: + * + * ```js + * { + * "viewScript": "file:./view.js" + * } + * ``` + * + * If you're not making any changes to this file because your project doesn't need any + * JavaScript running in the front-end, then you should delete this file and remove + * the `viewScript` property from `block.json`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script + */ + +/* eslint-disable no-console */ +console.log('Hello World! (from create-block-our-collection block)'); +/* eslint-enable no-console */ +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/our-collection/view.js.map b/plugins/carhop-blocks/build/our-collection/view.js.map new file mode 100644 index 0000000..ca98001 --- /dev/null +++ b/plugins/carhop-blocks/build/our-collection/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"our-collection/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACAA,OAAO,CAACC,GAAG,CAAE,uDAAwD,CAAC;AACtE,8B","sources":["webpack://carhop-blocks/./src/our-collection/view.js"],"sourcesContent":["/**\n * Use this file for JavaScript code that you want to run in the front-end\n * on posts/pages that contain this block.\n *\n * When this file is defined as the value of the `viewScript` property\n * in `block.json` it will be enqueued on the front end of the site.\n *\n * Example:\n *\n * ```js\n * {\n * \"viewScript\": \"file:./view.js\"\n * }\n * ```\n *\n * If you're not making any changes to this file because your project doesn't need any\n * JavaScript running in the front-end, then you should delete this file and remove\n * the `viewScript` property from `block.json`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script\n */\n\n/* eslint-disable no-console */\nconsole.log( 'Hello World! (from create-block-our-collection block)' );\n/* eslint-enable no-console */\n"],"names":["console","log"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/index.css b/plugins/carhop-blocks/build/picture-of-the-day/index.css index 9e8d490..31e6d5d 100644 --- a/plugins/carhop-blocks/build/picture-of-the-day/index.css +++ b/plugins/carhop-blocks/build/picture-of-the-day/index.css @@ -1 +1,13 @@ -.wp-block-create-block-picture-of-the-day{border:1px dotted red} +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/picture-of-the-day/editor.scss ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-picture-of-the-day { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/index.css.map b/plugins/carhop-blocks/build/picture-of-the-day/index.css.map new file mode 100644 index 0000000..ae09816 --- /dev/null +++ b/plugins/carhop-blocks/build/picture-of-the-day/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"picture-of-the-day/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/picture-of-the-day/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-picture-of-the-day {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/index.js b/plugins/carhop-blocks/build/picture-of-the-day/index.js index 83bf721..c9ba581 100644 --- a/plugins/carhop-blocks/build/picture-of-the-day/index.js +++ b/plugins/carhop-blocks/build/picture-of-the-day/index.js @@ -1 +1,398 @@ -(()=>{"use strict";var e,r={2496:()=>{const e=window.wp.blocks,r=window.wp.i18n,o=window.wp.blockEditor,t=window.ReactJSXRuntime,i=JSON.parse('{"UU":"create-block/picture-of-the-day"}');(0,e.registerBlockType)(i.UU,{edit:function(){return(0,t.jsx)("p",{...(0,o.useBlockProps)(),children:(0,r.__)("Picture Of The Day – hello from the editor!","picture-of-the-day")})},save:function(){return(0,t.jsx)("p",{...o.useBlockProps.save(),children:"Picture Of The Day – hello from the saved content!"})}})}},o={};function t(e){var i=o[e];if(void 0!==i)return i.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,t),n.exports}t.m=r,e=[],t.O=(r,o,i,n)=>{if(!o){var c=1/0;for(p=0;p=n)&&Object.keys(t.O).every(e=>t.O[e](o[l]))?o.splice(l--,1):(a=!1,n0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[o,i,n]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={3481:0,4557:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var i,n,[c,a,l]=o,s=0;if(c.some(r=>0!==e[r])){for(i in a)t.o(a,i)&&(t.m[i]=a[i]);if(l)var p=l(t)}for(r&&r(o);st(2496));i=t.O(i)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/picture-of-the-day/block.json": +/*!*******************************************!*\ + !*** ./src/picture-of-the-day/block.json ***! + \*******************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"create-block/picture-of-the-day","version":"0.1.0","title":"Picture Of The Day","category":"widgets","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false},"textdomain":"picture-of-the-day","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/picture-of-the-day/edit.js": +/*!****************************************!*\ + !*** ./src/picture-of-the-day/edit.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/picture-of-the-day/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); +/** + * Retrieves the translation of text. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ + */ + + +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * Those files can contain any CSS code that gets applied to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * The edit function describes the structure of your block in the context of the + * editor. This represents what the editor will render when the block is used. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit + * + * @return {Element} Element to render. + */ + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)(), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Picture Of The Day – hello from the editor!', 'picture-of-the-day') + }); +} + +/***/ }), + +/***/ "./src/picture-of-the-day/editor.scss": +/*!********************************************!*\ + !*** ./src/picture-of-the-day/editor.scss ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/picture-of-the-day/index.js": +/*!*****************************************!*\ + !*** ./src/picture-of-the-day/index.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/picture-of-the-day/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/picture-of-the-day/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/picture-of-the-day/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/picture-of-the-day/block.json"); +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * Internal dependencies + */ + + + + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + /** + * @see ./save.js + */ + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/picture-of-the-day/save.js": +/*!****************************************!*\ + !*** ./src/picture-of-the-day/save.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ + + +/** + * The save function defines the way in which the different attributes should + * be combined into the final markup, which is then serialized by the block + * editor into `post_content`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save + * + * @return {Element} Element to render. + */ + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save(), + children: 'Picture Of The Day – hello from the saved content!' + }); +} + +/***/ }), + +/***/ "./src/picture-of-the-day/style.scss": +/*!*******************************************!*\ + !*** ./src/picture-of-the-day/style.scss ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "picture-of-the-day/index": 0, +/******/ "picture-of-the-day/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["picture-of-the-day/style-index"], () => (__webpack_require__("./src/picture-of-the-day/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/index.js.map b/plugins/carhop-blocks/build/picture-of-the-day/index.js.map new file mode 100644 index 0000000..8536124 --- /dev/null +++ b/plugins/carhop-blocks/build/picture-of-the-day/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"picture-of-the-day/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACwD;;AAExD;AACA;AACA;AACA;AACA;AACA;AACuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AAQe,SAASI,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAAQF,sEAAa,CAAC,CAAC;IAAAI,QAAA,EACpBL,mDAAE,CACH,6CAA6C,EAC7C,oBACD;EAAC,CACC,CAAC;AAEN,C;;;;;;;;;;;ACxCA;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACsB;;AAEtB;AACA;AACA;AAC0B;AACA;AACU;;AAEpC;AACA;AACA;AACA;AACA;AACAM,oEAAiB,CAAEE,6CAAa,EAAE;EACjC;AACD;AACA;EACCE,IAAI,EAAEN,6CAAI;EAEV;AACD;AACA;EACCG,IAAIA,+CAAAA;AACL,CAAE,CAAC,C;;;;;;;;;;;;;;;;;;ACtCH;AACA;AACA;AACA;AACA;AACA;AACwD;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AASe,SAASA,IAAIA,CAAA,EAAG;EAC9B,oBACCJ,sDAAA;IAAA,GAAQF,kEAAa,CAACM,IAAI,CAAC,CAAC;IAAAF,QAAA,EACzB;EAAoD,CACpD,CAAC;AAEN,C;;;;;;;;;;;ACvBA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/picture-of-the-day/edit.js","webpack://carhop-blocks/./src/picture-of-the-day/editor.scss?6395","webpack://carhop-blocks/./src/picture-of-the-day/index.js","webpack://carhop-blocks/./src/picture-of-the-day/save.js","webpack://carhop-blocks/./src/picture-of-the-day/style.scss?250c","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["/**\n * Retrieves the translation of text.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * Those files can contain any CSS code that gets applied to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './editor.scss';\n\n/**\n * The edit function describes the structure of your block in the context of the\n * editor. This represents what the editor will render when the block is used.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit\n *\n * @return {Element} Element to render.\n */\nexport default function Edit() {\n\treturn (\n\t\t

\n\t\t\t{ __(\n\t\t\t\t'Picture Of The Day – hello from the editor!',\n\t\t\t\t'picture-of-the-day'\n\t\t\t) }\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './style.scss';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport save from './save';\nimport metadata from './block.json';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType( metadata.name, {\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: Edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n} );\n","/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @return {Element} Element to render.\n */\nexport default function save() {\n\treturn (\n\t\t

\n\t\t\t{ 'Picture Of The Day – hello from the saved content!' }\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"picture-of-the-day/index\": 0,\n\t\"picture-of-the-day/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"picture-of-the-day/style-index\"], () => (__webpack_require__(\"./src/picture-of-the-day/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","jsx","_jsx","Edit","children","registerBlockType","save","metadata","name","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/style-index.css b/plugins/carhop-blocks/build/picture-of-the-day/style-index.css index ebf5a4d..4e48d18 100644 --- a/plugins/carhop-blocks/build/picture-of-the-day/style-index.css +++ b/plugins/carhop-blocks/build/picture-of-the-day/style-index.css @@ -1 +1,16 @@ -.wp-block-create-block-picture-of-the-day{background-color:#21759b;color:#fff;padding:2px} +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/picture-of-the-day/style.scss ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-picture-of-the-day { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/style-index.css.map b/plugins/carhop-blocks/build/picture-of-the-day/style-index.css.map new file mode 100644 index 0000000..561f160 --- /dev/null +++ b/plugins/carhop-blocks/build/picture-of-the-day/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"picture-of-the-day/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/picture-of-the-day/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-picture-of-the-day {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/picture-of-the-day/view.js b/plugins/carhop-blocks/build/picture-of-the-day/view.js index e69de29..2ae470a 100644 --- a/plugins/carhop-blocks/build/picture-of-the-day/view.js +++ b/plugins/carhop-blocks/build/picture-of-the-day/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!****************************************!*\ + !*** ./src/picture-of-the-day/view.js ***! + \****************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.css b/plugins/carhop-blocks/build/press-ressources/index.css index 99581b6..95b1c40 100644 --- a/plugins/carhop-blocks/build/press-ressources/index.css +++ b/plugins/carhop-blocks/build/press-ressources/index.css @@ -1 +1,13 @@ -.wp-block-create-block-chapo{border:1px dotted red} +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/editor.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.css.map b/plugins/carhop-blocks/build/press-ressources/index.css.map new file mode 100644 index 0000000..8d68b8e --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/press-ressources/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.js b/plugins/carhop-blocks/build/press-ressources/index.js index 952fed8..fbe31f2 100644 --- a/plugins/carhop-blocks/build/press-ressources/index.js +++ b/plugins/carhop-blocks/build/press-ressources/index.js @@ -1 +1,327 @@ -(()=>{"use strict";var r,e={114:(r,e,o)=>{const s=window.wp.blocks,n=(window.wp.i18n,window.wp.blockEditor),i=window.wp.serverSideRender;var t=o.n(i);const a=window.ReactJSXRuntime,c=JSON.parse('{"UU":"carhop-blocks/press-ressources"}');(0,s.registerBlockType)(c.UU,{icon:{src:(0,a.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",children:(0,a.jsx)("path",{d:"M16 24L8 16L16 8L24 16L16 24Z"})})},edit:function(){return(0,a.jsx)("div",{...(0,n.useBlockProps)({className:"alignwide"}),children:(0,a.jsx)(t(),{block:"carhop-blocks/press-ressources"})})}})}},o={};function s(r){var n=o[r];if(void 0!==n)return n.exports;var i=o[r]={exports:{}};return e[r](i,i.exports,s),i.exports}s.m=e,r=[],s.O=(e,o,n,i)=>{if(!o){var t=1/0;for(p=0;p=i)&&Object.keys(s.O).every(r=>s.O[r](o[c]))?o.splice(c--,1):(a=!1,i0&&r[p-1][2]>i;p--)r[p]=r[p-1];r[p]=[o,n,i]},s.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return s.d(e,{a:e}),e},s.d=(r,e)=>{for(var o in e)s.o(e,o)&&!s.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},s.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={1660:0,7076:0};s.O.j=e=>0===r[e];var e=(e,o)=>{var n,i,[t,a,c]=o,l=0;if(t.some(e=>0!==r[e])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(c)var p=c(s)}for(e&&e(o);ls(114));n=s.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/press-ressources/block.json": +/*!*****************************************!*\ + !*** ./src/press-ressources/block.json ***! + \*****************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/press-ressources","version":"0.1.0","title":"Ressources pour la presse","category":"carhop-blocks","icon":"smiley","description":"Ressources pour la presse","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/press-ressources/edit.js": +/*!**************************************!*\ + !*** ./src/press-ressources/edit.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/press-ressources/editor.scss"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "alignwide" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3___default()), { + block: "carhop-blocks/press-ressources" + }) + }); +} + +/***/ }), + +/***/ "./src/press-ressources/editor.scss": +/*!******************************************!*\ + !*** ./src/press-ressources/editor.scss ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/press-ressources/index.js": +/*!***************************************!*\ + !*** ./src/press-ressources/index.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/press-ressources/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/press-ressources/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/press-ressources/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", { + d: "M16 24L8 16L16 8L24 16L16 24Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/press-ressources/style.scss": +/*!*****************************************!*\ + !*** ./src/press-ressources/style.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "press-ressources/index": 0, +/******/ "press-ressources/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["press-ressources/style-index"], () => (__webpack_require__("./src/press-ressources/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.js.map b/plugins/carhop-blocks/build/press-ressources/index.js.map new file mode 100644 index 0000000..a8275e4 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACjC;AACsC;AAAA;AAE9C,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAASH,sEAAa,CAAC;MAAEK,SAAS,EAAE;IAAY,CAAC,CAAC;IAAAC,QAAA,eACjDH,sDAAA,CAACF,sEAAgB;MAACM,KAAK,EAAC;IAAgC,CAAE;EAAC,CACvD,CAAC;AAER,C;;;;;;;;;;;ACXA;;;;;;;;;;;;;;;;;;;ACAsD;AAChC;AAEI;AACU;AAAA;AAEpCC,oEAAiB,CAACC,6CAAa,EAAE;EAChCE,IAAI,EAAE;IACLC,GAAG,eACFT,sDAAA;MAAKU,KAAK,EAAC,IAAI;MAACC,MAAM,EAAC,IAAI;MAACC,OAAO,EAAC,WAAW;MAAAT,QAAA,eAC9CH,sDAAA;QAAMa,CAAC,EAAC;MAA+B,CAAE;IAAC,CACtC;EAEP,CAAC;EACDC,IAAI,EAAEb,6CAAIA;AACX,CAAC,CAAC,C;;;;;;;;;;;ACfF;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,kD;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/press-ressources/edit.js","webpack://carhop-blocks/./src/press-ressources/editor.scss?b1ca","webpack://carhop-blocks/./src/press-ressources/index.js","webpack://carhop-blocks/./src/press-ressources/style.scss?96e7","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nexport default function Edit() {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"press-ressources/index\": 0,\n\t\"press-ressources/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"press-ressources/style-index\"], () => (__webpack_require__(\"./src/press-ressources/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","className","children","block","registerBlockType","metadata","name","icon","src","width","height","viewBox","d","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/style-index.css b/plugins/carhop-blocks/build/press-ressources/style-index.css index 7ab7da4..32bf8b7 100644 --- a/plugins/carhop-blocks/build/press-ressources/style-index.css +++ b/plugins/carhop-blocks/build/press-ressources/style-index.css @@ -1 +1,16 @@ -.wp-block-create-block-chapo{background-color:#21759b;color:#fff;padding:2px} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/style.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/style-index.css.map b/plugins/carhop-blocks/build/press-ressources/style-index.css.map new file mode 100644 index 0000000..ab4e137 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/press-ressources/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/view.js b/plugins/carhop-blocks/build/press-ressources/view.js index 4b641fc..db063f6 100644 --- a/plugins/carhop-blocks/build/press-ressources/view.js +++ b/plugins/carhop-blocks/build/press-ressources/view.js @@ -1 +1,28 @@ -document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector("#press-toolbar");if(!t)return;const e=t.querySelectorAll("button"),r=document.querySelector(".ressources-grid-content-wrapper");e.forEach(t=>{t.addEventListener("click",function(){var a;a=t,e.forEach(t=>{t.setAttribute("aria-selected","false")}),a.setAttribute("aria-selected","true"),r.setAttribute("data-active-tab",a.getAttribute("data-tab"))})})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!**************************************!*\ + !*** ./src/press-ressources/view.js ***! + \**************************************/ +document.addEventListener("DOMContentLoaded", function () { + const toolbar = document.querySelector("#press-toolbar"); + if (!toolbar) return; + const toolbarButtons = toolbar.querySelectorAll("button"); + const ressourcesGridContentWrapper = document.querySelector(".ressources-grid-content-wrapper"); + function setActiveTab(currentButton) { + toolbarButtons.forEach(button => { + button.setAttribute("aria-selected", "false"); + }); + currentButton.setAttribute("aria-selected", "true"); + ressourcesGridContentWrapper.setAttribute("data-active-tab", currentButton.getAttribute("data-tab")); + } + function initToolbar() { + toolbarButtons.forEach(button => { + button.addEventListener("click", function () { + setActiveTab(button); + }); + }); + } + initToolbar(); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/view.js.map b/plugins/carhop-blocks/build/press-ressources/view.js.map new file mode 100644 index 0000000..1dcb26e --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;EACzD,MAAMC,OAAO,GAAGF,QAAQ,CAACG,aAAa,CAAC,gBAAgB,CAAC;EACxD,IAAI,CAACD,OAAO,EAAE;EACd,MAAME,cAAc,GAAGF,OAAO,CAACG,gBAAgB,CAAC,QAAQ,CAAC;EACzD,MAAMC,4BAA4B,GAAGN,QAAQ,CAACG,aAAa,CAC1D,kCACD,CAAC;EAED,SAASI,YAAYA,CAACC,aAAa,EAAE;IACpCJ,cAAc,CAACK,OAAO,CAAEC,MAAM,IAAK;MAClCA,MAAM,CAACC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC;IAC9C,CAAC,CAAC;IAEFH,aAAa,CAACG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC;IACnDL,4BAA4B,CAACK,YAAY,CACxC,iBAAiB,EACjBH,aAAa,CAACI,YAAY,CAAC,UAAU,CACtC,CAAC;EACF;EAEA,SAASC,WAAWA,CAAA,EAAG;IACtBT,cAAc,CAACK,OAAO,CAAEC,MAAM,IAAK;MAClCA,MAAM,CAACT,gBAAgB,CAAC,OAAO,EAAE,YAAY;QAC5CM,YAAY,CAACG,MAAM,CAAC;MACrB,CAAC,CAAC;IACH,CAAC,CAAC;EACH;EACAG,WAAW,CAAC,CAAC;AACd,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/press-ressources/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\r\n\tconst toolbar = document.querySelector(\"#press-toolbar\");\r\n\tif (!toolbar) return;\r\n\tconst toolbarButtons = toolbar.querySelectorAll(\"button\");\r\n\tconst ressourcesGridContentWrapper = document.querySelector(\r\n\t\t\".ressources-grid-content-wrapper\"\r\n\t);\r\n\r\n\tfunction setActiveTab(currentButton) {\r\n\t\ttoolbarButtons.forEach((button) => {\r\n\t\t\tbutton.setAttribute(\"aria-selected\", \"false\");\r\n\t\t});\r\n\r\n\t\tcurrentButton.setAttribute(\"aria-selected\", \"true\");\r\n\t\tressourcesGridContentWrapper.setAttribute(\r\n\t\t\t\"data-active-tab\",\r\n\t\t\tcurrentButton.getAttribute(\"data-tab\")\r\n\t\t);\r\n\t}\r\n\r\n\tfunction initToolbar() {\r\n\t\ttoolbarButtons.forEach((button) => {\r\n\t\t\tbutton.addEventListener(\"click\", function () {\r\n\t\t\t\tsetActiveTab(button);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\tinitToolbar();\r\n});\r\n"],"names":["document","addEventListener","toolbar","querySelector","toolbarButtons","querySelectorAll","ressourcesGridContentWrapper","setActiveTab","currentButton","forEach","button","setAttribute","getAttribute","initToolbar"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/index.css b/plugins/carhop-blocks/build/scroll-story-block/index.css index b03f397..ca3a9fa 100644 --- a/plugins/carhop-blocks/build/scroll-story-block/index.css +++ b/plugins/carhop-blocks/build/scroll-story-block/index.css @@ -1 +1,34 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color);display:block;display:flex;gap:10px;line-height:normal;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{stroke:var(--cta-current-color)}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/scroll-story-block/editor.scss ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + color: var(--cta-current-color); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + stroke: var(--cta-current-color); +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/index.css.map b/plugins/carhop-blocks/build/scroll-story-block/index.css.map new file mode 100644 index 0000000..997519e --- /dev/null +++ b/plugins/carhop-blocks/build/scroll-story-block/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"scroll-story-block/index.css","mappings":";;;AAAA;EACC;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;AAAD;AAGE;EACC;EACA;AADH;AAGE;;EAEC;AADH;AAKC;EACC;AAHF;AAKC;EACC;EACA;AAHF;AAKC;EACC;AAHF,C","sources":["webpack://carhop-blocks/./src/scroll-story-block/editor.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tcolor: var(--cta-current-color);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tstroke: var(--cta-current-color);\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/index.js b/plugins/carhop-blocks/build/scroll-story-block/index.js index 697eafb..4397fed 100644 --- a/plugins/carhop-blocks/build/scroll-story-block/index.js +++ b/plugins/carhop-blocks/build/scroll-story-block/index.js @@ -1 +1,401 @@ -(()=>{"use strict";var o,r={3184:()=>{const o=window.wp.blocks,r=window.wp.i18n,e=window.wp.blockEditor,s=window.wp.components,n=window.ReactJSXRuntime,t=JSON.parse('{"UU":"carhop-blocks/scroll-story-block"}');(0,o.registerBlockType)(t.UU,{icon:{src:(0,n.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:(0,n.jsx)("path",{d:"M22,13v8a1,1,0,0,1-1,1H13a1,1,0,0,1-1-1V13a1,1,0,0,1,1-1h8A1,1,0,0,1,22,13ZM7,6A1,1,0,0,0,6,7v9a1,1,0,0,0,1,1h3V10.5a.5.5,0,0,1,.5-.5H17V7a1,1,0,0,0-1-1ZM3,13H4V4.5A.5.5,0,0,1,4.5,4H13V3a1,1,0,0,0-1-1H3A1,1,0,0,0,2,3v9A1,1,0,0,0,3,13Z"})}),foreground:"#136f63"},edit:function({attributes:o,setAttributes:t}){const{hasNumbering:c}=o;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.InspectorControls,{children:(0,n.jsx)(s.PanelBody,{className:"deligraph-blocks-components-image__panel-body",title:(0,r.__)("Numérotation","deligraph-blocks"),children:(0,n.jsx)(s.CheckboxControl,{label:"Afficher la numérotation",checked:c,onChange:o=>t({hasNumbering:o})})})}),(0,n.jsx)("div",{...(0,e.useBlockProps)({className:"scroll-story-block "+(c?"scroll-story-block--has-numbering":"")}),children:(0,n.jsx)(e.InnerBlocks,{allowedBlocks:["carhop-blocks/narrative-card"],template:[["carhop-blocks/narrative-card",{hasCover:!0,coverPosition:"left",innerBlocks:[["core/heading",{content:"Lorem ipsum"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet consectetur adipisicing elit."}]]}],["carhop-blocks/narrative-card",{hasCover:!0,coverPosition:"right",innerBlocks:[["core/heading",{content:"Lorem ipsum"}],["core/paragraph",{content:"Lorem ipsum dolor sit amet consectetur adipisicing elit."}]]}]]})})]})},save:function({attributes:o}){const{hasNumbering:r}=o;return(0,n.jsx)("div",{...e.useBlockProps.save({className:"scroll-story-block "+(r?"scroll-story-block--has-numbering":"")}),children:(0,n.jsx)(e.InnerBlocks.Content,{})})}})}},e={};function s(o){var n=e[o];if(void 0!==n)return n.exports;var t=e[o]={exports:{}};return r[o](t,t.exports,s),t.exports}s.m=r,o=[],s.O=(r,e,n,t)=>{if(!e){var c=1/0;for(h=0;h=t)&&Object.keys(s.O).every(o=>s.O[o](e[i]))?e.splice(i--,1):(a=!1,t0&&o[h-1][2]>t;h--)o[h]=o[h-1];o[h]=[e,n,t]},s.o=(o,r)=>Object.prototype.hasOwnProperty.call(o,r),(()=>{var o={6233:0,2029:0};s.O.j=r=>0===o[r];var r=(r,e)=>{var n,t,[c,a,i]=e,l=0;if(c.some(r=>0!==o[r])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(i)var h=i(s)}for(r&&r(e);ls(3184));n=s.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/scroll-story-block/block.json": +/*!*******************************************!*\ + !*** ./src/scroll-story-block/block.json ***! + \*******************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/scroll-story-block","version":"0.1.0","title":"Section défilante animée","category":"carhop-blocks","icon":"format-quote","description":"Une section défilante animée","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"hasNumbering":{"type":"boolean","default":false}}}'); + +/***/ }), + +/***/ "./src/scroll-story-block/edit.js": +/*!****************************************!*\ + !*** ./src/scroll-story-block/edit.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/scroll-story-block/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + hasNumbering + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + className: "deligraph-blocks-components-image__panel-body", + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Numérotation", "deligraph-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.CheckboxControl, { + label: "Afficher la num\xE9rotation", + checked: hasNumbering, + onChange: value => setAttributes({ + hasNumbering: value + }) + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `scroll-story-block ${hasNumbering ? "scroll-story-block--has-numbering" : ""}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["carhop-blocks/narrative-card"], + template: [["carhop-blocks/narrative-card", { + hasCover: true, + coverPosition: "left", + innerBlocks: [["core/heading", { + content: "Lorem ipsum" + }], ["core/paragraph", { + content: "Lorem ipsum dolor sit amet consectetur adipisicing elit." + }]] + }], ["carhop-blocks/narrative-card", { + hasCover: true, + coverPosition: "right", + innerBlocks: [["core/heading", { + content: "Lorem ipsum" + }], ["core/paragraph", { + content: "Lorem ipsum dolor sit amet consectetur adipisicing elit." + }]] + }]] + }) + })] + }); +} + +/***/ }), + +/***/ "./src/scroll-story-block/editor.scss": +/*!********************************************!*\ + !*** ./src/scroll-story-block/editor.scss ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/scroll-story-block/index.js": +/*!*****************************************!*\ + !*** ./src/scroll-story-block/index.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/scroll-story-block/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/scroll-story-block/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/scroll-story-block/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/scroll-story-block/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + viewBox: "0 0 24 24", + width: "24", + height: "24", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M22,13v8a1,1,0,0,1-1,1H13a1,1,0,0,1-1-1V13a1,1,0,0,1,1-1h8A1,1,0,0,1,22,13ZM7,6A1,1,0,0,0,6,7v9a1,1,0,0,0,1,1h3V10.5a.5.5,0,0,1,.5-.5H17V7a1,1,0,0,0-1-1ZM3,13H4V4.5A.5.5,0,0,1,4.5,4H13V3a1,1,0,0,0-1-1H3A1,1,0,0,0,2,3v9A1,1,0,0,0,3,13Z" + }) + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/scroll-story-block/save.js": +/*!****************************************!*\ + !*** ./src/scroll-story-block/save.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + hasNumbering + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `scroll-story-block ${hasNumbering ? "scroll-story-block--has-numbering" : ""}` + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + }); +} + +/***/ }), + +/***/ "./src/scroll-story-block/style.scss": +/*!*******************************************!*\ + !*** ./src/scroll-story-block/style.scss ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "scroll-story-block/index": 0, +/******/ "scroll-story-block/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["scroll-story-block/style-index"], () => (__webpack_require__("./src/scroll-story-block/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/index.js.map b/plugins/carhop-blocks/build/scroll-story-block/index.js.map new file mode 100644 index 0000000..cda53bd --- /dev/null +++ b/plugins/carhop-blocks/build/scroll-story-block/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scroll-story-block/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AAC4C;AACP;AAAA;AAE7C,SAASY,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAa,CAAC,GAAGF,UAAU;EACnC,oBACCF,uDAAA,CAAAF,uDAAA;IAAAO,QAAA,gBACCT,sDAAA,CAACF,sEAAiB;MAAAW,QAAA,eACjBT,sDAAA,CAACJ,4DAAS;QACTc,SAAS,EAAC,+CAA+C;QACzDC,KAAK,EAAElB,mDAAE,CAAC,cAAc,EAAE,kBAAkB,CAAE;QAAAgB,QAAA,eAE9CT,sDAAA,CAACH,kEAAe;UACfe,KAAK,EAAC,6BAA0B;UAChCC,OAAO,EAAEL,YAAa;UACtBM,QAAQ,EAAGC,KAAK,IAAKR,aAAa,CAAC;YAAEC,YAAY,EAAEO;UAAM,CAAC;QAAE,CAC5D;MAAC,CACQ;IAAC,CACM,CAAC,eACpBf,sDAAA;MAAA,GACKN,sEAAa,CAAC;QACjBgB,SAAS,EAAE,sBACVF,YAAY,GAAG,mCAAmC,GAAG,EAAE;MAEzD,CAAC,CAAC;MAAAC,QAAA,eAEFT,sDAAA,CAACL,gEAAW;QACXqB,aAAa,EAAE,CAAC,8BAA8B,CAAE;QAChDC,QAAQ,EAAE,CACT,CACC,8BAA8B,EAC9B;UACCC,QAAQ,EAAE,IAAI;UACdC,aAAa,EAAE,MAAM;UACrBC,WAAW,EAAE,CACZ,CAAC,cAAc,EAAE;YAAEC,OAAO,EAAE;UAAc,CAAC,CAAC,EAC5C,CACC,gBAAgB,EAChB;YACCA,OAAO,EAC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ACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/scroll-story-block/edit.js","webpack://carhop-blocks/./src/scroll-story-block/editor.scss?f955","webpack://carhop-blocks/./src/scroll-story-block/index.js","webpack://carhop-blocks/./src/scroll-story-block/save.js","webpack://carhop-blocks/./src/scroll-story-block/style.scss?63b8","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { PanelBody, CheckboxControl } from \"@wordpress/components\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { hasNumbering } = attributes;\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ hasNumbering: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { hasNumbering } = attributes;\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"scroll-story-block/index\": 0,\n\t\"scroll-story-block/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"scroll-story-block/style-index\"], () => (__webpack_require__(\"./src/scroll-story-block/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","PanelBody","CheckboxControl","InspectorControls","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","attributes","setAttributes","hasNumbering","children","className","title","label","checked","onChange","value","allowedBlocks","template","hasCover","coverPosition","innerBlocks","content","registerBlockType","save","metadata","name","icon","src","viewBox","width","height","d","foreground","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/style-index.css b/plugins/carhop-blocks/build/scroll-story-block/style-index.css index acd8444..b220fdd 100644 --- a/plugins/carhop-blocks/build/scroll-story-block/style-index.css +++ b/plugins/carhop-blocks/build/scroll-story-block/style-index.css @@ -1 +1,39 @@ -.wp-block-carhop-blocks-cta{align-items:center;color:var(--cta-current-color);display:block;display:flex;font-weight:700;gap:10px;line-height:normal;margin-top:20px;padding:2px;width:-moz-fit-content;width:fit-content}.wp-block-carhop-blocks-cta a{text-decoration:none}.wp-block-carhop-blocks-cta .icon svg{height:30px;width:30px}.wp-block-carhop-blocks-cta .icon svg circle,.wp-block-carhop-blocks-cta .icon svg path{stroke:var(--cta-current-color)}.wp-block-carhop-blocks-cta.align--left{margin-left:0}.wp-block-carhop-blocks-cta.align--right{margin-left:auto;margin-right:0}.wp-block-carhop-blocks-cta.align--center{margin:0 auto} +/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/scroll-story-block/style.scss ***! + \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-carhop-blocks-cta { + margin-top: 20px; + color: var(--cta-current-color); + padding: 2px; + display: block; + width: -moz-fit-content; + width: fit-content; + display: flex; + align-items: center; + gap: 10px; + line-height: normal; + font-weight: 700; +} +.wp-block-carhop-blocks-cta a { + text-decoration: none; +} +.wp-block-carhop-blocks-cta .icon svg { + width: 30px; + height: 30px; +} +.wp-block-carhop-blocks-cta .icon svg path, +.wp-block-carhop-blocks-cta .icon svg circle { + stroke: var(--cta-current-color); +} +.wp-block-carhop-blocks-cta.align--left { + margin-left: 0; +} +.wp-block-carhop-blocks-cta.align--right { + margin-right: 0; + margin-left: auto; +} +.wp-block-carhop-blocks-cta.align--center { + margin: 0 auto; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/style-index.css.map b/plugins/carhop-blocks/build/scroll-story-block/style-index.css.map new file mode 100644 index 0000000..806a166 --- /dev/null +++ b/plugins/carhop-blocks/build/scroll-story-block/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"scroll-story-block/style-index.css","mappings":";;;AAAA;EACC;EACA;EAEA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;EAEA;AADD;AAGC;EACC;AADF;AAIE;EACC;EACA;AAFH;AAIE;;EAEC;AAFH;AAMC;EACC;AAJF;AAMC;EACC;EACA;AAJF;AAMC;EACC;AAJF,C","sources":["webpack://carhop-blocks/./src/scroll-story-block/style.scss"],"sourcesContent":[".wp-block-carhop-blocks-cta {\n\tmargin-top: 20px;\n\tcolor: var(--cta-current-color);\n\n\tpadding: 2px;\n\tdisplay: block;\n\twidth: fit-content;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tline-height: normal;\n\n\tfont-weight: 700;\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\t.icon {\n\t\tsvg {\n\t\t\twidth: 30px;\n\t\t\theight: 30px;\n\t\t}\n\t\tsvg path,\n\t\tsvg circle {\n\t\t\tstroke: var(--cta-current-color);\n\t\t}\n\t}\n\n\t&.align--left {\n\t\tmargin-left: 0;\n\t}\n\t&.align--right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\t&.align--center {\n\t\tmargin: 0 auto;\n\t}\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/view.js b/plugins/carhop-blocks/build/scroll-story-block/view.js index ee66868..27b33ea 100644 --- a/plugins/carhop-blocks/build/scroll-story-block/view.js +++ b/plugins/carhop-blocks/build/scroll-story-block/view.js @@ -1 +1,105 @@ -(()=>{let r,e=[];function t(){return gsap.utils.toArray(".scroll-story-block")}function a(r){return gsap.utils.toArray(r.querySelectorAll(".narrative-card"))}function n(){e.forEach(r=>r.kill()),e=[],gsap.utils.toArray(".scroll-story-block .narrative-card").forEach(r=>{gsap.set(r,{clearProps:"all"})})}function o(){window.innerWidth<768?n():0===e.length?(n(),t().forEach(r=>{!function(r){const t=a(r);if(0===t.length)return;let n=ScrollTrigger.create({trigger:t[0],start:"top 10%"});e.push(n);let o=ScrollTrigger.create({trigger:t[t.length-1],start:"top 10%"});e.push(o),t.forEach((r,a)=>{var n=1-.025*(t.length-a);let i=gsap.to(r,{scale:n}),l=ScrollTrigger.create({trigger:r,start:"top 10%",end:()=>o.start+0,pin:!0,markers:!0,pinSpacing:!1,ease:"none",animation:i,toggleActions:"restart none none reverse"});e.push(l)})}(r)}),ScrollTrigger.refresh()):ScrollTrigger.refresh()}t().forEach(r=>{a(r).forEach((r,e)=>{r.classList.remove("narrative-card--even","narrative-card--odd"),e%2==0?r.classList.add("narrative-card--even"):r.classList.add("narrative-card--odd")})}),o(),window.addEventListener("load",()=>{window.innerWidth>=768&&e.length>0&&ScrollTrigger.refresh()}),window.addEventListener("resize",()=>{clearTimeout(r),r=setTimeout(()=>{o()},250)})})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!****************************************!*\ + !*** ./src/scroll-story-block/view.js ***! + \****************************************/ +const MOBILE_BREAKPOINT = 768; +let scrollTriggers = []; +let stickDistance = 0; +function getBlocks() { + return gsap.utils.toArray(".scroll-story-block"); +} +function getBlockCards(block) { + return gsap.utils.toArray(block.querySelectorAll(".narrative-card")); +} +function applyEvenOddClasses() { + getBlocks().forEach(block => { + getBlockCards(block).forEach((card, index) => { + card.classList.remove("narrative-card--even", "narrative-card--odd"); + if (index % 2 === 0) { + card.classList.add("narrative-card--even"); + } else { + card.classList.add("narrative-card--odd"); + } + }); + }); +} +function initScrollTriggersForBlock(block) { + const cards = getBlockCards(block); + if (cards.length === 0) return; + let firstCardST = ScrollTrigger.create({ + trigger: cards[0], + start: "top 10%" + }); + scrollTriggers.push(firstCardST); + let lastCardST = ScrollTrigger.create({ + trigger: cards[cards.length - 1], + start: "top 10%" + }); + scrollTriggers.push(lastCardST); + cards.forEach((card, index) => { + var scale = 1 - (cards.length - index) * 0.025; + let scaleDown = gsap.to(card, { + scale: scale + // transformOrigin: "50% " + (lastCardST.start + stickDistance), + // transformOrigin: "center top", + }); + let cardST = ScrollTrigger.create({ + trigger: card, + start: "top 10%", + end: () => lastCardST.start + stickDistance, + pin: true, + markers: true, + pinSpacing: false, + // pinSpacing: true, + ease: "none", + animation: scaleDown, + toggleActions: "restart none none reverse" + }); + scrollTriggers.push(cardST); + }); +} +function initScrollTriggers() { + killScrollTriggers(); + getBlocks().forEach(block => { + initScrollTriggersForBlock(block); + }); + ScrollTrigger.refresh(); +} +function killScrollTriggers() { + scrollTriggers.forEach(st => st.kill()); + scrollTriggers = []; + gsap.utils.toArray(".scroll-story-block .narrative-card").forEach(card => { + gsap.set(card, { + clearProps: "all" + }); + }); +} +function handleResize() { + const isMobile = window.innerWidth < MOBILE_BREAKPOINT; + if (isMobile) { + killScrollTriggers(); + } else { + if (scrollTriggers.length === 0) { + initScrollTriggers(); + } else { + ScrollTrigger.refresh(); + } + } +} +applyEvenOddClasses(); +handleResize(); +window.addEventListener("load", () => { + if (window.innerWidth >= MOBILE_BREAKPOINT && scrollTriggers.length > 0) { + ScrollTrigger.refresh(); + } +}); +let resizeTimer; +window.addEventListener("resize", () => { + clearTimeout(resizeTimer); + resizeTimer = setTimeout(() => { + handleResize(); + }, 250); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/scroll-story-block/view.js.map b/plugins/carhop-blocks/build/scroll-story-block/view.js.map new file mode 100644 index 0000000..ec2e38b --- /dev/null +++ b/plugins/carhop-blocks/build/scroll-story-block/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scroll-story-block/view.js","mappings":";;;;AAAA,MAAMA,iBAAiB,GAAG,GAAG;AAE7B,IAAIC,cAAc,GAAG,EAAE;AACvB,IAAIC,aAAa,GAAG,CAAC;AAErB,SAASC,SAASA,CAAA,EAAG;EACpB,OAAOC,IAAI,CAACC,KAAK,CAACC,OAAO,CAAC,qBAAqB,CAAC;AACjD;AAEA,SAASC,aAAaA,CAACC,KAAK,EAAE;EAC7B,OAAOJ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACE,KAAK,CAACC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AACrE;AAEA,SAASC,mBAAmBA,CAAA,EAAG;EAC9BP,SAAS,CAAC,CAAC,CAACQ,OAAO,CAAEH,KAAK,IAAK;IAC9BD,aAAa,CAACC,KAAK,CAAC,CAACG,OAAO,CAAC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AEdE,MAAM,CAACE,gBAAgB,CAAC,MAAM,EAAE,MAAM;EACrC,IAAIF,MAAM,CAACC,UAAU,IAAIhD,iBAAiB,IAAIC,cAAc,CAACkB,MAAM,GAAG,CAAC,EAAE;IACxEE,aAAa,CAACmB,OAAO,CAAC,CAAC;EACxB;AACD,CAAC,CAAC;AAEF,IAAIU,WAAW;AACfH,MAAM,CAACE,gBAAgB,CAAC,QAAQ,EAAE,MAAM;EACvCE,YAAY,CAACD,WAAW,CAAC;EACzBA,WAAW,GAAGE,UAAU,CAAC,MAAM;IAC9BP,YAAY,CAAC,CAAC;EACf,CAAC,EAAE,GAAG,CAAC;AACR,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/scroll-story-block/view.js"],"sourcesContent":["const MOBILE_BREAKPOINT = 768;\r\n\r\nlet scrollTriggers = [];\r\nlet stickDistance = 0;\r\n\r\nfunction getBlocks() {\r\n\treturn gsap.utils.toArray(\".scroll-story-block\");\r\n}\r\n\r\nfunction getBlockCards(block) {\r\n\treturn gsap.utils.toArray(block.querySelectorAll(\".narrative-card\"));\r\n}\r\n\r\nfunction applyEvenOddClasses() {\r\n\tgetBlocks().forEach((block) => {\r\n\t\tgetBlockCards(block).forEach((card, index) => {\r\n\t\t\tcard.classList.remove(\"narrative-card--even\", \"narrative-card--odd\");\r\n\t\t\tif (index % 2 === 0) {\r\n\t\t\t\tcard.classList.add(\"narrative-card--even\");\r\n\t\t\t} else {\r\n\t\t\t\tcard.classList.add(\"narrative-card--odd\");\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\nfunction initScrollTriggersForBlock(block) {\r\n\tconst cards = getBlockCards(block);\r\n\tif (cards.length === 0) return;\r\n\r\n\tlet firstCardST = ScrollTrigger.create({\r\n\t\ttrigger: cards[0],\r\n\t\tstart: \"top 10%\",\r\n\t});\r\n\tscrollTriggers.push(firstCardST);\r\n\r\n\tlet lastCardST = ScrollTrigger.create({\r\n\t\ttrigger: cards[cards.length - 1],\r\n\t\tstart: \"top 10%\",\r\n\t});\r\n\tscrollTriggers.push(lastCardST);\r\n\r\n\tcards.forEach((card, index) => {\r\n\t\tvar scale = 1 - (cards.length - index) * 0.025;\r\n\t\tlet scaleDown = gsap.to(card, {\r\n\t\t\tscale: scale,\r\n\t\t\t// transformOrigin: \"50% \" + (lastCardST.start + stickDistance),\r\n\t\t\t// transformOrigin: \"center top\",\r\n\t\t});\r\n\r\n\t\tlet cardST = ScrollTrigger.create({\r\n\t\t\ttrigger: card,\r\n\t\t\tstart: \"top 10%\",\r\n\t\t\tend: () => lastCardST.start + stickDistance,\r\n\t\t\tpin: true,\r\n\t\t\tmarkers: true,\r\n\t\t\tpinSpacing: false,\r\n\t\t\t// pinSpacing: true,\r\n\t\t\tease: \"none\",\r\n\t\t\tanimation: scaleDown,\r\n\t\t\ttoggleActions: \"restart none none reverse\",\r\n\t\t});\r\n\r\n\t\tscrollTriggers.push(cardST);\r\n\t});\r\n}\r\n\r\nfunction initScrollTriggers() {\r\n\tkillScrollTriggers();\r\n\r\n\tgetBlocks().forEach((block) => {\r\n\t\tinitScrollTriggersForBlock(block);\r\n\t});\r\n\r\n\tScrollTrigger.refresh();\r\n}\r\n\r\nfunction killScrollTriggers() {\r\n\tscrollTriggers.forEach((st) => st.kill());\r\n\tscrollTriggers = [];\r\n\r\n\tgsap.utils.toArray(\".scroll-story-block .narrative-card\").forEach((card) => {\r\n\t\tgsap.set(card, { clearProps: \"all\" });\r\n\t});\r\n}\r\n\r\nfunction handleResize() {\r\n\tconst isMobile = window.innerWidth < MOBILE_BREAKPOINT;\r\n\r\n\tif (isMobile) {\r\n\t\tkillScrollTriggers();\r\n\t} else {\r\n\t\tif (scrollTriggers.length === 0) {\r\n\t\t\tinitScrollTriggers();\r\n\t\t} else {\r\n\t\t\tScrollTrigger.refresh();\r\n\t\t}\r\n\t}\r\n}\r\n\r\napplyEvenOddClasses();\r\nhandleResize();\r\n\r\nwindow.addEventListener(\"load\", () => {\r\n\tif (window.innerWidth >= MOBILE_BREAKPOINT && scrollTriggers.length > 0) {\r\n\t\tScrollTrigger.refresh();\r\n\t}\r\n});\r\n\r\nlet resizeTimer;\r\nwindow.addEventListener(\"resize\", () => {\r\n\tclearTimeout(resizeTimer);\r\n\tresizeTimer = setTimeout(() => {\r\n\t\thandleResize();\r\n\t}, 250);\r\n});\r\n"],"names":["MOBILE_BREAKPOINT","scrollTriggers","stickDistance","getBlocks","gsap","utils","toArray","getBlockCards","block","querySelectorAll","applyEvenOddClasses","forEach","card","index","classList","remove","add","initScrollTriggersForBlock","cards","length","firstCardST","ScrollTrigger","create","trigger","start","push","lastCardST","scale","scaleDown","to","cardST","end","pin","markers","pinSpacing","ease","animation","toggleActions","initScrollTriggers","killScrollTriggers","refresh","st","kill","set","clearProps","handleResize","isMobile","window","innerWidth","addEventListener","resizeTimer","clearTimeout","setTimeout"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/see-also/index.css b/plugins/carhop-blocks/build/see-also/index.css index 8b13789..8bcd400 100644 --- a/plugins/carhop-blocks/build/see-also/index.css +++ b/plugins/carhop-blocks/build/see-also/index.css @@ -1 +1,4 @@ +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/see-also/editor.scss ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/see-also/index.js b/plugins/carhop-blocks/build/see-also/index.js index 67d587c..cf0e0ea 100644 --- a/plugins/carhop-blocks/build/see-also/index.js +++ b/plugins/carhop-blocks/build/see-also/index.js @@ -1 +1,353 @@ -(()=>{"use strict";var r,e={4351:(r,e,o)=>{const s=window.wp.blocks,n=(window.wp.i18n,window.wp.blockEditor),t=window.wp.serverSideRender;var a=o.n(t);const l=window.ReactJSXRuntime,i=JSON.parse('{"UU":"carhop-blocks/see-also"}');(0,s.registerBlockType)(i.UU,{icon:{src:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 32",children:[(0,l.jsx)("path",{d:"M0,27v-3.87l3.98-3.97V5.61L9.61,0h8.77l5.63,5.61v13.54l3.98,3.97v3.87"}),(0,l.jsx)("path",{class:"cls-1",d:"M9,31h10"})]}),foreground:"#136f63"},edit:function(r){return(0,l.jsx)("div",{...(0,n.useBlockProps)({className:"alignfull"}),children:(0,l.jsx)(a(),{block:"carhop-blocks/see-also",attributes:r.attributes})})},save:function(){return(0,l.jsx)(l.Fragment,{})}})}},o={};function s(r){var n=o[r];if(void 0!==n)return n.exports;var t=o[r]={exports:{}};return e[r](t,t.exports,s),t.exports}s.m=e,r=[],s.O=(e,o,n,t)=>{if(!o){var a=1/0;for(p=0;p=t)&&Object.keys(s.O).every(r=>s.O[r](o[i]))?o.splice(i--,1):(l=!1,t0&&r[p-1][2]>t;p--)r[p]=r[p-1];r[p]=[o,n,t]},s.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return s.d(e,{a:e}),e},s.d=(r,e)=>{for(var o in e)s.o(e,o)&&!s.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:e[o]})},s.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={125:0,7009:0};s.O.j=e=>0===r[e];var e=(e,o)=>{var n,t,[a,l,i]=o,c=0;if(a.some(e=>0!==r[e])){for(n in l)s.o(l,n)&&(s.m[n]=l[n]);if(i)var p=i(s)}for(e&&e(o);cs(4351));n=s.O(n)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/see-also/block.json": +/*!*********************************!*\ + !*** ./src/see-also/block.json ***! + \*********************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/see-also","version":"0.1.0","title":"Voir aussi","category":"carhop-blocks","icon":"smiley","description":"Voir aussi","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/see-also/edit.js": +/*!******************************!*\ + !*** ./src/see-also/edit.js ***! + \******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/see-also/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit(props) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "alignfull" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_2___default()), { + block: "carhop-blocks/see-also", + attributes: props.attributes + }) + }); +} + +/***/ }), + +/***/ "./src/see-also/editor.scss": +/*!**********************************!*\ + !*** ./src/see-also/editor.scss ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/see-also/index.js": +/*!*******************************!*\ + !*** ./src/see-also/index.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/see-also/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/see-also/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/see-also/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/see-also/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("svg", { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 28 32", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M0,27v-3.87l3.98-3.97V5.61L9.61,0h8.77l5.63,5.61v13.54l3.98,3.97v3.87" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + class: "cls-1", + d: "M9,31h10" + })] + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/see-also/save.js": +/*!******************************!*\ + !*** ./src/see-also/save.js ***! + \******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}); +} + +/***/ }), + +/***/ "./src/see-also/style.scss": +/*!*********************************!*\ + !*** ./src/see-also/style.scss ***! + \*********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "see-also/index": 0, +/******/ "see-also/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["see-also/style-index"], () => (__webpack_require__("./src/see-also/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/see-also/index.js.map b/plugins/carhop-blocks/build/see-also/index.js.map new file mode 100644 index 0000000..3073e71 --- /dev/null +++ b/plugins/carhop-blocks/build/see-also/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"see-also/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACK;AAEtC;AAAA;AAER,SAASK,IAAIA,CAACC,KAAK,EAAE;EACnC,oBACCF,sDAAA;IAAA,GAASH,sEAAa,CAAC;MAAEM,SAAS,EAAE;IAAY,CAAC,CAAC;IAAAC,QAAA,eACjDJ,sDAAA,CAACF,sEAAgB;MAChBO,KAAK,EAAC,wBA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;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/see-also/edit.js","webpack://carhop-blocks/./src/see-also/editor.scss","webpack://carhop-blocks/./src/see-also/index.js","webpack://carhop-blocks/./src/see-also/save.js","webpack://carhop-blocks/./src/see-also/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nimport \"./editor.scss\";\n\nexport default function Edit(props) {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\n\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","export default function save() {\n\treturn <>;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"see-also/index\": 0,\n\t\"see-also/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"see-also/style-index\"], () => (__webpack_require__(\"./src/see-also/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","props","className","children","block","attributes","registerBlockType","save","metadata","jsxs","_jsxs","name","icon","src","xmlns","viewBox","d","class","foreground","edit","_Fragment"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/see-also/style-index.css b/plugins/carhop-blocks/build/see-also/style-index.css index 8b13789..8d46e41 100644 --- a/plugins/carhop-blocks/build/see-also/style-index.css +++ b/plugins/carhop-blocks/build/see-also/style-index.css @@ -1 +1,4 @@ +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/see-also/style.scss ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/see-also/view.js b/plugins/carhop-blocks/build/see-also/view.js index e69de29..eaab964 100644 --- a/plugins/carhop-blocks/build/see-also/view.js +++ b/plugins/carhop-blocks/build/see-also/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!******************************!*\ + !*** ./src/see-also/view.js ***! + \******************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline-step/index.css b/plugins/carhop-blocks/build/story-timeline-step/index.css index 8b13789..34e89fb 100644 --- a/plugins/carhop-blocks/build/story-timeline-step/index.css +++ b/plugins/carhop-blocks/build/story-timeline-step/index.css @@ -1 +1,4 @@ +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/story-timeline-step/editor.scss ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/story-timeline-step/index.js b/plugins/carhop-blocks/build/story-timeline-step/index.js index eaf9663..504076e 100644 --- a/plugins/carhop-blocks/build/story-timeline-step/index.js +++ b/plugins/carhop-blocks/build/story-timeline-step/index.js @@ -1 +1,408 @@ -(()=>{"use strict";var e,o={8999:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,s=window.wp.components,t=window.ReactJSXRuntime,c=JSON.parse('{"UU":"carhop-blocks/story-timeline-step"}');(0,e.registerBlockType)(c.UU,{icon:{foreground:"#136f63",src:(0,t.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,t.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,t.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:c,...l}){const{year:i}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.InspectorControls,{children:(0,t.jsx)(s.PanelBody,{title:(0,o.__)("Étape de timeline","carhop-blocks"),children:(0,t.jsx)(s.__experimentalNumberControl,{label:(0,o.__)("Année","carhop-blocks"),value:i,onChange:e=>{const o=parseInt(e,10);c({year:Number.isFinite(o)?o:void 0})}})})}),(0,t.jsxs)("div",{...(0,r.useBlockProps)({className:"story-timeline-step",id:`year-${i}`}),children:[(0,t.jsx)("p",{className:"story-timeline-step__year",children:i}),(0,t.jsx)("div",{className:"story-timeline-step__innerblocks",children:(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/group","core/list","core/button","core/image","core/buttons","core/columns","core/post-title","core/embed","core/quote","core/pullquote","core/media-text","core/table","carhop-blocks/image-stack","carhop-blocks/heading","carhop-blocks/decorative-shapes","carhop-blocks/scroll-story-block","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/localisation-map","carhop-blocks/notice-panel","acf/statistics-datas","ninja-forms/form","gravityforms/form","dynamiques-blocks/sitemap","mailpoet/subscription-form-block","shortcode"]})})]})]})},save:function({attributes:e}){const{year:o}=e;return(0,t.jsxs)("div",{...r.useBlockProps.save({className:"story-timeline-step",id:`year-${o}`}),children:[(0,t.jsx)("p",{className:"story-timeline-step__year",children:o}),(0,t.jsx)("div",{className:"story-timeline-step__innerblocks",children:(0,t.jsx)(r.InnerBlocks.Content,{})})]})}})}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var c=r[e]={exports:{}};return o[e](c,c.exports,s),c.exports}s.m=o,e=[],s.O=(o,r,t,c)=>{if(!r){var l=1/0;for(p=0;p=c)&&Object.keys(s.O).every(e=>s.O[e](r[a]))?r.splice(a--,1):(i=!1,c0&&e[p-1][2]>c;p--)e[p]=e[p-1];e[p]=[r,t,c]},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6896:0,2824:0};s.O.j=o=>0===e[o];var o=(o,r)=>{var t,c,[l,i,a]=r,n=0;if(l.some(o=>0!==e[o])){for(t in i)s.o(i,t)&&(s.m[t]=i[t]);if(a)var p=a(s)}for(o&&o(r);ns(8999));t=s.O(t)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/story-timeline-step/block.json": +/*!********************************************!*\ + !*** ./src/story-timeline-step/block.json ***! + \********************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/story-timeline-step","version":"0.1.0","title":"Étape de timeline","category":"carhop-blocks","icon":"calendar","description":"Étape de timeline pour la mise en forme d\'une étape de timeline","example":{},"parent":["carhop-blocks/story-timeline"],"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"year":{"type":"number","default":2025}}}'); + +/***/ }), + +/***/ "./src/story-timeline-step/edit.js": +/*!*****************************************!*\ + !*** ./src/story-timeline-step/edit.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/story-timeline-step/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const { + year + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Étape de timeline", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.__experimentalNumberControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Année", "carhop-blocks"), + value: year, + onChange: value => { + const n = parseInt(value, 10); + setAttributes({ + year: Number.isFinite(n) ? n : undefined + }); + } + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `story-timeline-step`, + id: `year-${year}` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p", { + className: "story-timeline-step__year", + children: year + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "story-timeline-step__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/heading", "core/paragraph", "core/group", "core/list", "core/button", "core/image", "core/buttons", "core/columns", "core/post-title", "core/embed", "core/quote", "core/pullquote", "core/media-text", "core/table", "carhop-blocks/image-stack", "carhop-blocks/heading", "carhop-blocks/decorative-shapes", "carhop-blocks/scroll-story-block", "carhop-blocks/cta-group", "carhop-blocks/audio-player", "carhop-blocks/localisation-map", "carhop-blocks/notice-panel", "acf/statistics-datas", "ninja-forms/form", "gravityforms/form", "dynamiques-blocks/sitemap", "mailpoet/subscription-form-block", "shortcode"] + }) + })] + })] + }); +} + +/***/ }), + +/***/ "./src/story-timeline-step/editor.scss": +/*!*********************************************!*\ + !*** ./src/story-timeline-step/editor.scss ***! + \*********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/story-timeline-step/index.js": +/*!******************************************!*\ + !*** ./src/story-timeline-step/index.js ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/story-timeline-step/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/story-timeline-step/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/story-timeline-step/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/story-timeline-step/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + stroke: "null", + id: "svg_10", + class: "fills", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + d: "m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/story-timeline-step/save.js": +/*!*****************************************!*\ + !*** ./src/story-timeline-step/save.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + const { + year + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("div", { + ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: `story-timeline-step`, + id: `year-${year}` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p", { + className: "story-timeline-step__year", + children: year + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", { + className: "story-timeline-step__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}) + })] + }); +} + +/***/ }), + +/***/ "./src/story-timeline-step/style.scss": +/*!********************************************!*\ + !*** ./src/story-timeline-step/style.scss ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "story-timeline-step/index": 0, +/******/ "story-timeline-step/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["story-timeline-step/style-index"], () => (__webpack_require__("./src/story-timeline-step/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline-step/index.js.map b/plugins/carhop-blocks/build/story-timeline-step/index.js.map new file mode 100644 index 0000000..272437b --- /dev/null +++ b/plugins/carhop-blocks/build/story-timeline-step/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"story-timeline-step/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AASQ;AAC6B;AAET;AAAA;AAEpC,SAASmB,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAM;IAAEC;EAAK,CAAC,GAAGH,UAAU;EAC3B,oBACCJ,uDAAA,CAAAE,uDAAA;IAAAM,QAAA,gBACCV,sDAAA,CAACH,sEAAiB;MAAAa,QAAA,eACjBV,sDAAA,CAACX,4DAAS;QAACsB,KAAK,EAAEzB,mDAAE,CAAC,mBAAmB,EAAE,eAAe,CAAE;QAAAwB,QAAA,eAC1DV,sDAAA,CAACJ,8EAAa;UACbgB,KAAK,EAAE1B,mDAAE,CAAC,OAAO,EAAE,eAAe,CAAE;UACpC2B,KAAK,EAAEJ,IAAK;UACZK,QAAQ,EAAGD,KAAK,IAAK;YACpB,MAAME,CAAC,GAAGC,QAAQ,CAACH,KAAK,EAAE,EAAE,CAAC;YAC7BN,aAAa,CAAC;cAAEE,IAAI,EAAEQ,MAAM,CAACC,QAAQ,CAACH,CAAC,CAAC,GAAGA,CAAC,GAAGI;YAAU,CAAC,CAAC;UAC5D;QAAE,CACF;MAAC,CACQ;IAAC,CACM,CAAC,eACpBjB,uDAAA;MAAA,GACKf,sEAAa,CAAC;QACjBiC,SAAS,EAAE,qBAAqB;QAChCC,EAAE,EAAE,QAAQZ,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;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/story-timeline-step/edit.js","webpack://carhop-blocks/./src/story-timeline-step/editor.scss","webpack://carhop-blocks/./src/story-timeline-step/index.js","webpack://carhop-blocks/./src/story-timeline-step/save.js","webpack://carhop-blocks/./src/story-timeline-step/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport {\n\tPanelBody,\n\tCard,\n\tCardBody,\n\tCardHeader,\n\tTextControl,\n\tButton,\n\t__experimentalNumberControl as NumberControl,\n} from \"@wordpress/components\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\n\nimport { RichText } from \"@wordpress/block-editor\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst { year } = attributes;\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst n = parseInt(value, 10);\n\t\t\t\t\t\t\tsetAttributes({ year: Number.isFinite(n) ? n : undefined });\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t

{year}

\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { year } = attributes;\n\treturn (\n\t\t\n\t\t\t

{year}

\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"story-timeline-step/index\": 0,\n\t\"story-timeline-step/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"story-timeline-step/style-index\"], () => (__webpack_require__(\"./src/story-timeline-step/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","PanelBody","Card","CardBody","CardHeader","TextControl","Button","__experimentalNumberControl","NumberControl","InspectorControls","RichText","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","year","children","title","label","value","onChange","n","parseInt","Number","isFinite","undefined","className","id","allowedBlocks","registerBlockType","save","metadata","name","icon","foreground","src","width","height","viewBox","stroke","class","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline-step/style-index.css b/plugins/carhop-blocks/build/story-timeline-step/style-index.css index 8b13789..98ebdc4 100644 --- a/plugins/carhop-blocks/build/story-timeline-step/style-index.css +++ b/plugins/carhop-blocks/build/story-timeline-step/style-index.css @@ -1 +1,4 @@ +/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/story-timeline-step/style.scss ***! + \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/story-timeline-step/view.js b/plugins/carhop-blocks/build/story-timeline-step/view.js index e69de29..2b4464a 100644 --- a/plugins/carhop-blocks/build/story-timeline-step/view.js +++ b/plugins/carhop-blocks/build/story-timeline-step/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!*****************************************!*\ + !*** ./src/story-timeline-step/view.js ***! + \*****************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline/index.css b/plugins/carhop-blocks/build/story-timeline/index.css index 8b13789..392e106 100644 --- a/plugins/carhop-blocks/build/story-timeline/index.css +++ b/plugins/carhop-blocks/build/story-timeline/index.css @@ -1 +1,4 @@ +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/story-timeline/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/story-timeline/index.js b/plugins/carhop-blocks/build/story-timeline/index.js index 9204f9f..6a524dd 100644 --- a/plugins/carhop-blocks/build/story-timeline/index.js +++ b/plugins/carhop-blocks/build/story-timeline/index.js @@ -1 +1,385 @@ -(()=>{"use strict";var e,r={6940:()=>{const e=window.wp.blocks,r=(window.wp.i18n,window.wp.blockEditor),s=window.wp.data,t=window.ReactJSXRuntime,l=JSON.parse('{"UU":"carhop-blocks/story-timeline"}');(0,e.registerBlockType)(l.UU,{icon:{foreground:"#136f63",src:(0,t.jsx)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",children:(0,t.jsx)("g",{stroke:"null",id:"svg_10",class:"fills",children:(0,t.jsx)("path",{stroke:"null",d:"m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z"})})})},edit:function({attributes:e,setAttributes:l,...o}){const i=(0,s.useSelect)(e=>{const{getBlocks:r}=e("core/block-editor");return(r(o.clientId)||[]).filter(e=>"carhop-blocks/story-timeline-step"===e.name).map(e=>e.attributes?.year).filter(e=>null!=e&&""!==e)},[o.clientId]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{...(0,r.useBlockProps)({className:"story-timeline"}),children:[(0,t.jsx)("aside",{className:"story-timeline__years",children:(0,t.jsx)("ul",{children:i.map((e,r)=>(0,t.jsx)("li",{className:"story-timeline__year",children:e},r))})}),(0,t.jsx)("div",{className:"story-timeline__innerblocks",children:(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["carhop-blocks/story-timeline-step"]})})]})})},save:function({attributes:e}){return(0,t.jsx)(r.InnerBlocks.Content,{})}})}},s={};function t(e){var l=s[e];if(void 0!==l)return l.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,t),o.exports}t.m=r,e=[],t.O=(r,s,l,o)=>{if(!s){var i=1/0;for(d=0;d=o)&&Object.keys(t.O).every(e=>t.O[e](s[c]))?s.splice(c--,1):(n=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,l,o]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={7819:0,371:0};t.O.j=r=>0===e[r];var r=(r,s)=>{var l,o,[i,n,c]=s,a=0;if(i.some(r=>0!==e[r])){for(l in n)t.o(n,l)&&(t.m[l]=n[l]);if(c)var d=c(t)}for(r&&r(s);at(6940));l=t.O(l)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/story-timeline/block.json": +/*!***************************************!*\ + !*** ./src/story-timeline/block.json ***! + \***************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/story-timeline","version":"0.1.0","title":"Timeline","category":"carhop-blocks","icon":"calendar-alt","description":"Boite de timeline pour la mise en forme d\'une timeline","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/story-timeline/edit.js": +/*!************************************!*\ + !*** ./src/story-timeline/edit.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/story-timeline/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes, + ...props +}) { + const years = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useSelect)(select => { + const { + getBlocks + } = select("core/block-editor"); + const childBlocks = getBlocks(props.clientId) || []; + return childBlocks.filter(b => b.name === "carhop-blocks/story-timeline-step").map(b => b.attributes?.year).filter(y => y !== undefined && y !== null && y !== ""); + }, [props.clientId]); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: `story-timeline` + }), + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("aside", { + className: "story-timeline__years", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul", { + children: years.map((y, idx) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li", { + className: "story-timeline__year", + children: y + }, idx)) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "story-timeline__innerblocks", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["carhop-blocks/story-timeline-step"] + }) + })] + }) + }); +} + +/***/ }), + +/***/ "./src/story-timeline/editor.scss": +/*!****************************************!*\ + !*** ./src/story-timeline/editor.scss ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/story-timeline/index.js": +/*!*************************************!*\ + !*** ./src/story-timeline/index.js ***! + \*************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/story-timeline/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/story-timeline/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/story-timeline/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/story-timeline/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + foreground: "#136f63", + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + width: "100", + height: "100", + viewBox: "0 0 100 100", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("g", { + stroke: "null", + id: "svg_10", + class: "fills", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + stroke: "null", + d: "m3.74998,19.74151c0,-8.82607 7.16546,-15.99153 15.99153,-15.99153l60.51698,0c8.82607,0 15.99153,7.16546 15.99153,15.99153l0,60.51698c0,8.82607 -7.16546,15.99153 -15.99153,15.99153l-60.51698,0c-8.82607,0 -15.99153,-7.16546 -15.99153,-15.99153l0,-60.51698zm22.57628,3.44915l0,53.61867l23.67374,-18.7148l23.67374,18.7148l0,-53.61867l-47.34748,0z" + }) + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/story-timeline/save.js": +/*!************************************!*\ + !*** ./src/story-timeline/save.js ***! + \************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save({ + attributes +}) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}); +} + +/***/ }), + +/***/ "./src/story-timeline/style.scss": +/*!***************************************!*\ + !*** ./src/story-timeline/style.scss ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/data": +/*!******************************!*\ + !*** external ["wp","data"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "story-timeline/index": 0, +/******/ "story-timeline/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["story-timeline/style-index"], () => (__webpack_require__("./src/story-timeline/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline/index.js.map b/plugins/carhop-blocks/build/story-timeline/index.js.map new file mode 100644 index 0000000..f6c55a8 --- /dev/null +++ b/plugins/carhop-blocks/build/story-timeline/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"story-timeline/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AACzB;AACrB;AAAA;AAER,SAASU,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,MAAMC,KAAK,GAAGX,0DAAS,CACrBY,MAAM,IAAK;IACX,MAAM;MAAEC;IAAU,CAAC,GAAGD,MAAM,CAAC,mBAAmB,CAAC;IACjD,MAAME,WAAW,GAAGD,SAAS,CAACH,KAAK,CAACK,QAAQ,CAAC,IAAI,EAAE;IACnD,OAAOD,WAAW,CAChBE,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,IAAI,KAAK,mCAAmC,CAAC,CAC7DC,GAAG,CAAE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ACbG,CAAC,EAAC;QAAwV,CAC1V;MAAC,CACA;IAAC,CACA;EAEP,CAAC;EACDC,IAAI,EAAEjC,6CAAI;EACVqB,IAAIA,+CAAAA;AACL,CAAC,CAAC,C;;;;;;;;;;;;;;;;;;ACvBmE;AAAA;AAEtD,SAASA,IAAIA,CAAC;EAAEpB;AAAW,CAAC,EAAE;EAC5C,oBAAON,sDAAA,CAACH,gEAAW,CAAC0C,OAAO,IAAE,CAAC;AAC/B,C;;;;;;;;;;;ACJA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/story-timeline/edit.js","webpack://carhop-blocks/./src/story-timeline/editor.scss","webpack://carhop-blocks/./src/story-timeline/index.js","webpack://carhop-blocks/./src/story-timeline/save.js","webpack://carhop-blocks/./src/story-timeline/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"data\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport { useSelect } from \"@wordpress/data\";\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tconst years = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlocks } = select(\"core/block-editor\");\n\t\t\tconst childBlocks = getBlocks(props.clientId) || [];\n\t\t\treturn childBlocks\n\t\t\t\t.filter((b) => b.name === \"carhop-blocks/story-timeline-step\")\n\t\t\t\t.map((b) => b.attributes?.year)\n\t\t\t\t.filter((y) => y !== undefined && y !== null && y !== \"\");\n\t\t},\n\t\t[props.clientId]\n\t);\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"story-timeline/index\": 0,\n\t\"story-timeline/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"story-timeline/style-index\"], () => (__webpack_require__(\"./src/story-timeline/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","useSelect","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","props","years","select","getBlocks","childBlocks","clientId","filter","b","name","map","year","y","undefined","children","className","idx","allowedBlocks","registerBlockType","save","metadata","icon","foreground","src","width","height","viewBox","stroke","id","class","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline/style-index.css b/plugins/carhop-blocks/build/story-timeline/style-index.css index 8b13789..a6b5ad6 100644 --- a/plugins/carhop-blocks/build/story-timeline/style-index.css +++ b/plugins/carhop-blocks/build/story-timeline/style-index.css @@ -1 +1,4 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/story-timeline/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/story-timeline/view.js b/plugins/carhop-blocks/build/story-timeline/view.js index b2bed41..e7bbac5 100644 --- a/plugins/carhop-blocks/build/story-timeline/view.js +++ b/plugins/carhop-blocks/build/story-timeline/view.js @@ -1 +1,58 @@ -document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".wp-block-carhop-blocks-story-timeline");if(!e)return;const t=new IntersectionObserver(e=>{e.forEach(e=>{const t=e.target.getAttribute("id"),r=document.querySelector(`a[href="#${t}"]`);console.log(r),e.isIntersecting&&(document.querySelectorAll('.story-timeline__years .story-timeline__year[data-active="true"]').forEach(e=>{e.setAttribute("data-active","false")}),e.target.setAttribute("active","true"),r?.parentElement?.setAttribute("data-active","true"))})},{rootMargin:"-10% 0px -50% 0px"}),r=document.querySelectorAll(".story-timeline__innerblocks .wp-block-carhop-blocks-story-timeline-step");console.log(r),r.forEach(e=>{t.observe(e)}),e.querySelectorAll(".story-timeline__year").forEach((e,t)=>{e.setAttribute("data-active",0===t?"true":"false")})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!************************************!*\ + !*** ./src/story-timeline/view.js ***! + \************************************/ +document.addEventListener("DOMContentLoaded", function () { + const timeline = document.querySelector(".wp-block-carhop-blocks-story-timeline"); + if (!timeline) return; + function initBlock() { + const years = timeline.querySelectorAll(".story-timeline__year"); + years.forEach((year, index) => { + year.setAttribute("data-active", index === 0 ? "true" : "false"); + }); + } + function removePreviousActiveLinkInSidebar() { + const activeSidebarLinks = document.querySelectorAll(`.story-timeline__years .story-timeline__year[data-active="true"]`); + activeSidebarLinks.forEach(sidebarLink => { + sidebarLink.setAttribute("data-active", "false"); + }); + } + const timelineStepsProgressionObserver = new IntersectionObserver(entries => { + // Ne pas traiter les entrées si l'observer est en pause (pendant un clic) + // const isIntersetionObserverPaused = getChapterObserverPausedState(); + // if (isIntersetionObserverPaused) return; + + entries.forEach(entry => { + const blockId = entry.target.getAttribute("id"); + const relatedStepLink = document.querySelector(`a[href="#${blockId}"]`); + console.log(relatedStepLink); + if (entry.isIntersecting) { + removePreviousActiveLinkInSidebar(); + // setActiveLinkInSidebar(); + + entry.target.setAttribute("active", "true"); + relatedStepLink?.parentElement?.setAttribute("data-active", "true"); + } + }); + }, { + rootMargin: "-10% 0px -50% 0px" + }); + const timelineSteps = document.querySelectorAll(".story-timeline__innerblocks .wp-block-carhop-blocks-story-timeline-step"); + console.log(timelineSteps); + timelineSteps.forEach(step => { + timelineStepsProgressionObserver.observe(step); + }); + initBlock(); +}); + +// Initialiser les écouteurs de liens +// observeChapterLinks(); + +// // Observer tous les titres h2 de l'article +// const titlesBlocks = document.querySelectorAll('.article-content h2'); +// titlesBlocks.forEach((block) => { +// chapterProgressionObserver.observe(block); +// }); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/story-timeline/view.js.map b/plugins/carhop-blocks/build/story-timeline/view.js.map new file mode 100644 index 0000000..c804db8 --- /dev/null +++ b/plugins/carhop-blocks/build/story-timeline/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"story-timeline/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAA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CACD,CAAC;EAED,MAAMC,aAAa,GAAG3B,QAAQ,CAACM,gBAAgB,CAC9C,0EACD,CAAC;EACDgB,OAAO,CAACC,GAAG,CAACI,aAAa,CAAC;EAC1BA,aAAa,CAACpB,OAAO,CAAEqB,IAAI,IAAK;IAC/Bd,gCAAgC,CAACe,OAAO,CAACD,IAAI,CAAC;EAC/C,CAAC,CAAC;EAEFxB,SAAS,CAAC,CAAC;AACZ,CAAC,CAAC;;AAEF;AACA;;AAEA;AACA;AACA;AACA;AACA,M","sources":["webpack://carhop-blocks/./src/story-timeline/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\r\n\tconst timeline = document.querySelector(\r\n\t\t\".wp-block-carhop-blocks-story-timeline\"\r\n\t);\r\n\tif (!timeline) return;\r\n\r\n\tfunction initBlock() {\r\n\t\tconst years = timeline.querySelectorAll(\".story-timeline__year\");\r\n\t\tyears.forEach((year, index) => {\r\n\t\t\tyear.setAttribute(\"data-active\", index === 0 ? \"true\" : \"false\");\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removePreviousActiveLinkInSidebar() {\r\n\t\tconst activeSidebarLinks = document.querySelectorAll(\r\n\t\t\t`.story-timeline__years .story-timeline__year[data-active=\"true\"]`\r\n\t\t);\r\n\r\n\t\tactiveSidebarLinks.forEach((sidebarLink) => {\r\n\t\t\tsidebarLink.setAttribute(\"data-active\", \"false\");\r\n\t\t});\r\n\t}\r\n\r\n\tconst timelineStepsProgressionObserver = new IntersectionObserver(\r\n\t\t(entries) => {\r\n\t\t\t// Ne pas traiter les entrées si l'observer est en pause (pendant un clic)\r\n\t\t\t// const isIntersetionObserverPaused = getChapterObserverPausedState();\r\n\t\t\t// if (isIntersetionObserverPaused) return;\r\n\r\n\t\t\tentries.forEach((entry) => {\r\n\t\t\t\tconst blockId = entry.target.getAttribute(\"id\");\r\n\t\t\t\tconst relatedStepLink = document.querySelector(`a[href=\"#${blockId}\"]`);\r\n\t\t\t\tconsole.log(relatedStepLink);\r\n\r\n\t\t\t\tif (entry.isIntersecting) {\r\n\t\t\t\t\tremovePreviousActiveLinkInSidebar();\r\n\t\t\t\t\t// setActiveLinkInSidebar();\r\n\r\n\t\t\t\t\tentry.target.setAttribute(\"active\", \"true\");\r\n\t\t\t\t\trelatedStepLink?.parentElement?.setAttribute(\"data-active\", \"true\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\t{\r\n\t\t\trootMargin: \"-10% 0px -50% 0px\",\r\n\t\t}\r\n\t);\r\n\r\n\tconst timelineSteps = document.querySelectorAll(\r\n\t\t\".story-timeline__innerblocks .wp-block-carhop-blocks-story-timeline-step\"\r\n\t);\r\n\tconsole.log(timelineSteps);\r\n\ttimelineSteps.forEach((step) => {\r\n\t\ttimelineStepsProgressionObserver.observe(step);\r\n\t});\r\n\r\n\tinitBlock();\r\n});\r\n\r\n// Initialiser les écouteurs de liens\r\n// observeChapterLinks();\r\n\r\n// // Observer tous les titres h2 de l'article\r\n// const titlesBlocks = document.querySelectorAll('.article-content h2');\r\n// titlesBlocks.forEach((block) => {\r\n// chapterProgressionObserver.observe(block);\r\n// });\r\n"],"names":["document","addEventListener","timeline","querySelector","initBlock","years","querySelectorAll","forEach","year","index","setAttribute","removePreviousActiveLinkInSidebar","activeSidebarLinks","sidebarLink","timelineStepsProgressionObserver","IntersectionObserver","entries","entry","blockId","target","getAttribute","relatedStepLink","console","log","isIntersecting","parentElement","rootMargin","timelineSteps","step","observe"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/index.css b/plugins/carhop-blocks/build/subscribe-infolettre/index.css index ff7ab11..0a7e282 100644 --- a/plugins/carhop-blocks/build/subscribe-infolettre/index.css +++ b/plugins/carhop-blocks/build/subscribe-infolettre/index.css @@ -1 +1,13 @@ -.wp-block-create-block-subscribe-infolettre{border:1px dotted red} +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/subscribe-infolettre/editor.scss ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-subscribe-infolettre { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/index.css.map b/plugins/carhop-blocks/build/subscribe-infolettre/index.css.map new file mode 100644 index 0000000..d5e8796 --- /dev/null +++ b/plugins/carhop-blocks/build/subscribe-infolettre/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"subscribe-infolettre/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/subscribe-infolettre/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-subscribe-infolettre {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/index.js b/plugins/carhop-blocks/build/subscribe-infolettre/index.js index 9b9df01..5d6df6d 100644 --- a/plugins/carhop-blocks/build/subscribe-infolettre/index.js +++ b/plugins/carhop-blocks/build/subscribe-infolettre/index.js @@ -1 +1,394 @@ -(()=>{"use strict";var e,s={5092:()=>{const e=window.wp.blocks,s=(window.wp.i18n,window.wp.blockEditor),t=window.ReactJSXRuntime,r=JSON.parse('{"UU":"carhop-blocks/subscribe-infolettre"}');(0,e.registerBlockType)(r.UU,{icon:{src:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 32",children:[(0,t.jsx)("path",{d:"M0,27v-3.87l3.98-3.97V5.61L9.61,0h8.77l5.63,5.61v13.54l3.98,3.97v3.87"}),(0,t.jsx)("path",{class:"cls-1",d:"M9,31h10"})]}),foreground:"#136f63"},edit:function({attributes:e,setAttributes:r}){const{title:i}=e;return(0,t.jsx)("section",{...(0,s.useBlockProps)({className:"subscribe-infolettre alignfull"}),children:(0,t.jsxs)("div",{className:"subscribe-infolettre__inner",children:[(0,t.jsxs)("div",{className:"subscribe-infolettre__content",children:[(0,t.jsx)("p",{className:"block-title",children:"infolettre"}),(0,t.jsx)(s.RichText,{tagName:"h2",className:"subscribe-infolettre__title",placeholder:"Description",value:i,onChange:e=>r({title:e})}),(0,t.jsx)(s.InnerBlocks,{template:[["core/paragraph",{className:"subscribe-infolettre__description",placeholder:"Description",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue augue, sagittis quis mauris in, consequat vehicula est. Aliquam quis nulla ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras bibendum eget lorem eget aliquet. Fusce vel consequat neque. "}]],allowedBlocks:["core/heading","core/paragraph","core/list","core/button","core/buttons"]})]}),(0,t.jsx)("div",{className:"subscribe-infolettre__form",children:(0,t.jsxs)("form",{action:"",children:[(0,t.jsx)("input",{type:"text",placeholder:"Nom"}),(0,t.jsx)("input",{type:"email",placeholder:"Adresse email"}),(0,t.jsx)("button",{type:"submit",children:"S'abonner"})]})})]})})},save:function(){return(0,t.jsx)(s.InnerBlocks.Content,{})}})}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}};return s[e](o,o.exports,r),o.exports}r.m=s,e=[],r.O=(s,t,i,o)=>{if(!t){var n=1/0;for(u=0;u=o)&&Object.keys(r.O).every(e=>r.O[e](t[c]))?t.splice(c--,1):(l=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,i,o]},r.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{var e={369:0,9061:0};r.O.j=s=>0===e[s];var s=(s,t)=>{var i,o,[n,l,c]=t,a=0;if(n.some(s=>0!==e[s])){for(i in l)r.o(l,i)&&(r.m[i]=l[i]);if(c)var u=c(r)}for(s&&s(t);ar(5092));i=r.O(i)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/subscribe-infolettre/block.json": +/*!*********************************************!*\ + !*** ./src/subscribe-infolettre/block.json ***! + \*********************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/subscribe-infolettre","version":"0.1.0","title":"Infolettre","category":"carhop-blocks","icon":"smiley","description":"Infolettre","example":{},"supports":{"html":false},"textdomain":"subscribe-infolettre","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php","attributes":{"title":{"type":"string","default":"Restez connectés à l’histoire sociale"}}}'); + +/***/ }), + +/***/ "./src/subscribe-infolettre/edit.js": +/*!******************************************!*\ + !*** ./src/subscribe-infolettre/edit.js ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/subscribe-infolettre/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__); + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + title + } = attributes; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("section", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "subscribe-infolettre alignfull" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", { + className: "subscribe-infolettre__inner", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", { + className: "subscribe-infolettre__content", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", { + className: "block-title", + children: "infolettre" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + tagName: "h2", + className: "subscribe-infolettre__title", + placeholder: "Description", + value: title, + onChange: value => setAttributes({ + title: value + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + template: [ + // [ + // "core/heading", + // { + // className: "subscribe-infolettre__title", + // placeholder: "Titre", + // content: "Un titre précis ", + // }, + // ], + ["core/paragraph", { + className: "subscribe-infolettre__description", + placeholder: "Description", + content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse augue augue, sagittis quis mauris in, consequat vehicula est. Aliquam quis nulla ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras bibendum eget lorem eget aliquet. Fusce vel consequat neque. " + }]], + allowedBlocks: ["core/heading", "core/paragraph", "core/list", "core/button", "core/buttons"] + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", { + className: "subscribe-infolettre__form", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("form", { + action: "", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", { + type: "text", + placeholder: "Nom" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", { + type: "email", + placeholder: "Adresse email" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("button", { + type: "submit", + children: "S'abonner" + })] + }) + })] + }) + }); +} + +/***/ }), + +/***/ "./src/subscribe-infolettre/editor.scss": +/*!**********************************************!*\ + !*** ./src/subscribe-infolettre/editor.scss ***! + \**********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/subscribe-infolettre/index.js": +/*!*******************************************!*\ + !*** ./src/subscribe-infolettre/index.js ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/subscribe-infolettre/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/subscribe-infolettre/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/subscribe-infolettre/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/subscribe-infolettre/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("svg", { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 28 32", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M0,27v-3.87l3.98-3.97V5.61L9.61,0h8.77l5.63,5.61v13.54l3.98,3.97v3.87" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + class: "cls-1", + d: "M9,31h10" + })] + }), + foreground: "#136f63" + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/subscribe-infolettre/save.js": +/*!******************************************!*\ + !*** ./src/subscribe-infolettre/save.js ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}); +} + +/***/ }), + +/***/ "./src/subscribe-infolettre/style.scss": +/*!*********************************************!*\ + !*** ./src/subscribe-infolettre/style.scss ***! + \*********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "subscribe-infolettre/index": 0, +/******/ "subscribe-infolettre/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["subscribe-infolettre/style-index"], () => (__webpack_require__("./src/subscribe-infolettre/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/index.js.map b/plugins/carhop-blocks/build/subscribe-infolettre/index.js.map new file mode 100644 index 0000000..cf0f6d9 --- /dev/null +++ b/plugins/carhop-blocks/build/subscribe-infolettre/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"subscribe-infolettre/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAC0C;AACxD;AAAA;AAER,SAASQ,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC;EAAM,CAAC,GAAGF,UAAU;EAC5B,oBACCJ,sDAAA;IAAA,GACKJ,sEAAa,CAAC;MACjBW,SAAS,EAAE;IACZ,CAAC,CAAC;IAAAC,QAAA,eAEFN,uDAAA;MAAKK,SAAS,EAAC,6BAA6B;MAAAC,QAAA,gBAC3CN,uDAAA;QAAKK,SAAS,EAAC,+BAA+B;QAAAC,QAAA,gBAC7CR,sDAAA;UAAGO,SAAS,EAAC,aAAa;UAAAC,QAAA,EAAC;QAAU,CAAG,CAAC,eACzCR,sDAAA,CAACF,6DAAQ;UACRW,OAAO,EAAC,IAAI;UACZF,SAAS,EAAC,6BAA6B;UACvCG,WAAW,EAAC,aAAa;UACzBC,KAAK,EAAEL,KAAM;UACbM,QAAQ,EAAGD,KAAK,IAAKN,aAAa,CAAC;YAAEC,KAAK,EAAEK;UAAM,CAAC;QAAE,CACrD,CAAC,eACFX,sDAAA,CAACH,gEAAW;UACXgB,QAAQ,EAAE;UACT;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA,CACC,gBAAgB,EAChB;YACCN,SAAS,EAAE,mCAAmC;YAC9CG,WAAW,EAAE,aAAa;YAC1BI,OAAO,EACN;UACF,CAAC,CACD,CACA;UACFC,aAAa,EAAE,CACd,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,cAAc;QACb,CACF,CAAC;MAAA,CACE,CAAC,eAENf,sDAAA;QAAKO,SAA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WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/subscribe-infolettre/edit.js","webpack://carhop-blocks/./src/subscribe-infolettre/editor.scss?7992","webpack://carhop-blocks/./src/subscribe-infolettre/index.js","webpack://carhop-blocks/./src/subscribe-infolettre/save.js","webpack://carhop-blocks/./src/subscribe-infolettre/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { title } = attributes;\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

infolettre

\n\t\t\t\t\t setAttributes({ title: value })}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\n\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"subscribe-infolettre/index\": 0,\n\t\"subscribe-infolettre/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"subscribe-infolettre/style-index\"], () => (__webpack_require__(\"./src/subscribe-infolettre/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","RichText","jsx","_jsx","jsxs","_jsxs","Edit","attributes","setAttributes","title","className","children","tagName","placeholder","value","onChange","template","content","allowedBlocks","action","type","registerBlockType","save","metadata","name","icon","src","xmlns","viewBox","d","class","foreground","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/style-index.css b/plugins/carhop-blocks/build/subscribe-infolettre/style-index.css index 8b13789..9b3fe56 100644 --- a/plugins/carhop-blocks/build/subscribe-infolettre/style-index.css +++ b/plugins/carhop-blocks/build/subscribe-infolettre/style-index.css @@ -1 +1,4 @@ +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/subscribe-infolettre/style.scss ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/plugins/carhop-blocks/build/subscribe-infolettre/view.js b/plugins/carhop-blocks/build/subscribe-infolettre/view.js index e69de29..b93aa63 100644 --- a/plugins/carhop-blocks/build/subscribe-infolettre/view.js +++ b/plugins/carhop-blocks/build/subscribe-infolettre/view.js @@ -0,0 +1,7 @@ +/******/ (() => { // webpackBootstrap +/*!******************************************!*\ + !*** ./src/subscribe-infolettre/view.js ***! + \******************************************/ + +/******/ })() +; \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/index.css b/plugins/carhop-blocks/build/tab-group/index.css index 99581b6..50eb3e2 100644 --- a/plugins/carhop-blocks/build/tab-group/index.css +++ b/plugins/carhop-blocks/build/tab-group/index.css @@ -1 +1,13 @@ -.wp-block-create-block-chapo{border:1px dotted red} +/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tab-group/editor.scss ***! + \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/index.css.map b/plugins/carhop-blocks/build/tab-group/index.css.map new file mode 100644 index 0000000..b2d47c4 --- /dev/null +++ b/plugins/carhop-blocks/build/tab-group/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"tab-group/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/tab-group/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/index.js b/plugins/carhop-blocks/build/tab-group/index.js index 39d9e12..025ac5a 100644 --- a/plugins/carhop-blocks/build/tab-group/index.js +++ b/plugins/carhop-blocks/build/tab-group/index.js @@ -1 +1,395 @@ -(()=>{"use strict";var t,e={2050:()=>{const t=window.wp.blocks,e=window.wp.i18n,r=window.wp.blockEditor,s=window.wp.data,o=window.ReactJSXRuntime,a=JSON.parse('{"UU":"carhop-blocks/tab-group"}');(0,t.registerBlockType)(a.UU,{icon:{src:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",children:(0,o.jsx)("path",{d:"M46,10H8c-2.1,0-4.2.8-5.7,2.3s-2.3,3.5-2.3,5.7v38c0,2.1.8,4.2,2.3,5.7s3.5,2.3,5.7,2.3h38c2.1,0,4.2-.8,5.7-2.3s2.3-3.5,2.3-5.7V18c0-2.1-.8-4.2-2.3-5.7s-3.5-2.3-5.7-2.3ZM25.8,18.3c.5-.5,1.3-.8,2-.8h0c1.1,0,2.2.7,2.6,1.8.4,1.1.2,2.3-.6,3.1s-2,1.1-3.1.6c-1.1-.4-1.7-1.5-1.8-2.6,0-.8.3-1.5.8-2ZM19.5,17.5c1.1,0,2.2.7,2.6,1.8.4,1.1.2,2.3-.6,3.1s-2,1.1-3.1.6c-1.1-.4-1.7-1.5-1.8-2.6,0-1.6,1.3-2.8,2.8-2.8ZM11.2,17.5c1.6,0,2.8,1.3,2.8,2.8s-1.3,2.8-2.8,2.8-2.8-1.3-2.8-2.8,1.3-2.8,2.8-2.8ZM50,56c0,2.2-1.8,4-4,4H8c-2.2,0-4-1.8-4-4v-25.3h46v25.3ZM61.7,2.3C60.2.8,58.1,0,56,0H18C15.9,0,13.8.8,12.3,2.3s-2.3,3.5-2.3,5.7h36c5.5,0,10,4.5,10,10v36c2.1,0,4.2-.8,5.7-2.3s2.3-3.5,2.3-5.7V8c0-2.1-.8-4.2-2.3-5.7Z",fill:"#146E63"})})},edit:function({attributes:t,setAttributes:a,clientId:c}){const i=(0,r.useBlockProps)({className:"tab-group"}),l=(0,s.useSelect)(t=>{const r=t("core/block-editor").getBlock(c);return r?.innerBlocks?r.innerBlocks.map((t,r)=>({id:`tab-${r+1}`,panelId:`tabpanel-${r+1}`,title:t.attributes?.title||(0,e.__)("Sans titre","tab-group"),iconUrl:t.attributes?.iconUrl||""})):[]},[c]);return(0,o.jsxs)("section",{...i,children:[(0,o.jsx)("div",{className:"tab-group__toolbar",children:(0,o.jsx)("div",{role:"tablist","aria-labelledby":"tablist-1",className:"tablist",children:l.map((t,e)=>(0,o.jsxs)("button",{id:t.id,type:"button",role:"tab","aria-selected":0===e,"aria-controls":t.panelId,tabIndex:0===e?0:-1,"data-tab":e,children:[t.iconUrl&&(0,o.jsx)("img",{src:t.iconUrl,alt:"",className:"tab__icon","aria-hidden":!0}),(0,o.jsx)("span",{children:t.title})]},t.id))})}),(0,o.jsx)(r.InnerBlocks,{allowedBlocks:["carhop-blocks/tab"],template:[["carhop-blocks/tab"]]})]})},save:function(){return(0,o.jsx)(r.InnerBlocks.Content,{})}})}},r={};function s(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,s),a.exports}s.m=e,t=[],s.O=(e,r,o,a)=>{if(!r){var c=1/0;for(b=0;b=a)&&Object.keys(s.O).every(t=>s.O[t](r[l]))?r.splice(l--,1):(i=!1,a0&&t[b-1][2]>a;b--)t[b]=t[b-1];t[b]=[r,o,a]},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={8367:0,5175:0};s.O.j=e=>0===t[e];var e=(e,r)=>{var o,a,[c,i,l]=r,n=0;if(c.some(e=>0!==t[e])){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(l)var b=l(s)}for(e&&e(r);ns(2050));o=s.O(o)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/tab-group/block.json": +/*!**********************************!*\ + !*** ./src/tab-group/block.json ***! + \**********************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/tab-group","version":"0.1.0","title":"Tab Group","category":"carhop-blocks","icon":"smiley","description":"Tab Group pour la mise en forme supérieure d\'éléments de contenu","example":{},"supports":{"html":false,"color":{"text":true,"background":false,"link":false}},"textdomain":"tab-group","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php"}'); + +/***/ }), + +/***/ "./src/tab-group/edit.js": +/*!*******************************!*\ + !*** ./src/tab-group/edit.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data"); +/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/tab-group/editor.scss"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes, + clientId +}) { + const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "tab-group" + }); + const tabs = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useSelect)(select => { + const block = select("core/block-editor").getBlock(clientId); + if (!block?.innerBlocks) return []; + return block.innerBlocks.map((innerBlock, index) => ({ + id: `tab-${index + 1}`, + panelId: `tabpanel-${index + 1}`, + title: innerBlock.attributes?.title || (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Sans titre", "tab-group"), + iconUrl: innerBlock.attributes?.iconUrl || "" + })); + }, [clientId]); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("section", { + ...blockProps, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + className: "tab-group__toolbar", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + role: "tablist", + "aria-labelledby": "tablist-1", + className: "tablist", + children: tabs.map((tab, index) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("button", { + id: tab.id, + type: "button", + role: "tab", + "aria-selected": index === 0, + "aria-controls": tab.panelId, + tabIndex: index === 0 ? 0 : -1, + "data-tab": index, + children: [tab.iconUrl && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", { + src: tab.iconUrl, + alt: "", + className: "tab__icon", + "aria-hidden": true + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("span", { + children: tab.title + })] + }, tab.id)) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["carhop-blocks/tab"], + template: [["carhop-blocks/tab"]] + })] + }); +} + +/***/ }), + +/***/ "./src/tab-group/editor.scss": +/*!***********************************!*\ + !*** ./src/tab-group/editor.scss ***! + \***********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/tab-group/index.js": +/*!********************************!*\ + !*** ./src/tab-group/index.js ***! + \********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/tab-group/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/tab-group/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/tab-group/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/tab-group/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + width: "64", + height: "64", + viewBox: "0 0 64 64", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + d: "M46,10H8c-2.1,0-4.2.8-5.7,2.3s-2.3,3.5-2.3,5.7v38c0,2.1.8,4.2,2.3,5.7s3.5,2.3,5.7,2.3h38c2.1,0,4.2-.8,5.7-2.3s2.3-3.5,2.3-5.7V18c0-2.1-.8-4.2-2.3-5.7s-3.5-2.3-5.7-2.3ZM25.8,18.3c.5-.5,1.3-.8,2-.8h0c1.1,0,2.2.7,2.6,1.8.4,1.1.2,2.3-.6,3.1s-2,1.1-3.1.6c-1.1-.4-1.7-1.5-1.8-2.6,0-.8.3-1.5.8-2ZM19.5,17.5c1.1,0,2.2.7,2.6,1.8.4,1.1.2,2.3-.6,3.1s-2,1.1-3.1.6c-1.1-.4-1.7-1.5-1.8-2.6,0-1.6,1.3-2.8,2.8-2.8ZM11.2,17.5c1.6,0,2.8,1.3,2.8,2.8s-1.3,2.8-2.8,2.8-2.8-1.3-2.8-2.8,1.3-2.8,2.8-2.8ZM50,56c0,2.2-1.8,4-4,4H8c-2.2,0-4-1.8-4-4v-25.3h46v25.3ZM61.7,2.3C60.2.8,58.1,0,56,0H18C15.9,0,13.8.8,12.3,2.3s-2.3,3.5-2.3,5.7h36c5.5,0,10,4.5,10,10v36c2.1,0,4.2-.8,5.7-2.3s2.3-3.5,2.3-5.7V8c0-2.1-.8-4.2-2.3-5.7Z", + fill: "#146E63" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/tab-group/save.js": +/*!*******************************!*\ + !*** ./src/tab-group/save.js ***! + \*******************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + +function save() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {}); +} + +/***/ }), + +/***/ "./src/tab-group/style.scss": +/*!**********************************!*\ + !*** ./src/tab-group/style.scss ***! + \**********************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/data": +/*!******************************!*\ + !*** external ["wp","data"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "tab-group/index": 0, +/******/ "tab-group/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["tab-group/style-index"], () => (__webpack_require__("./src/tab-group/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/index.js.map b/plugins/carhop-blocks/build/tab-group/index.js.map new file mode 100644 index 0000000..5c1be68 --- /dev/null +++ b/plugins/carhop-blocks/build/tab-group/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tab-group/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AACzB;AACrB;AAAA;AAER,SAASQ,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAEC;AAAS,CAAC,EAAE;EACrE,MAAMC,UAAU,GAAGX,sEAAa,CAAC;IAChCY,SAAS,EAAE;EACZ,CAAC,CAAC;EAEF,MAAMC,IAAI,GAAGX,0DAAS,CACpBY,MAAM,IAAK;IACX,MAAMC,KAAK,GAAGD,MAAM,CAAC,mBAAmB,CAAC,CAACE,QAAQ,CAACN,QAAQ,CAAC;IAC5D,IAAI,CAACK,KAAK,EAAEE,WAAW,EAAE,OAAO,EAAE;IAClC,OAAOF,KAAK,CAACE,WAAW,CAACC,GAAG,CAAC,CAACC,UAAU,EAAEC,KAAK,MAAM;MACpDC,EAAE,EAAE,OAAOD,KAAK,GAAG,CAAC,EAAE;MACtBE,OAAO,EAAE,YAAYF,KAAK,GAAG,CAAC,EAAE;MAChCG,KAAK,EAAEJ,UAAU,CAACX,UAAU,EAAEe,KAAK,IAAIxB,mDAAE,CAAC,YAAY,EAAE,WAAW,CAAC;MACpEyB,OAAO,EAAEL,UAAU,CAACX,UAAU,EAAEgB,OAAO,IAAI;IAC5C,CAAC,CAAC,CAAC;EACJ,CAAC,EACD,CAACd,QAAQ,CACV,CAAC;EAED,oBACCJ,uDAAA;IAAA,GAAaK,UAAU;IAAAc,QAAA,gBACtBrB,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C,urBAAurB;QACzrBC,IAAI,EAAC;MAAS,CACd;IAAC,CACE;EAEP,CAAC;EACDC,IAAI,EAAEtC,6CAAI;EACV4B,IAAIA,+CAAAA;AACL,CAAC,CAAC,C;;;;;;;;;;;;;;;;;;ACzBsD;AACF;AAAA;AAEvC,SAASA,IAAIA,CAAA,EAAG;EAC9B,oBAAO/B,sDAAA,CAACH,gEAAW,CAAC6C,OAAO,IAAE,CAAC;AAC/B,C;;;;;;;;;;;ACLA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/tab-group/edit.js","webpack://carhop-blocks/./src/tab-group/editor.scss?c104","webpack://carhop-blocks/./src/tab-group/index.js","webpack://carhop-blocks/./src/tab-group/save.js","webpack://carhop-blocks/./src/tab-group/style.scss?4033","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"data\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport { useSelect } from \"@wordpress/data\";\nimport \"./editor.scss\";\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tconst blockProps = useBlockProps({\n\t\tclassName: \"tab-group\",\n\t});\n\n\tconst tabs = useSelect(\n\t\t(select) => {\n\t\t\tconst block = select(\"core/block-editor\").getBlock(clientId);\n\t\t\tif (!block?.innerBlocks) return [];\n\t\t\treturn block.innerBlocks.map((innerBlock, index) => ({\n\t\t\t\tid: `tab-${index + 1}`,\n\t\t\t\tpanelId: `tabpanel-${index + 1}`,\n\t\t\t\ttitle: innerBlock.attributes?.title || __(\"Sans titre\", \"tab-group\"),\n\t\t\t\ticonUrl: innerBlock.attributes?.iconUrl || \"\",\n\t\t\t}));\n\t\t},\n\t\t[clientId],\n\t);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{tabs.map((tab, index) => (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{tab.iconUrl && (\n\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{tab.title}\n\t\t\t\t\t\t\n\t\t\t\t\t))}\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn ;\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"tab-group/index\": 0,\n\t\"tab-group/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"tab-group/style-index\"], () => (__webpack_require__(\"./src/tab-group/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","useSelect","jsx","_jsx","jsxs","_jsxs","Edit","attributes","setAttributes","clientId","blockProps","className","tabs","select","block","getBlock","innerBlocks","map","innerBlock","index","id","panelId","title","iconUrl","children","role","tab","type","tabIndex","src","alt","allowedBlocks","template","registerBlockType","save","metadata","name","icon","xmlns","width","height","viewBox","d","fill","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/style-index.css b/plugins/carhop-blocks/build/tab-group/style-index.css index 140d79f..8270f65 100644 --- a/plugins/carhop-blocks/build/tab-group/style-index.css +++ b/plugins/carhop-blocks/build/tab-group/style-index.css @@ -1 +1,39 @@ -.tab__title{margin-bottom:2rem}.tablist button{gap:10px!important}.tablist button[aria-selected=false] img{filter:grayscale(100%)}.tab-group__toolbar{margin-bottom:2rem}.tablist .tab__icon{--iconSize:1.5rem;height:var(--iconSize);-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;vertical-align:middle;width:var(--iconSize)}.wp-block-carhop-blocks-tab[data-active=false]{display:none}.wp-block-carhop-blocks-tab[data-active=true]{display:block!important} +/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tab-group/style.scss ***! + \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.tab__title { + margin-bottom: 2rem; +} + +.tablist button { + gap: 10px !important; +} + +.tablist button[aria-selected=false] img { + filter: grayscale(100%); +} + +.tab-group__toolbar { + margin-bottom: 2rem; +} + +.tablist .tab__icon { + --iconSize: 1.5rem; + width: var(--iconSize); + height: var(--iconSize); + -o-object-fit: contain; + object-fit: contain; + -o-object-position: center; + object-position: center; + vertical-align: middle; +} + +.wp-block-carhop-blocks-tab[data-active=false] { + display: none; +} + +.wp-block-carhop-blocks-tab[data-active=true] { + display: block !important; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/style-index.css.map b/plugins/carhop-blocks/build/tab-group/style-index.css.map new file mode 100644 index 0000000..187d1bb --- /dev/null +++ b/plugins/carhop-blocks/build/tab-group/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"tab-group/style-index.css","mappings":";;;AAAA;EACC;AACD;;AAGC;EACC;AAAF;;AAGE;EACC;AADH;;AAMA;EACC;AAHD;;AAMA;EACC;EAEA;EACA;EAEA;KAAA;EACA;KAAA;EACA;AALD;;AAQA;EACC;AALD;;AAOA;EACC;AAJD,C","sources":["webpack://carhop-blocks/./src/tab-group/style.scss"],"sourcesContent":[".tab__title {\n\tmargin-bottom: 2rem;\n}\n\n.tablist {\n\tbutton {\n\t\tgap: 10px !important;\n\t}\n\tbutton[aria-selected=\"false\"] {\n\t\timg {\n\t\t\tfilter: grayscale(100%);\n\t\t}\n\t}\n}\n\n.tab-group__toolbar {\n\tmargin-bottom: 2rem;\n}\n\n.tablist .tab__icon {\n\t--iconSize: 1.5rem;\n\n\twidth: var(--iconSize);\n\theight: var(--iconSize);\n\t// background: blue;\n\tobject-fit: contain;\n\tobject-position: center;\n\tvertical-align: middle;\n}\n\n.wp-block-carhop-blocks-tab[data-active=\"false\"] {\n\tdisplay: none;\n}\n.wp-block-carhop-blocks-tab[data-active=\"true\"] {\n\tdisplay: block !important;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/view.js b/plugins/carhop-blocks/build/tab-group/view.js index 36a58ed..4e5ce81 100644 --- a/plugins/carhop-blocks/build/tab-group/view.js +++ b/plugins/carhop-blocks/build/tab-group/view.js @@ -1 +1,38 @@ -document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".tab-group").forEach(t=>{const e=t.querySelector(".tab-group__toolbar").querySelectorAll("button");e.forEach(r=>{r.addEventListener("click",()=>{var o;o=r,e.forEach(t=>{t.setAttribute("aria-selected","false")}),o.setAttribute("aria-selected","true"),function(e){const r=e.getAttribute("aria-controls"),o=t.querySelector(`#${r}`);console.log(o),t.querySelectorAll(".tab-group__innerblocks .tab").forEach(t=>{t.setAttribute("data-active","false")}),o.setAttribute("data-active","true")}(r)})})})}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!*******************************!*\ + !*** ./src/tab-group/view.js ***! + \*******************************/ +document.addEventListener("DOMContentLoaded", () => { + document.querySelectorAll(".tab-group").forEach(TabGroup => { + const toolbar = TabGroup.querySelector(".tab-group__toolbar"); + const tabs = toolbar.querySelectorAll("button"); + function setActiveTab(currentTab) { + tabs.forEach(tab => { + tab.setAttribute("aria-selected", "false"); + }); + currentTab.setAttribute("aria-selected", "true"); + } + function setActiveTabPanel(currentTabButton) { + const currentTabPanelId = currentTabButton.getAttribute("aria-controls"); + const currentTabPanel = TabGroup.querySelector(`#${currentTabPanelId}`); + console.log(currentTabPanel); + hideAllTabPanels(); + currentTabPanel.setAttribute("data-active", "true"); + } + function hideAllTabPanels() { + const tabPanels = TabGroup.querySelectorAll(".tab-group__innerblocks .tab"); + tabPanels.forEach(tabPanel => { + tabPanel.setAttribute("data-active", "false"); + }); + } + tabs.forEach(tab => { + tab.addEventListener("click", () => { + setActiveTab(tab); + setActiveTabPanel(tab); + }); + }); + }); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab-group/view.js.map b/plugins/carhop-blocks/build/tab-group/view.js.map new file mode 100644 index 0000000..0b65787 --- /dev/null +++ b/plugins/carhop-blocks/build/tab-group/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tab-group/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAAgB,CA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H,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/tab-group/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", () => {\n\tdocument.querySelectorAll(\".tab-group\").forEach((TabGroup) => {\n\t\tconst toolbar = TabGroup.querySelector(\".tab-group__toolbar\");\n\t\tconst tabs = toolbar.querySelectorAll(\"button\");\n\n\t\tfunction setActiveTab(currentTab) {\n\t\t\ttabs.forEach((tab) => {\n\t\t\t\ttab.setAttribute(\"aria-selected\", \"false\");\n\t\t\t});\n\t\t\tcurrentTab.setAttribute(\"aria-selected\", \"true\");\n\t\t}\n\t\tfunction setActiveTabPanel(currentTabButton) {\n\t\t\tconst currentTabPanelId = currentTabButton.getAttribute(\"aria-controls\");\n\t\t\tconst currentTabPanel = TabGroup.querySelector(`#${currentTabPanelId}`);\n\t\t\tconsole.log(currentTabPanel);\n\t\t\thideAllTabPanels();\n\t\t\tcurrentTabPanel.setAttribute(\"data-active\", \"true\");\n\t\t}\n\t\tfunction hideAllTabPanels() {\n\t\t\tconst tabPanels = TabGroup.querySelectorAll(\n\t\t\t\t\".tab-group__innerblocks .tab\",\n\t\t\t);\n\t\t\ttabPanels.forEach((tabPanel) => {\n\t\t\t\ttabPanel.setAttribute(\"data-active\", \"false\");\n\t\t\t});\n\t\t}\n\t\ttabs.forEach((tab) => {\n\t\t\ttab.addEventListener(\"click\", () => {\n\t\t\t\tsetActiveTab(tab);\n\t\t\t\tsetActiveTabPanel(tab);\n\t\t\t});\n\t\t});\n\t});\n});\n"],"names":["document","addEventListener","querySelectorAll","forEach","TabGroup","toolbar","querySelector","tabs","setActiveTab","currentTab","tab","setAttribute","setActiveTabPanel","currentTabButton","currentTabPanelId","getAttribute","currentTabPanel","console","log","hideAllTabPanels","tabPanels","tabPanel"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/index.css b/plugins/carhop-blocks/build/tab/index.css index 99581b6..fff2796 100644 --- a/plugins/carhop-blocks/build/tab/index.css +++ b/plugins/carhop-blocks/build/tab/index.css @@ -1 +1,13 @@ -.wp-block-create-block-chapo{border:1px dotted red} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tab/editor.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/index.css.map b/plugins/carhop-blocks/build/tab/index.css.map new file mode 100644 index 0000000..60fe8dd --- /dev/null +++ b/plugins/carhop-blocks/build/tab/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"tab/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/tab/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/index.js b/plugins/carhop-blocks/build/tab/index.js index 9a31646..fa86126 100644 --- a/plugins/carhop-blocks/build/tab/index.js +++ b/plugins/carhop-blocks/build/tab/index.js @@ -1 +1,454 @@ -(()=>{"use strict";var e,o={4962:()=>{const e=window.wp.blocks,o=window.wp.i18n,r=window.wp.blockEditor,c=window.wp.components,t=window.ReactJSXRuntime,a=JSON.parse('{"UU":"carhop-blocks/tab"}');(0,e.registerBlockType)(a.UU,{icon:{src:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"83.3",height:"83.3",viewBox:"0 0 83.3 83.3",children:(0,t.jsx)("path",{fill:"#146E63",d:"M72.7,0H10.7C4.8,0,0,4.8,0,10.7v62c0,5.9,4.8,10.7,10.7,10.7h62c5.9,0,10.7-4.8,10.7-10.7V10.7c0-5.9-4.8-10.7-10.7-10.7ZM10.7,5.8h62c2.7,0,4.8,2.2,4.8,4.8v8.7H5.8v-8.7c0-2.7,2.2-4.8,4.8-4.8ZM72.7,77.5H10.7c-2.7,0-4.8-2.2-4.8-4.8V25.2h71.7v47.5c0,1.3-.5,2.5-1.4,3.4s-2.1,1.4-3.4,1.4h0ZM9.7,12.5c0-1.5,1.3-2.7,2.8-2.8h19.5c.8-.1,1.7.2,2.3.7.6.6,1,1.3,1,2.2s-.4,1.6-1,2.2c-.6.6-1.5.8-2.3.7H12.5c-.8,0-1.5-.4-2-.9-.5-.6-.8-1.3-.8-2.1h0Z"})})},edit:function({attributes:e,setAttributes:a}){const{title:n,iconId:s,iconUrl:l}=e,i=(0,r.useBlockProps)({className:"block-chapo"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.InspectorControls,{children:[(0,t.jsx)(c.PanelBody,{title:(0,o.__)("Tab","carhop-blocks"),children:(0,t.jsx)(c.TextControl,{label:(0,o.__)("Titre","carhop-blocks"),value:n,onChange:e=>a({title:e})})}),(0,t.jsx)(c.PanelBody,{title:(0,o.__)("Icône","carhop-blocks"),children:(0,t.jsx)(r.MediaUploadCheck,{children:(0,t.jsx)(r.MediaUpload,{onSelect:e=>a({iconId:e.id,iconUrl:e.url}),allowedTypes:["image"],value:s,render:({open:e})=>(0,t.jsx)(t.Fragment,{children:l?(0,t.jsxs)("div",{className:"tab__icon-preview",children:[(0,t.jsx)("img",{src:l,alt:"",style:{maxWidth:48,height:"auto"}}),(0,t.jsxs)("div",{style:{marginTop:8},children:[(0,t.jsx)(c.Button,{variant:"secondary",onClick:e,style:{marginRight:8},children:(0,o.__)("Remplacer","carhop-blocks")}),(0,t.jsx)(c.Button,{variant:"tertiary",isDestructive:!0,onClick:()=>a({iconId:0,iconUrl:""}),children:(0,o.__)("Supprimer","carhop-blocks")})]})]}):(0,t.jsx)(c.Button,{variant:"secondary",onClick:e,children:(0,o.__)("Choisir une image","carhop-blocks")})})})})})]}),(0,t.jsxs)("div",{...i,children:[(0,t.jsx)(r.RichText,{tagName:"h2",className:"tab__title",placeholder:"Titre",value:n,onChange:e=>a({title:e})}),(0,t.jsx)(r.InnerBlocks,{allowedBlocks:["core/heading","core/paragraph","core/list","core/button","core/buttons","core/image","core/embed","core/quote","core/pullquote","core/media-text","core/table","core/group","core/columns","core/post-title","carhop-blocks/cta","carhop-blocks/heading","carhop-blocks/cta-group","carhop-blocks/audio-player","carhop-blocks/content-box","carhop-blocks/notice-panel","shortcode"],template:[["core/paragraph",{content:"Contenu"}]]})]})]})},save:function({attributes:e}){const{title:o}=e;return r.useBlockProps.save({className:"tab"}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.RichText.Content,{value:o,tagName:"h2",className:"tab__title"}),(0,t.jsx)(r.InnerBlocks.Content,{})]})}})}},r={};function c(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,c),a.exports}c.m=o,e=[],c.O=(o,r,t,a)=>{if(!r){var n=1/0;for(h=0;h=a)&&Object.keys(c.O).every(e=>c.O[e](r[l]))?r.splice(l--,1):(s=!1,a0&&e[h-1][2]>a;h--)e[h]=e[h-1];e[h]=[r,t,a]},c.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={6941:0,7345:0};c.O.j=o=>0===e[o];var o=(o,r)=>{var t,a,[n,s,l]=r,i=0;if(n.some(o=>0!==e[o])){for(t in s)c.o(s,t)&&(c.m[t]=s[t]);if(l)var h=l(c)}for(o&&o(r);ic(4962));t=c.O(t)})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/tab/block.json": +/*!****************************!*\ + !*** ./src/tab/block.json ***! + \****************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/tab","version":"0.1.0","title":"Tab","category":"carhop-blocks","icon":"smiley","description":"Tab pour la mise en forme supérieure d\'éléments de contenu","example":{},"supports":{"html":false,"color":{"text":true,"background":false,"link":false}},"textdomain":"tab","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","attributes":{"title":{"type":"string","default":""}}}'); + +/***/ }), + +/***/ "./src/tab/edit.js": +/*!*************************!*\ + !*** ./src/tab/edit.js ***! + \*************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/tab/editor.scss"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit({ + attributes, + setAttributes +}) { + const { + title, + iconId, + iconUrl + } = attributes; + const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "block-chapo" + }); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Tab", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Titre", "carhop-blocks"), + value: title, + onChange: value => setAttributes({ + title: value + }) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Icône", "carhop-blocks"), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUploadCheck, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.MediaUpload, { + onSelect: media => setAttributes({ + iconId: media.id, + iconUrl: media.url + }), + allowedTypes: ["image"], + value: iconId, + render: ({ + open + }) => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: iconUrl ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + className: "tab__icon-preview", + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("img", { + src: iconUrl, + alt: "", + style: { + maxWidth: 48, + height: "auto" + } + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + style: { + marginTop: 8 + }, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { + variant: "secondary", + onClick: open, + style: { + marginRight: 8 + }, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Remplacer", "carhop-blocks") + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { + variant: "tertiary", + isDestructive: true, + onClick: () => setAttributes({ + iconId: 0, + iconUrl: "" + }), + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Supprimer", "carhop-blocks") + })] + })] + }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, { + variant: "secondary", + onClick: open, + children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Choisir une image", "carhop-blocks") + }) + }) + }) + }) + })] + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { + ...blockProps, + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText, { + tagName: "h2", + className: "tab__title", + placeholder: "Titre", + value: title, + onChange: value => setAttributes({ + title: value + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks, { + allowedBlocks: ["core/heading", "core/paragraph", "core/list", "core/button", "core/buttons", "core/image", "core/embed", "core/quote", "core/pullquote", "core/media-text", "core/table", "core/group", "core/columns", "core/post-title", "carhop-blocks/cta", "carhop-blocks/heading", "carhop-blocks/cta-group", "carhop-blocks/audio-player", "carhop-blocks/content-box", "carhop-blocks/notice-panel", "shortcode"], + template: [["core/paragraph", { + content: "Contenu" + }]] + })] + })] + }); +} + +/***/ }), + +/***/ "./src/tab/editor.scss": +/*!*****************************!*\ + !*** ./src/tab/editor.scss ***! + \*****************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/tab/index.js": +/*!**************************!*\ + !*** ./src/tab/index.js ***! + \**************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/tab/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/tab/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/tab/save.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block.json */ "./src/tab/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__); + + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_4__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("svg", { + xmlns: "http://www.w3.org/2000/svg", + width: "83.3", + height: "83.3", + viewBox: "0 0 83.3 83.3", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("path", { + fill: "#146E63", + d: "M72.7,0H10.7C4.8,0,0,4.8,0,10.7v62c0,5.9,4.8,10.7,10.7,10.7h62c5.9,0,10.7-4.8,10.7-10.7V10.7c0-5.9-4.8-10.7-10.7-10.7ZM10.7,5.8h62c2.7,0,4.8,2.2,4.8,4.8v8.7H5.8v-8.7c0-2.7,2.2-4.8,4.8-4.8ZM72.7,77.5H10.7c-2.7,0-4.8-2.2-4.8-4.8V25.2h71.7v47.5c0,1.3-.5,2.5-1.4,3.4s-2.1,1.4-3.4,1.4h0ZM9.7,12.5c0-1.5,1.3-2.7,2.8-2.8h19.5c.8-.1,1.7.2,2.3.7.6.6,1,1.3,1,2.2s-.4,1.6-1,2.2c-.6.6-1.5.8-2.3.7H12.5c-.8,0-1.5-.4-2-.9-.5-.6-.8-1.3-.8-2.1h0Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/tab/save.js": +/*!*************************!*\ + !*** ./src/tab/save.js ***! + \*************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ save) +/* harmony export */ }); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__); + + + + +function save({ + attributes +}) { + const { + title + } = attributes; + const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps.save({ + className: "tab" + }); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.RichText.Content, { + value: title, + tagName: "h2", + className: "tab__title" + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InnerBlocks.Content, {})] + }); +} + +/***/ }), + +/***/ "./src/tab/style.scss": +/*!****************************!*\ + !*** ./src/tab/style.scss ***! + \****************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "tab/index": 0, +/******/ "tab/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["tab/style-index"], () => (__webpack_require__("./src/tab/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/index.js.map b/plugins/carhop-blocks/build/tab/index.js.map new file mode 100644 index 0000000..27ec290 --- /dev/null +++ b/plugins/carhop-blocks/build/tab/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tab/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAQJ;AACV;AACgD;AAAA;AAExD,SAASgB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,KAAK;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAGJ,UAAU;EAE7C,MAAMK,UAAU,GAAGrB,sEAAa,CAAC;IAChCsB,SAAS,EAAE;EACZ,CAAC,CAAC;EAEF,oBACCV,uDAAA,CAAAE,uDAAA;IAAAS,Q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;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/tab/edit.js","webpack://carhop-blocks/./src/tab/editor.scss?2e18","webpack://carhop-blocks/./src/tab/index.js","webpack://carhop-blocks/./src/tab/save.js","webpack://carhop-blocks/./src/tab/style.scss?a5e3","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tInspectorControls,\n\tMediaUpload,\n\tMediaUploadCheck,\n} from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { PanelBody, TextControl, Button } from \"@wordpress/components\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { title, iconId, iconUrl } = attributes;\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: \"block-chapo\",\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t setAttributes({ title: value })}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\ticonId: media.id,\n\t\t\t\t\t\t\t\t\ticonUrl: media.url,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tallowedTypes={[\"image\"]}\n\t\t\t\t\t\t\tvalue={iconId}\n\t\t\t\t\t\t\trender={({ open }) => (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t{iconUrl ? (\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetAttributes({ iconId: 0, iconUrl: \"\" })\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{__(\"Supprimer\", \"carhop-blocks\")}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t setAttributes({ title: value })}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps } from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { title } = attributes;\n\tconst blockProps = useBlockProps.save({\n\t\tclassName: \"tab\",\n\t});\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"tab/index\": 0,\n\t\"tab/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"tab/style-index\"], () => (__webpack_require__(\"./src/tab/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","InspectorControls","MediaUpload","MediaUploadCheck","PanelBody","TextControl","Button","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","title","iconId","iconUrl","blockProps","className","children","label","value","onChange","onSelect","media","id","url","allowedTypes","render","open","src","alt","style","maxWidth","height","marginTop","variant","onClick","marginRight","isDestructive","tagName","placeholder","allowedBlocks","template","content","registerBlockType","save","metadata","name","icon","xmlns","width","viewBox","fill","d","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/style-index.css b/plugins/carhop-blocks/build/tab/style-index.css index 7ab7da4..50a5648 100644 --- a/plugins/carhop-blocks/build/tab/style-index.css +++ b/plugins/carhop-blocks/build/tab/style-index.css @@ -1 +1,16 @@ -.wp-block-create-block-chapo{background-color:#21759b;color:#fff;padding:2px} +/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tab/style.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/style-index.css.map b/plugins/carhop-blocks/build/tab/style-index.css.map new file mode 100644 index 0000000..038f398 --- /dev/null +++ b/plugins/carhop-blocks/build/tab/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"tab/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/tab/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/view.js b/plugins/carhop-blocks/build/tab/view.js index 49825eb..6c0753f 100644 --- a/plugins/carhop-blocks/build/tab/view.js +++ b/plugins/carhop-blocks/build/tab/view.js @@ -1 +1,32 @@ -console.log("Hello World! (from create-block-chapo block)"); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/*!*************************!*\ + !*** ./src/tab/view.js ***! + \*************************/ +/** + * Use this file for JavaScript code that you want to run in the front-end + * on posts/pages that contain this block. + * + * When this file is defined as the value of the `viewScript` property + * in `block.json` it will be enqueued on the front end of the site. + * + * Example: + * + * ```js + * { + * "viewScript": "file:./view.js" + * } + * ``` + * + * If you're not making any changes to this file because your project doesn't need any + * JavaScript running in the front-end, then you should delete this file and remove + * the `viewScript` property from `block.json`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script + */ + +/* eslint-disable no-console */ +console.log('Hello World! (from create-block-chapo block)'); +/* eslint-enable no-console */ +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/tab/view.js.map b/plugins/carhop-blocks/build/tab/view.js.map new file mode 100644 index 0000000..e37e426 --- /dev/null +++ b/plugins/carhop-blocks/build/tab/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tab/view.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACAA,OAAO,CAACC,GAAG,CAAE,8CAA+C,CAAC;AAC7D,8B","sources":["webpack://carhop-blocks/./src/tab/view.js"],"sourcesContent":["/**\n * Use this file for JavaScript code that you want to run in the front-end\n * on posts/pages that contain this block.\n *\n * When this file is defined as the value of the `viewScript` property\n * in `block.json` it will be enqueued on the front end of the site.\n *\n * Example:\n *\n * ```js\n * {\n * \"viewScript\": \"file:./view.js\"\n * }\n * ```\n *\n * If you're not making any changes to this file because your project doesn't need any\n * JavaScript running in the front-end, then you should delete this file and remove\n * the `viewScript` property from `block.json`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#view-script\n */\n\n/* eslint-disable no-console */\nconsole.log( 'Hello World! (from create-block-chapo block)' );\n/* eslint-enable no-console */\n"],"names":["console","log"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/variations.css b/plugins/carhop-blocks/build/variations.css index 71826e1..fe6615d 100644 --- a/plugins/carhop-blocks/build/variations.css +++ b/plugins/carhop-blocks/build/variations.css @@ -1 +1,92 @@ -.wp-block-list.is-iconed-list{display:block}.wp-block-list.is-iconed-list li.has-custom-icon{gap:20px;margin-bottom:20px;padding-left:48px;position:relative}.wp-block-list.is-iconed-list li.has-custom-icon:before{background-color:var(--wp--preset--color--primary);background-position:50%;background-repeat:no-repeat;background-size:20px auto;content:" ";display:inline-block;height:36px;left:0;padding:6px;position:absolute;top:0;width:36px}.wp-block-list.is-iconed-list li.has-custom-icon--sablier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HRoPSIyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTYyOF8xNzgzMCI+CjxyZWN0IHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K)}.wp-block-list.is-iconed-list li.has-custom-icon--loupe:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxNCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNzU3MDQgMTIuNzYxMUM5LjkzNjU2IDEyLjc2MTEgMTIuNTE0MSAxMC4xMjgzIDEyLjUxNDEgNi44ODA1N0MxMi41MTQxIDMuNjMyODIgOS45MzY1NiAxIDYuNzU3MDQgMUMzLjU3NzUxIDEgMSAzLjYzMjgyIDEgNi44ODA1N0MxIDEwLjEyODMgMy41Nzc1MSAxMi43NjExIDYuNzU3MDQgMTIuNzYxMVoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNNi43NTc4MSAxMi43NTM3VjIwLjg2MjMiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K)}.wp-block-list.is-iconed-list li.has-custom-icon--cadenas:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjMiIHZpZXdCb3g9IjAgMCAxNSAyMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjY4ODUgOC44MzgwMUgxVjIxLjI4MTRIMTMuNjg4NVY4LjgzODAxWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0zLjM3NDA3IDguODM4ODdWNS45NDUxOUMzLjA3ODk5IDMuMjQ0ODkgNS4xMzE0NSAwLjk2NTg1NyA3LjQwNjg2IDEuMDAwMzlDOS42NDI5MyAxLjAzNDkyIDExLjYwMzYgMy4yOTMyMyAxMS4zMDg1IDUuOTQ1MTlWOC44Mzg4NyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik03LjQwNjI1IDE0LjcwMDdWMTguNjc4NiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=)}.wp-block-list.is-iconed-list li.has-custom-icon--check:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjM4MzUgMTkuNzk0OUMxNS41NjU5IDE5Ljc5NDkgMTkuNzY3IDE1LjU4NzUgMTkuNzY3IDEwLjM5NzVDMTkuNzY3IDUuMjA3MzkgMTUuNTY1OSAxIDEwLjM4MzUgMUM1LjIwMTE0IDEgMSA1LjIwNzM5IDEgMTAuMzk3NUMxIDE1LjU4NzUgNS4yMDExNCAxOS43OTQ5IDEwLjM4MzUgMTkuNzk0OVoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNNi4yNTc4MSAxMC44MjQ1TDguNjQ4NTggMTMuMjE4OUwxNC41MDc3IDcuMzQ1NDYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K)}.wp-block-list.is-iconed-list li.has-custom-icon--loupe-alt:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjA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AuMTU2MiA1LjI1MzI5IDE1Ljg2OCAxIDEwLjU3ODEgMUM1LjI4ODI3IDEgMSA1LjI1MzI5IDEgMTAuNUMxIDE1Ljc0NjcgNS4yODgyNyAyMCAxMC41NzgxIDIwWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0xMC40ODA1IDQuMzgwODZWMTEuMDc5N0gxNS4wMDYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K)}.iconed-list-item-backend-icon-square{background-position:50%;background-repeat:no-repeat;background-size:contain;color:currentColor;display:inline-block;filter:invert(1);height:20px;width:20px}.iconed-list-item-backend-icon-square--sablier{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxNSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE2MjhfMTc4MzApIj4KPHBhdGggZD0iTTIuMjc2ODEgMC42NzA2NTRDMi4xMTQxMiAxLjUxNTcyIDEuODkyODYgMy4yNTI4MSAyLjYyMTcxIDUuMTUwODdDMi42OTk4IDUuMzQ1MzcgNC40MTc4MSA5LjY0NDUgNy42ODQ2MiA5LjYzMTA4QzEwLjQ2OTkgOS42MTc2NyAxMi4yNzkgNi40ODU1NCAxMi44NjQ3IDQuNDkzNTlDMTMuMzI2NyAyLjkxNzQ3IDEzLjE4MzUgMS41MDkwMiAxMy4wMjA4IDAuNjcwNjU0SDIuMjc2ODFaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTEzLjAyMTMgMTkuMzI5NEMxMy4xODQgMTguNDg0MyAxMy40MDUzIDE2Ljc0NzIgMTIuNjc2NCAxNC44NDkxQzEyLjU5ODMgM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0iMTkiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==)}.iconed-list-item-backend-icon-square--pendule{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjU3ODEgMjBDMTUuODY4IDIwIDIwLjE1NjIgMTUuNzQ2NyAyMC4xNTYyIDEwLjVDMjAuMTU2MiA1LjI1MzI5IDE1Ljg2OCAxIDEwLjU3ODEgMUM1LjI4ODI3IDEgMSA1LjI1MzI5IDEgMTAuNUMxIDE1Ljc0NjcgNS4yODgyNyAyMCAxMC41NzgxIDIwWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0xMC40ODA1IDQuMzgwODZWMTEuMDc5N0gxNS4wMDYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K)}.wp-block-columns.is-style-sticky-columns,.wp-block-columns.is-style-sticky-columns .wp-block-columns-is-layout-flex{align-items:flex-start}.wp-block-columns.is-style-sticky-columns .wp-block-column{position:sticky;top:0}body.wp-admin .sticky-column-wrapper{flex-basis:0;flex-grow:1}body.wp-admin .sticky-column-wrapper .block-editor-block-list__block{position:sticky;top:0} +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/core-variants/variants.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.wp-block-list.is-iconed-list { + display: block; +} +.wp-block-list.is-iconed-list li.has-custom-icon { + padding-left: 48px; + margin-bottom: 20px; + gap: 20px; + position: relative; +} +.wp-block-list.is-iconed-list li.has-custom-icon::before { + content: " "; + position: absolute; + top: 0; + left: 0; + display: inline-block; + padding: 6px; + width: 36px; + height: 36px; + background-color: var(--wp--preset--color--primary); + background-size: 20px auto; + background-repeat: no-repeat; + background-position: center; +} +.wp-block-list.is-iconed-list li.has-custom-icon--sablier::before { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxNSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE2MjhfMTc4MzApIj4KPHBhdGggZD0iTTIuMjc2ODEgMC42NzA2NTRDMi4xMTQxMiAxLjUxNTcyIDEuODkyODYgMy4yNTI4MSAyLjYyMTcxIDUuMTUwODdDMi42OTk4IDUuMzQ1MzcgNC40MTc4MSA5LjY0NDUgNy42ODQ2MiA5LjYzMTA4QzEwLjQ2OTkgOS42MTc2NyAxMi4yNzkgNi40ODU1NCAxMi44NjQ3IDQuNDkzNTlDMTMuMzI2NyAyLjkxNzQ3IDEzLjE4MzUgMS41MDkwMiAxMy4wMjA4IDAuNjcwNjU0SDIuMjc2ODFaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTEzLjAyMTMgMTkuMzI5NEMxMy4xODQgMTguNDg0MyAxMy40MDUzIDE2Ljc0NzIgMTIuNjc2NCAxNC44NDkxQzEyLjU5ODMgMTQuNjU0NiAxM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43NTM3VjIwLjg2MjMiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K); +} +.wp-block-list.is-iconed-list li.has-custom-icon--cadenas::before { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjMiIHZpZXdCb3g9IjAgMCAxNSAyMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjY4ODUgOC44MzgwMUgxVjIxLjI4MTRIMTMuNjg4NVY4LjgzODAxWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0zLjM3NDA3IDguODM4ODdWNS45NDUxOUMzLjA3ODk5IDMuMjQ0ODkgNS4xMzE0NSAwLjk2NTg1NyA3LjQwNjg2IDEuMDAwMzlDOS42NDI5MyAxLjAzNDkyIDExLjYwMzYgMy4yOTMyMyAxMS4zMDg1IDUuOTQ1MTlWOC44Mzg4NyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik03LjQwNjI1IDE0LjcwMDdWMTguNjc4NiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=); +} +.wp-block-list.is-iconed-list li.has-custom-icon--check::before { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjM4MzUgMTkuNzk0OUMxNS41NjU5IDE5Ljc5NDkgMTkuNzY3IDE1LjU4NzUgMTkuNzY3IDEwLjM5NzVDMTkuNzY3IDUuMjA3MzkgMTUuNTY1OSAx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NsaXAwXzE2MjhfMTc5ODgiPgo8cmVjdCB3aWR0aD0iMTkiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==); +} +.wp-block-list.is-iconed-list li.has-custom-icon--pendule::before { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjU3ODEgMjBDMTUuODY4IDIwIDIwLjE1NjIgMTUuNzQ2NyAyMC4xNTYyIDEwLjVDMjAuMTU2MiA1LjI1MzI5IDE1Ljg2OCAxIDEwLjU3ODEgMUM1LjI4ODI3IDEgMSA1LjI1MzI5IDEgMTAuNUMxIDE1Ljc0NjcgNS4yODgyNyAyMCAxMC41NzgxIDIwWiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0xMC40ODA1IDQuMzgwODZWMTEuMDc5N0gxNS4wMDYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K); +} +.iconed-list-item-backend-icon-square { + display: inline-block; + width: 20px; + height: 20px; + background-size: contain; + background-repeat: no-repeat; + background-position: center; + color: currentColor; + filter: invert(1); +} +.iconed-list-item-backend-icon-square--sablier { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxNSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE2MjhfMTc4MzApIj4KPHBhdGggZD0iTTIuMjc2ODEgMC42NzA2NTRDMi4xMTQxMiA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E0LjcwMDdWMTguNjc4NiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=); +} +.iconed-list-item-backend-icon-square--check { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjM4MzUgMTkuNzk0OUMxNS41NjU5IDE5Ljc5NDkgMTkuNzY3IDE1LjU4NzUgMTkuNzY3IDEwLjM5NzVDMTkuNzY3IDUuMjA3MzkgMTUuNTY1OSAxIDEwLjM4MzUgMUM1LjIwMTE0IDEgMSA1LjIwNzM5IDEgMTAuMzk3NUMxIDE1LjU4NzUgNS4yMDExNCAxOS43OTQ5IDEwLjM4MzUgMTkuNzk0OVoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNNi4yNTc4MSAxMC44MjQ1TDguNjQ4NTggMTMuMjE4OUwxNC41MDc3IDcuMzQ1NDYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K); +} +.iconed-list-item-backend-icon-square--loupe-alt { + background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxOSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE2MjhfMTc5ODgpIj4KPHBhdGggZD0iTTEzLjkyMzggMTQuODQ4NEwxOC40NzYxIDE5LjQ2ODQiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBkPSJNOC41MTI2OSAxNy4xNj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zz4K); +} +.wp-block-columns.is-style-sticky-columns { + align-items: flex-start; +} +.wp-block-columns.is-style-sticky-columns .wp-block-columns-is-layout-flex { + align-items: flex-start; +} +.wp-block-columns.is-style-sticky-columns .wp-block-column { + position: sticky; + top: 0; +} +body.wp-admin .sticky-column-wrapper { + flex-basis: 0; + flex-grow: 1; +} +body.wp-admin .sticky-column-wrapper .block-editor-block-list__block { + position: sticky; + top: 0; +} + +/*# sourceMappingURL=variations.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/variations.css.map b/plugins/carhop-blocks/build/variations.css.map new file mode 100644 index 0000000..23bb06a --- /dev/null +++ b/plugins/carhop-blocks/build/variations.css.map @@ -0,0 +1 @@ +{"version":3,"file":"variations.css","mappings":";;;AAAA;EACC;AACD;AACC;EACC;EACA;EACA;EACA;AACF;AAIE;EACC;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAHH;AAKE;EACC;AAHH;AAKE;EACC;AAHH;AAKE;EACC;AAHH;AAKE;EACC;AAHH;AAKE;EACC;AAHH;AAKE;EACC;AAHH;AAQA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AALD;AAMC;EACC;AAJF;AAMC;EACC;AAJF;AAMC;EACC;AAJF;AAMC;EACC;AAJF;AAMC;EACC;AAJF;AAMC;EACC;AAJF;AAQA;EACC;AALD;AAMC;EACC;AAJF;AAMC;EACC;EACA;AAJF;AASC;EACC;EACA;AANF;AAOE;EACC;EACA;AALH,C","sources":["webpack://carhop-blocks/./src/core-variants/variants.scss"],"sourcesContent":[".wp-block-list.is-iconed-list {\r\n\tdisplay: block;\r\n\r\n\tli.has-custom-icon {\r\n\t\tpadding-left: 48px;\r\n\t\tmargin-bottom: 20px;\r\n\t\tgap: 20px;\r\n\t\tposition: relative;\r\n\r\n\t\t// display: flex;\r\n\t\t// align-items: center;\r\n\r\n\t\t&::before {\r\n\t\t\tcontent: \" \";\r\n\t\t\t// position: static;\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tpadding: 6px;\r\n\t\t\twidth: 36px;\r\n\t\t\theight: 36px;\r\n\t\t\tbackground-color: var(--wp--preset--color--primary);\r\n\t\t\tbackground-size: 20px auto;\r\n\t\t\tbackground-repeat: no-repeat;\r\n\t\t\tbackground-position: center;\r\n\t\t}\r\n\t\t&--sablier::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-sablier.svg\");\r\n\t\t}\r\n\t\t&--loupe::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-loupe.svg\");\r\n\t\t}\r\n\t\t&--cadenas::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-cadenas.svg\");\r\n\t\t}\r\n\t\t&--check::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-check.svg\");\r\n\t\t}\r\n\t\t&--loupe-alt::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-loupe-alt.svg\");\r\n\t\t}\r\n\t\t&--pendule::before {\r\n\t\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-pendule.svg\");\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.iconed-list-item-backend-icon-square {\r\n\tdisplay: inline-block;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tbackground-size: contain;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: center;\r\n\tcolor: currentColor;\r\n\tfilter: invert(1);\r\n\t&--sablier {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-sablier.svg\");\r\n\t}\r\n\t&--loupe {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-loupe.svg\");\r\n\t}\r\n\t&--cadenas {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-cadenas.svg\");\r\n\t}\r\n\t&--check {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-check.svg\");\r\n\t}\r\n\t&--loupe-alt {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-loupe-alt.svg\");\r\n\t}\r\n\t&--pendule {\r\n\t\tbackground-image: url(\"../core-variants/core-list-variant/icons/carhop-pendule.svg\");\r\n\t}\r\n}\r\n\r\n.wp-block-columns.is-style-sticky-columns {\r\n\talign-items: flex-start;\r\n\t.wp-block-columns-is-layout-flex {\r\n\t\talign-items: flex-start;\r\n\t}\r\n\t.wp-block-column {\r\n\t\tposition: sticky;\r\n\t\ttop: 0;\r\n\t}\r\n}\r\n\r\nbody.wp-admin {\r\n\t.sticky-column-wrapper {\r\n\t\tflex-basis: 0;\r\n\t\tflex-grow: 1;\r\n\t\t.block-editor-block-list__block {\r\n\t\t\tposition: sticky;\r\n\t\t\ttop: 0;\r\n\t\t}\r\n\t}\r\n}\r\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/variations.js b/plugins/carhop-blocks/build/variations.js index 98b5f09..6ed81c6 100644 --- a/plugins/carhop-blocks/build/variations.js +++ b/plugins/carhop-blocks/build/variations.js @@ -1 +1,566 @@ -(()=>{var e={1497:()=>{wp.blocks.registerBlockStyle("core/embed",{name:"stacked-background",label:"Fond empilé"})},3165:()=>{wp.blocks.registerBlockStyle("core/buttons",{name:"big-buttons",label:"Grands boutons "})},3980:()=>{wp.blocks.registerBlockStyle("core/heading",{name:"stroked-after",label:"Titre + trait "})},6417:()=>{wp.blocks.registerBlockStyle("core/pullquote",{name:"testimony",label:"Témoignage",isDefault:!1})},7197:()=>{wp.blocks.registerBlockStyle("core/image",{name:"framed",label:"Encadré",isDefault:!1}),wp.blocks.registerBlockStyle("core/image",{name:"framed-rotated",label:"Encadré pivoté",isDefault:!0}),wp.blocks.registerBlockStyle("core/image",{name:"stacked",label:"Empilé",isDefault:!1})}},t={};function i(o){var s=t[o];if(void 0!==s)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,i),l.exports}(()=>{"use strict";i(3980),i(7197),i(1497);const e=window.wp.blocks,t=window.wp.i18n,o=window.wp.blockEditor,s=window.wp.components,l=window.wp.element,r=window.wp.hooks,c=window.wp.compose,n=window.ReactJSXRuntime;(0,e.registerBlockVariation)("core/list",{name:"iconed-list",title:"Liste avec icônes",description:"Liste dont chaque élément peut avoir une icône personnalisée.",attributes:{className:"is-iconed-list"},scope:["inserter","transform"],isActive:e=>(e&&e.className||"").split(" ").includes("is-iconed-list")}),(0,r.addFilter)("blocks.registerBlockType","am/iconed-list-item-attributes",(e,t)=>"core/list-item"!==t?e:{...e,attributes:{...e.attributes,icon:{type:"string",default:""}}}),(0,r.addFilter)("editor.BlockEdit","am/iconed-list-item-controls",e=>i=>{if("core/list-item"!==i.name)return(0,n.jsx)(e,{...i});const{attributes:r,setAttributes:c}=i,{icon:a}=r,d=[{title:(0,t.__)("Loupe"),value:"loupe"},{title:(0,t.__)("Sablier"),value:"sablier"},{title:(0,t.__)("Cadenas"),value:"cadenas"},{title:(0,t.__)("Check"),value:"check"},{title:(0,t.__)("Loupe Alt"),value:"loupe-alt"},{title:(0,t.__)("Pendule"),value:"pendule"}];return(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(e,{...i}),(0,n.jsxs)(o.BlockControls,{children:[(0,n.jsx)(s.ToolbarGroup,{children:(0,n.jsx)(s.ToolbarDropdownMenu,{label:(0,t.__)("Icône du bullet"),className:"iconed-list-item-icon-dropdown",icon:(0,n.jsx)("div",{className:`iconed-list-item-backend-icon-square iconed-list-item-backend-icon-square--${a}`}),controls:d.map(({title:e,value:t})=>({title:e,icon:(0,n.jsx)("div",{className:`iconed-list-item-backend-icon-square iconed-list-item-backend-icon-square--${t}`}),isActive:a===t,onClick:()=>c({icon:t})}))})}),(0,n.jsx)(o.AlignmentToolbar,{value:r.align,onChange:e=>c({align:e})})]})]})}),(0,r.addFilter)("blocks.getSaveContent.extraProps","carhop/iconed-list-item-save-props",(e,t,i)=>"core/list-item"===t.name&&i.icon?(i.icon&&(e={...e,className:(e.className||"")+" has-custom-icon has-custom-icon--"+i.icon}),e):e),(0,r.addFilter)("editor.BlockListBlock","carhop/iconed-list-item-editor-classes",(0,c.createHigherOrderComponent)(e=>t=>{if("core/list-item"!==t.name)return(0,n.jsx)(e,{...t});const i=t.attributes?.icon||"",o=[t.className||"",i?"has-custom-icon":"",i?`has-custom-icon--${i}`:""].filter(Boolean).join(" ");return(0,n.jsx)(e,{...t,className:o})},"withIconedListItemEditorClasses")),i(3165),(0,e.registerBlockStyle)("core/columns",{name:"sticky-columns",label:"Colonnes sticky"});const a=e=>(e?.className||"").includes("is-style-sticky-columns");(0,r.addFilter)("blocks.getSaveElement","carhop/sticky-columns-wrapper",(e,t,i)=>{if("core/columns"!==t.name||!a(i))return e;if(!e||!e.props||!e.props.children)return e;const o=l.Children.toArray(e.props.children).map((e,t)=>e&&"object"==typeof e&&e.type?(0,l.createElement)("div",{key:`sticky-column-wrapper-${t}`,className:"test"},e):e);return(0,l.cloneElement)(e,{...e.props,children:o})}),(0,r.addFilter)("editor.BlockEdit","carhop/sticky-columns-editor-wrapper",(0,c.createHigherOrderComponent)(e=>t=>{if("core/columns"!==t.name||!a(t.attributes))return(0,n.jsx)(e,{...t});const i=(0,n.jsx)(e,{...t});return i&&i.props&&i.props.children?(0,l.cloneElement)(i,{...i.props,children:(0,l.createElement)("div",{className:"test"},i.props.children)}):i},"withStickyColumnsWrapper")),i(6417)})()})(); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ "./src/core-variants/core-buttons/editor.js": +/*!**************************************************!*\ + !*** ./src/core-variants/core-buttons/editor.js ***! + \**************************************************/ +/***/ (() => { + +wp.blocks.registerBlockStyle("core/buttons", { + name: "big-buttons", + label: "Grands boutons " +}); + +/***/ }), + +/***/ "./src/core-variants/core-columns/editor.js": +/*!**************************************************!*\ + !*** ./src/core-variants/core-columns/editor.js ***! + \**************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +// Enregistrement du style de bloc + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockStyle)("core/columns", { + name: "sticky-columns", + label: "Colonnes sticky" +}); + +// Fonction pour vérifier si le style sticky-columns est appliqué +const hasStickyColumnsStyle = attributes => { + const className = attributes?.className || ""; + return className.includes("is-style-sticky-columns"); +}; + +// ----------------------------- +// 1. Modifier le HTML sauvegardé pour envelopper les colonnes dans une div avec la classe "test" +// ----------------------------- +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)("blocks.getSaveElement", "carhop/sticky-columns-wrapper", (element, blockType, attributes) => { + // Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué + if (blockType.name !== "core/columns" || !hasStickyColumnsStyle(attributes)) { + return element; + } + + // Si l'élément est null ou n'a pas d'enfants, retourner tel quel + if (!element || !element.props || !element.props.children) { + return element; + } + + // Envelopper chaque colonne individuellement dans une div avec la classe "test" + const children = _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(element.props.children); + const wrappedChildren = children.map((child, index) => { + // Si c'est un élément React (une colonne), l'envelopper dans une div + if (child && typeof child === "object" && child.type) { + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { + key: `sticky-column-wrapper-${index}`, + className: "test" + }, child); + } + // Sinon, retourner tel quel + return child; + }); + + // Retourner l'élément avec les enfants enveloppés + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(element, { + ...element.props, + children: wrappedChildren + }); +}); + +// ----------------------------- +// 2. Modifier l'affichage dans l'éditeur pour envelopper les colonnes dans une div avec la classe "test" +// Note: Le rendu côté serveur est géré par render.php +// Pour l'éditeur, on utilise un filtre sur BlockEdit pour modifier le rendu +// ----------------------------- +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)("editor.BlockEdit", "carhop/sticky-columns-editor-wrapper", (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__.createHigherOrderComponent)(BlockEdit => { + return props => { + // Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué + if (props.name !== "core/columns" || !hasStickyColumnsStyle(props.attributes)) { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(BlockEdit, { + ...props + }); + } + + // Récupérer le rendu du bloc + const blockEditElement = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(BlockEdit, { + ...props + }); + + // Si l'élément a des enfants (les inner blocks), on les enveloppe dans une div avec la classe "test" + if (blockEditElement && blockEditElement.props && blockEditElement.props.children) { + // Cloner l'élément et envelopper les enfants dans une div avec la classe "test" + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(blockEditElement, { + ...blockEditElement.props, + children: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { + className: "test" + }, blockEditElement.props.children) + }); + } + return blockEditElement; + }; +}, "withStickyColumnsWrapper")); + +/***/ }), + +/***/ "./src/core-variants/core-embed-variant/editor.js": +/*!********************************************************!*\ + !*** ./src/core-variants/core-embed-variant/editor.js ***! + \********************************************************/ +/***/ (() => { + +wp.blocks.registerBlockStyle("core/embed", { + name: "stacked-background", + label: "Fond empilé" +}); + +/***/ }), + +/***/ "./src/core-variants/core-heading-variant/editor.js": +/*!**********************************************************!*\ + !*** ./src/core-variants/core-heading-variant/editor.js ***! + \**********************************************************/ +/***/ (() => { + +wp.blocks.registerBlockStyle("core/heading", { + name: "stroked-after", + label: "Titre + trait " +}); + +/***/ }), + +/***/ "./src/core-variants/core-image-variant/editor.js": +/*!********************************************************!*\ + !*** ./src/core-variants/core-image-variant/editor.js ***! + \********************************************************/ +/***/ (() => { + +wp.blocks.registerBlockStyle("core/image", { + name: "framed", + label: "Encadré", + isDefault: false +}); +wp.blocks.registerBlockStyle("core/image", { + name: "framed-rotated", + label: "Encadré pivoté", + isDefault: true +}); +wp.blocks.registerBlockStyle("core/image", { + name: "stacked", + label: "Empilé", + isDefault: false +}); + +/***/ }), + +/***/ "./src/core-variants/core-list-variant/editor.js": +/*!*******************************************************!*\ + !*** ./src/core-variants/core-list-variant/editor.js ***! + \*******************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose"); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__); + + + + + + + + + +// Variation du bloc "Liste" pour ajouter une classe spéciale + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockVariation)("core/list", { + name: "iconed-list", + title: "Liste avec icônes", + description: "Liste dont chaque élément peut avoir une icône personnalisée.", + attributes: { + className: "is-iconed-list" + }, + scope: ["inserter", "transform"], + isActive: blockAttributes => { + const cls = blockAttributes && blockAttributes.className || ""; + return cls.split(" ").includes("is-iconed-list"); + } +}); + +// ----------------------------- +// 1. On étend les attributs de core/list-item +// ----------------------------- + +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)("blocks.registerBlockType", "am/iconed-list-item-attributes", (settings, name) => { + if (name !== "core/list-item") { + return settings; + } + return { + ...settings, + attributes: { + ...settings.attributes, + icon: { + type: "string", + default: "" + } + } + }; +}); + +// ----------------------------- +// 2. On ajoute un panneau de réglages pour choisir l'icône +// ----------------------------- + +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)("editor.BlockEdit", "am/iconed-list-item-controls", BlockEdit => props => { + if (props.name !== "core/list-item") { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(BlockEdit, { + ...props + }); + } + const { + attributes, + setAttributes + } = props; + const { + icon + } = attributes; + const ICONS = [{ + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Loupe"), + value: "loupe" + }, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Sablier"), + value: "sablier" + }, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Cadenas"), + value: "cadenas" + }, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Check"), + value: "check" + }, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Loupe Alt"), + value: "loupe-alt" + }, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Pendule"), + value: "pendule" + }]; + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.Fragment, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(BlockEdit, { + ...props + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.BlockControls, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarGroup, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.ToolbarDropdownMenu, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Icône du bullet"), + className: "iconed-list-item-icon-dropdown", + icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", { + className: `iconed-list-item-backend-icon-square iconed-list-item-backend-icon-square--${icon}` + }), + controls: ICONS.map(({ + title, + value + }) => ({ + title, + icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", { + className: `iconed-list-item-backend-icon-square iconed-list-item-backend-icon-square--${value}` + }), + isActive: icon === value, + onClick: () => setAttributes({ + icon: value + }) + })) + }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.AlignmentToolbar, { + value: attributes.align, + onChange: value => setAttributes({ + align: value + }) + })] + })] + }); +}); + +// ----------------------------- +// 3. On ajoute des props au HTML sauvegardé pour chaque
  • +// ----------------------------- +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)("blocks.getSaveContent.extraProps", "carhop/iconed-list-item-save-props", (extraProps, blockType, attributes) => { + if (blockType.name !== "core/list-item" || !attributes.icon) { + return extraProps; + } + if (attributes.icon) { + extraProps = { + ...extraProps, + className: (extraProps.className || "") + " has-custom-icon has-custom-icon--" + attributes.icon + }; + } + return extraProps; +}); + +// ----------------------------- +// 4. Applique les mêmes classes en mode éditeur (BlockListBlock) +// ----------------------------- +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_5__.addFilter)("editor.BlockListBlock", "carhop/iconed-list-item-editor-classes", (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_6__.createHigherOrderComponent)(BlockListBlock => { + return props => { + if (props.name !== "core/list-item") { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(BlockListBlock, { + ...props + }); + } + const slug = props.attributes?.icon || ""; + const className = [props.className || "", slug ? "has-custom-icon" : "", slug ? `has-custom-icon--${slug}` : ""].filter(Boolean).join(" "); + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(BlockListBlock, { + ...props, + className: className + }); + }; +}, "withIconedListItemEditorClasses")); + +/***/ }), + +/***/ "./src/core-variants/core-pullquote/editor.js": +/*!****************************************************!*\ + !*** ./src/core-variants/core-pullquote/editor.js ***! + \****************************************************/ +/***/ (() => { + +wp.blocks.registerBlockStyle("core/pullquote", { + name: "testimony", + label: "Témoignage", + isDefault: false +}); + +/***/ }), + +/***/ "./src/core-variants/variants.scss": +/*!*****************************************!*\ + !*** ./src/core-variants/variants.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/compose": +/*!*********************************!*\ + !*** external ["wp","compose"] ***! + \*********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["compose"]; + +/***/ }), + +/***/ "@wordpress/element": +/*!*********************************!*\ + !*** external ["wp","element"] ***! + \*********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ "@wordpress/hooks": +/*!*******************************!*\ + !*** external ["wp","hooks"] ***! + \*******************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["hooks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +"use strict"; +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. +(() => { +"use strict"; +/*!***************************************!*\ + !*** ./src/core-variants/variants.js ***! + \***************************************/ +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _core_heading_variant_editor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core-heading-variant/editor.js */ "./src/core-variants/core-heading-variant/editor.js"); +/* harmony import */ var _core_heading_variant_editor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_heading_variant_editor_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _core_image_variant_editor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core-image-variant/editor.js */ "./src/core-variants/core-image-variant/editor.js"); +/* harmony import */ var _core_image_variant_editor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_core_image_variant_editor_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _core_embed_variant_editor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core-embed-variant/editor.js */ "./src/core-variants/core-embed-variant/editor.js"); +/* harmony import */ var _core_embed_variant_editor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_core_embed_variant_editor_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _core_list_variant_editor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core-list-variant/editor.js */ "./src/core-variants/core-list-variant/editor.js"); +/* harmony import */ var _core_buttons_editor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./core-buttons/editor.js */ "./src/core-variants/core-buttons/editor.js"); +/* harmony import */ var _core_buttons_editor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_core_buttons_editor_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _core_columns_editor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./core-columns/editor.js */ "./src/core-variants/core-columns/editor.js"); +/* harmony import */ var _core_pullquote_editor_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./core-pullquote/editor.js */ "./src/core-variants/core-pullquote/editor.js"); +/* harmony import */ var _core_pullquote_editor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_core_pullquote_editor_js__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _variants_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./variants.scss */ "./src/core-variants/variants.scss"); + + + + + + + + +})(); + +/******/ })() +; +//# sourceMappingURL=variations.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/variations.js.map b/plugins/carhop-blocks/build/variations.js.map new file mode 100644 index 0000000..c1555a4 --- /dev/null +++ b/plugins/carhop-blocks/build/variations.js.map @@ -0,0 +1 @@ +{"version":3,"file":"variations.js","mappings":";;;;;;;;;AAAAA,EAAE,CAACC,MAAM,CAACC,kBAAkB,CAAC,cAAc,EAAE;EAC5CC,IAAI,EAAE,aAAa;EACnBC,KAAK,EAAE;AACR,CAAC,CAAC,C;;;;;;;;;;;;;;;;;;;;;;ACHqD;AACV;AAC8B;AACX;;AAEhE;AAAA;AACAF,qEAAkB,CAAC,cAAc,EAAE;EAClCC,IAAI,EAAE,gBAAgB;EACtBC,KAAK,EAAE;AACR,CAAC,CAAC;;AAEF;AACA,MAAMQ,qBAAqB,GAAIC,UAAU,IAAK;EAC7C,MAAMC,SAAS,GAAGD,UAAU,EAAEC,SAAS,IAAI,EAAE;EAC7C,OAAOA,SAAS,CAACC,QAAQ,CAAC,yBAAyB,CAAC;AACrD,CAAC;;AAED;AACA;AACA;AACAV,2DAAS,CACR,uBAAuB,EACvB,+BAA+B,EAC/B,C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3C,KAAK;MAAEJ,SAAS,EAAEA;IAAU,CAAE,CAAC;EAC3D,CAAC;AACF,CAAC,EAAE,iCAAiC,CACrC,CAAC,C;;;;;;;;;;ACvKDd,EAAE,CAACC,MAAM,CAACC,kBAAkB,CAAC,gBAAgB,EAAE;EAC9CC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE,YAAY;EACnByB,SAAS,EAAE;AACZ,CAAC,CAAC,C;;;;;;;;;;;;ACJF;;;;;;;;;;;;ACAA,6C;;;;;;;;;;;ACAA,wC;;;;;;;;;;;ACAA,4C;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,uC;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;;;;;;;ACN0C;AACF;AACA;AACD;AACL;AACA;AACE","sources":["webpack://carhop-blocks/./src/core-variants/core-buttons/editor.js","webpack://carhop-blocks/./src/core-variants/core-columns/editor.js","webpack://carhop-blocks/./src/core-variants/core-embed-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-heading-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-image-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-list-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-pullquote/editor.js","webpack://carhop-blocks/./src/core-variants/variants.scss?f090","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"compose\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"hooks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/./src/core-variants/variants.js"],"sourcesContent":["wp.blocks.registerBlockStyle(\"core/buttons\", {\r\n\tname: \"big-buttons\",\r\n\tlabel: \"Grands boutons \",\r\n});\r\n","import { registerBlockStyle } from \"@wordpress/blocks\";\nimport { addFilter } from \"@wordpress/hooks\";\nimport { createElement, cloneElement, Children } from \"@wordpress/element\";\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\n\n// Enregistrement du style de bloc\nregisterBlockStyle(\"core/columns\", {\n\tname: \"sticky-columns\",\n\tlabel: \"Colonnes sticky\",\n});\n\n// Fonction pour vérifier si le style sticky-columns est appliqué\nconst hasStickyColumnsStyle = (attributes) => {\n\tconst className = attributes?.className || \"\";\n\treturn className.includes(\"is-style-sticky-columns\");\n};\n\n// -----------------------------\n// 1. Modifier le HTML sauvegardé pour envelopper les colonnes dans une div avec la classe \"test\"\n// -----------------------------\naddFilter(\n\t\"blocks.getSaveElement\",\n\t\"carhop/sticky-columns-wrapper\",\n\t(element, blockType, attributes) => {\n\t\t// Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué\n\t\tif (\n\t\t\tblockType.name !== \"core/columns\" ||\n\t\t\t!hasStickyColumnsStyle(attributes)\n\t\t) {\n\t\t\treturn element;\n\t\t}\n\n\t\t// Si l'élément est null ou n'a pas d'enfants, retourner tel quel\n\t\tif (!element || !element.props || !element.props.children) {\n\t\t\treturn element;\n\t\t}\n\n\t\t// Envelopper chaque colonne individuellement dans une div avec la classe \"test\"\n\t\tconst children = Children.toArray(element.props.children);\n\t\tconst wrappedChildren = children.map((child, index) => {\n\t\t\t// Si c'est un élément React (une colonne), l'envelopper dans une div\n\t\t\tif (child && typeof child === \"object\" && child.type) {\n\t\t\t\treturn createElement(\n\t\t\t\t\t\"div\",\n\t\t\t\t\t{ key: `sticky-column-wrapper-${index}`, className: \"test\" },\n\t\t\t\t\tchild,\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Sinon, retourner tel quel\n\t\t\treturn child;\n\t\t});\n\n\t\t// Retourner l'élément avec les enfants enveloppés\n\t\treturn cloneElement(element, {\n\t\t\t...element.props,\n\t\t\tchildren: wrappedChildren,\n\t\t});\n\t},\n);\n\n// -----------------------------\n// 2. Modifier l'affichage dans l'éditeur pour envelopper les colonnes dans une div avec la classe \"test\"\n// Note: Le rendu côté serveur est géré par render.php\n// Pour l'éditeur, on utilise un filtre sur BlockEdit pour modifier le rendu\n// -----------------------------\naddFilter(\n\t\"editor.BlockEdit\",\n\t\"carhop/sticky-columns-editor-wrapper\",\n\tcreateHigherOrderComponent((BlockEdit) => {\n\t\treturn (props) => {\n\t\t\t// Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué\n\t\t\tif (\n\t\t\t\tprops.name !== \"core/columns\" ||\n\t\t\t\t!hasStickyColumnsStyle(props.attributes)\n\t\t\t) {\n\t\t\t\treturn ;\n\t\t\t}\n\n\t\t\t// Récupérer le rendu du bloc\n\t\t\tconst blockEditElement = ;\n\n\t\t\t// Si l'élément a des enfants (les inner blocks), on les enveloppe dans une div avec la classe \"test\"\n\t\t\tif (\n\t\t\t\tblockEditElement &&\n\t\t\t\tblockEditElement.props &&\n\t\t\t\tblockEditElement.props.children\n\t\t\t) {\n\t\t\t\t// Cloner l'élément et envelopper les enfants dans une div avec la classe \"test\"\n\t\t\t\treturn cloneElement(blockEditElement, {\n\t\t\t\t\t...blockEditElement.props,\n\t\t\t\t\tchildren: createElement(\n\t\t\t\t\t\t\"div\",\n\t\t\t\t\t\t{ className: \"test\" },\n\t\t\t\t\t\tblockEditElement.props.children,\n\t\t\t\t\t),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn blockEditElement;\n\t\t};\n\t}, \"withStickyColumnsWrapper\"),\n);\n","wp.blocks.registerBlockStyle(\"core/embed\", {\r\n\tname: \"stacked-background\",\r\n\tlabel: \"Fond empilé\",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/heading\", {\r\n\tname: \"stroked-after\",\r\n\tlabel: \"Titre + trait \",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"framed\",\r\n\tlabel: \"Encadré\",\r\n\tisDefault: false,\r\n});\r\nwp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"framed-rotated\",\r\n\tlabel: \"Encadré pivoté\",\r\n\tisDefault: true,\r\n});\r\nwp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"stacked\",\r\n\tlabel: \"Empilé\",\r\n\tisDefault: false,\r\n});\r\n","import { registerBlockVariation } from \"@wordpress/blocks\";\r\nimport { __ } from \"@wordpress/i18n\";\r\nimport {\r\n\tInspectorControls,\r\n\tBlockControls,\r\n\tAlignmentToolbar,\r\n} from \"@wordpress/block-editor\";\r\nimport { ToolbarGroup, ToolbarDropdownMenu } from \"@wordpress/components\";\r\nimport { Fragment } from \"@wordpress/element\";\r\nimport { addFilter } from \"@wordpress/hooks\";\r\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\r\n\r\nimport { check, arrowRight, starFilled } from \"@wordpress/icons\";\r\n\r\n// Variation du bloc \"Liste\" pour ajouter une classe spéciale\r\nregisterBlockVariation(\"core/list\", {\r\n\tname: \"iconed-list\",\r\n\ttitle: \"Liste avec icônes\",\r\n\tdescription: \"Liste dont chaque élément peut avoir une icône personnalisée.\",\r\n\tattributes: {\r\n\t\tclassName: \"is-iconed-list\",\r\n\t},\r\n\tscope: [\"inserter\", \"transform\"],\r\n\tisActive: (blockAttributes) => {\r\n\t\tconst cls = (blockAttributes && blockAttributes.className) || \"\";\r\n\t\treturn cls.split(\" \").includes(\"is-iconed-list\");\r\n\t},\r\n});\r\n\r\n// -----------------------------\r\n// 1. On étend les attributs de core/list-item\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"blocks.registerBlockType\",\r\n\t\"am/iconed-list-item-attributes\",\r\n\t(settings, name) => {\r\n\t\tif (name !== \"core/list-item\") {\r\n\t\t\treturn settings;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\t...settings,\r\n\t\t\tattributes: {\r\n\t\t\t\t...settings.attributes,\r\n\t\t\t\ticon: {\r\n\t\t\t\t\ttype: \"string\",\r\n\t\t\t\t\tdefault: \"\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 2. On ajoute un panneau de réglages pour choisir l'icône\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"editor.BlockEdit\",\r\n\t\"am/iconed-list-item-controls\",\r\n\t(BlockEdit) => (props) => {\r\n\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tconst { attributes, setAttributes } = props;\r\n\t\tconst { icon } = attributes;\r\n\r\n\t\tconst ICONS = [\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Loupe\"),\r\n\t\t\t\tvalue: \"loupe\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Sablier\"),\r\n\t\t\t\tvalue: \"sablier\",\r\n\t\t\t},\r\n\t\t\t{ title: __(\"Cadenas\"), value: \"cadenas\" },\r\n\t\t\t{ title: __(\"Check\"), value: \"check\" },\r\n\t\t\t{ title: __(\"Loupe Alt\"), value: \"loupe-alt\" },\r\n\t\t\t{ title: __(\"Pendule\"), value: \"pendule\" },\r\n\t\t];\r\n\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcontrols={ICONS.map(({ title, value }) => ({\r\n\t\t\t\t\t\t\t\ttitle,\r\n\t\t\t\t\t\t\t\ticon: (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\tisActive: icon === value,\r\n\t\t\t\t\t\t\t\tonClick: () => setAttributes({ icon: value }),\r\n\t\t\t\t\t\t\t}))}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t setAttributes({ align: value })}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 3. On ajoute des props au HTML sauvegardé pour chaque
  • \r\n// -----------------------------\r\naddFilter(\r\n\t\"blocks.getSaveContent.extraProps\",\r\n\t\"carhop/iconed-list-item-save-props\",\r\n\t(extraProps, blockType, attributes) => {\r\n\t\tif (blockType.name !== \"core/list-item\" || !attributes.icon) {\r\n\t\t\treturn extraProps;\r\n\t\t}\r\n\r\n\t\tif (attributes.icon) {\r\n\t\t\textraProps = {\r\n\t\t\t\t...extraProps,\r\n\t\t\t\tclassName:\r\n\t\t\t\t\t(extraProps.className || \"\") +\r\n\t\t\t\t\t\" has-custom-icon has-custom-icon--\" +\r\n\t\t\t\t\tattributes.icon,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn extraProps;\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 4. Applique les mêmes classes en mode éditeur (BlockListBlock)\r\n// -----------------------------\r\naddFilter(\r\n\t\"editor.BlockListBlock\",\r\n\t\"carhop/iconed-list-item-editor-classes\",\r\n\tcreateHigherOrderComponent((BlockListBlock) => {\r\n\t\treturn (props) => {\r\n\t\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\tconst slug = props.attributes?.icon || \"\";\r\n\t\t\tconst className = [\r\n\t\t\t\tprops.className || \"\",\r\n\t\t\t\tslug ? \"has-custom-icon\" : \"\",\r\n\t\t\t\tslug ? `has-custom-icon--${slug}` : \"\",\r\n\t\t\t]\r\n\t\t\t\t.filter(Boolean)\r\n\t\t\t\t.join(\" \");\r\n\r\n\t\t\treturn ;\r\n\t\t};\r\n\t}, \"withIconedListItemEditorClasses\")\r\n);\r\n","wp.blocks.registerBlockStyle(\"core/pullquote\", {\r\n\tname: \"testimony\",\r\n\tlabel: \"Témoignage\",\r\n\tisDefault: false,\r\n});\r\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import \"./core-heading-variant/editor.js\";\r\nimport \"./core-image-variant/editor.js\";\r\nimport \"./core-embed-variant/editor.js\";\r\nimport \"./core-list-variant/editor.js\";\r\nimport \"./core-buttons/editor.js\";\r\nimport \"./core-columns/editor.js\";\r\nimport \"./core-pullquote/editor.js\";\r\nimport \"./variants.scss\";\r\n"],"names":["wp","blocks","registerBlockStyle","name","label","addFilter","createElement","cloneElement","Children","createHigherOrderComponent","jsx","_jsx","hasStickyColumnsStyle","attributes","className","includes","element","blockType","props","children","toArray","wrappedChildren","map","child","index","type","key","BlockEdit","blockEditElement","isDefault","registerBlockVariation","__","InspectorControls","BlockControls","AlignmentToolbar","ToolbarGroup","ToolbarDropdownMenu","Fragment","check","arrowRight","starFilled","jsxs","_jsxs","title","description","scope","isActive","blockAttributes","cls","split","settings","icon","default","setAttributes","ICONS","value","controls","onClick","align","onChange","extraProps","BlockListBlock","slug","filter","Boolean","join"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file