File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/product-gallery-large-image-next-previous.js.tar
plugins/woocommerce/packages/woocommerce-blocks/build/product-gallery-large-image-next-previous.js 0000644 00000030246 15155037527 0042071 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["product-gallery-large-image-next-previous"]=function(e){function t(t){for(var n,l,c=t[0],a=t[1],u=t[2],p=0,d=[];p<c.length;p++)l=c[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&d.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);d.length;)d.shift()();return i.push.apply(i,u||[]),r()}function r(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,c=1;c<r.length;c++){var a=r[c];0!==o[a]&&(n=!1)}n&&(i.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={31:0},i=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var c=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],a=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var s=a;return i.push([545,0]),r()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return u}));var n=r(0),o=r(9);const i=()=>Object(n.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.22448 1.5L1.5 6.81504V11.7072L5.12953 9.06066C5.38061 8.87758 5.71858 8.86829 5.97934 9.0373L8.90601 10.9342L12.4772 7.46225C12.7683 7.17925 13.2317 7.17925 13.5228 7.46225L16.5 10.3568V2C16.5 1.72386 16.2761 1.5 16 1.5H6.22448ZM1.5 13.5636V16C1.5 16.2761 1.72386 16.5 2 16.5H16C16.2761 16.5 16.5 16.2761 16.5 16V12.4032L16.4772 12.4266L13 9.04603L9.52279 12.4266C9.27191 12.6706 8.88569 12.7086 8.59206 12.5183L5.59643 10.5766L1.5 13.5636ZM0 2C0 0.89543 0.895431 0 2 0H16C17.1046 0 18 0.895431 18 2V16C18 17.1046 17.1046 18 16 18H2C0.89543 18 0 17.1046 0 16V2Z",fill:"#1E1E1E"})),l=({suffixClass:e})=>Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",className:`wc-block-product-gallery-large-image-next-previous-right--${e}`},Object(n.createElement)("g",{filter:"url(#filter0_b_397_11354)"},Object(n.createElement)("rect",{x:"0.5",width:"48",height:"48",rx:"5",fill:"black",fillOpacity:"0.5"}),Object(n.createElement)("path",{d:"M21.7001 12L19.3 14L28.5 24L19.3 34L21.7001 36L32.5 24L21.7001 12Z",fill:"white"})),Object(n.createElement)("defs",null,Object(n.createElement)("filter",{id:"filter0_b_397_11354",x:"-9.5",y:"-10",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},Object(n.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Object(n.createElement)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"5"}),Object(n.createElement)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_397_11354"}),Object(n.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_397_11354",result:"shape"})))),c=({suffixClass:e})=>Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",className:`wc-block-product-gallery-large-image-next-previous-left--${e}`},Object(n.createElement)("g",{filter:"url(#filter0_b_397_11356)"},Object(n.createElement)("rect",{x:"0.5",width:"48",height:"48",rx:"5",fill:"black",fillOpacity:"0.5"}),Object(n.createElement)("path",{d:"M28.1 12L30.5 14L21.3 24L30.5 34L28.1 36L17.3 24L28.1 12Z",fill:"white"})),Object(n.createElement)("defs",null,Object(n.createElement)("filter",{id:"filter0_b_397_11356",x:"-9.5",y:"-10",width:"68",height:"68",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},Object(n.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Object(n.createElement)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"5"}),Object(n.createElement)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_397_11356"}),Object(n.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_397_11356",result:"shape"})))),a=()=>Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"18",viewBox:"0 0 30 18",fill:"none"},Object(n.createElement)("path",{d:"M4.525 8.8L6.825 6.5L5.825 5.5L3.525 7.8C2.825 8.5 2.825 9.6 3.525 10.3L5.825 12.6L6.925 11.5L4.625 9.2C4.425 9.1 4.425 8.9 4.525 8.8Z",fill:"currentColor"}),Object(n.createElement)("path",{d:"M25.4 8.8L23.1 6.5L24.1 5.5L26.4 7.8C27.1 8.5 27.1 9.6 26.4 10.3L24.1 12.6L23 11.5L25.3 9.2C25.5 9.1 25.5 8.9 25.4 8.8Z",fill:"currentColor"}),Object(n.createElement)("rect",{x:"0.75",y:"0.75",width:"28.5",height:"16.5",rx:"1.25",stroke:"currentColor",strokeWidth:"1.5"})),u=()=>Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"18",viewBox:"0 0 38 18",fill:"none"},Object(n.createElement)("path",{d:"M1.525 8.3L5.825 4L4.825 3L0.525 7.3C-0.175 8 -0.175 9.1 0.525 9.8L4.825 14.1L5.925 13L1.625 8.7C1.425 8.6 1.425 8.4 1.525 8.3Z",fill:"currentColor"}),Object(n.createElement)("path",{d:"M37.325 7.3L33.025 3L31.925 4.1L36.2251 8.4C36.3251 8.5 36.3251 8.7 36.2251 8.8L31.925 13.1L33.025 14.2L37.325 9.9C38.025 9.1 38.025 8 37.325 7.3Z",fill:"currentColor"}),Object(n.createElement)("path",{d:"M25.925 0H11.925C10.825 0 9.92505 0.9 9.92505 2V16C9.92505 17.1 10.825 18 11.925 18H25.925C27.025 18 27.925 17.1 27.925 16V2C27.925 0.9 27.025 0 25.925 0ZM11.925 1.5H25.925C26.225 1.5 26.425 1.7 26.425 2V10.4L23.425 7.5C23.125 7.2 22.625 7.2 22.425 7.5L18.825 11L15.925 9C15.625 8.8 15.325 8.8 15.125 9L11.525 11.6V2C11.425 1.7 11.625 1.5 11.925 1.5ZM25.925 16.5H11.925C11.625 16.5 11.425 16.3 11.425 16V13.6L15.525 10.6L18.525 12.5C18.825 12.7 19.225 12.7 19.425 12.4L22.925 9L26.425 12.4V16C26.425 16.3 26.225 16.5 25.925 16.5Z",fill:"currentColor"}))},17:function(e,t,r){"use strict";r.d(t,"p",(function(){return i})),r.d(t,"n",(function(){return l})),r.d(t,"m",(function(){return c})),r.d(t,"o",(function(){return a})),r.d(t,"k",(function(){return u})),r.d(t,"e",(function(){return s})),r.d(t,"h",(function(){return p})),r.d(t,"l",(function(){return d})),r.d(t,"c",(function(){return f})),r.d(t,"d",(function(){return g})),r.d(t,"g",(function(){return m})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return O})),r.d(t,"i",(function(){return j})),r.d(t,"j",(function(){return v})),r.d(t,"f",(function(){return E}));var n,o=r(3);const i=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),l=i.pluginUrl+"images/",c=i.pluginUrl+"build/",a=i.buildPhase,u=null===(n=o.STORE_PAGES.shop)||void 0===n?void 0:n.permalink,s=o.STORE_PAGES.checkout.id,p=(o.STORE_PAGES.checkout.permalink,o.STORE_PAGES.privacy.permalink),d=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),f=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),g=o.STORE_PAGES.cart.permalink,m=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("localPickupEnabled",!1)),b=Object(o.getSetting)("countries",{}),w=Object(o.getSetting)("countryData",{}),h=Object.fromEntries(Object.keys(w).filter((e=>!0===w[e].allowBilling)).map((e=>[e,b[e]||""]))),O=Object.fromEntries(Object.keys(w).filter((e=>!0===w[e].allowBilling)).map((e=>[e,w[e].states||[]]))),j=Object.fromEntries(Object.keys(w).filter((e=>!0===w[e].allowShipping)).map((e=>[e,b[e]||""]))),v=Object.fromEntries(Object.keys(w).filter((e=>!0===w[e].allowShipping)).map((e=>[e,w[e].states||[]]))),E=Object.fromEntries(Object.keys(w).map((e=>[e,w[e].locale||[]])))},179:function(e){e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"woocommerce/product-gallery-large-image-next-previous","version":"1.0.0","title":"Next/Previous Buttons","description":"Dispaly next and previous buttons.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["nextPreviousButtonsPosition","productGalleryClientId","postId"],"textdomain":"woocommerce","supports":{"layout":{"default":{"type":"flex","verticalAlignment":"bottom"},"allowVerticalAlignment":true,"allowJustification":false,"allowOrientation":false,"allowInheriting":false}},"ancestor":["woocommerce/product-gallery-large-image"]}')},2:function(e,t){e.exports=window.wp.components},205:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(0),o=r(1),i=r(6),l=r(4),c=r(2);let a=function(e){return e.off="off",e.insideTheImage="insideTheImage",e.outsideTheImage="outsideTheImage",e}({});var u=r(105);const s={[a.insideTheImage]:Object(n.createElement)(u.b,null),[a.outsideTheImage]:Object(n.createElement)(u.d,null)},p=e=>{switch(e){case a.insideTheImage:return Object(o.__)("Next and previous buttons will appear inside the large image.","woocommerce");case a.outsideTheImage:return Object(o.__)("Next and previous buttons will appear on outside the large image.","woocommerce");default:return Object(o.__)("No next or previous button will be displayed.","woocommerce")}},d=({context:e})=>{const{productGalleryClientId:t,nextPreviousButtonsPosition:r}=e,{updateBlockAttributes:u}=Object(i.useDispatch)(l.store);return Object(n.createElement)(c.PanelBody,{className:"wc-block-editor-product-gallery-large-image-next-previous-settings",title:Object(o.__)("Next/Prev Buttons","woocommerce")},Object(n.createElement)(c.__experimentalToggleGroupControl,{style:{width:"100%"},onChange:e=>u(t,{nextPreviousButtonsPosition:e}),help:p(r),value:r},Object(n.createElement)(c.__experimentalToggleGroupControlOption,{value:a.off,label:Object(o.__)("Off","woocommerce")}),Object(n.createElement)(c.__experimentalToggleGroupControlOption,{value:a.insideTheImage,label:s.insideTheImage}),Object(n.createElement)(c.__experimentalToggleGroupControlOption,{value:a.outsideTheImage,label:s.outsideTheImage})))}},3:function(e,t){e.exports=window.wc.wcSettings},321:function(e,t){},322:function(e,t){},330:function(e,t,r){"use strict";r.r(t);var n=r(7),o=r(85),i=r(0),l=r(4),c=r(5),a=r.n(c),u=r(105),s=(r(322),r(205));const p=e=>{switch(e){case"top":return"flex-start";case"center":return"center";default:return"flex-end"}};var d=r(179);r(321);Object(o.a)()&&Object(n.registerBlockType)(d,{icon:u.a,edit:({attributes:e,context:t})=>{var r;const n=Object(l.useBlockProps)({style:{width:"100%",alignItems:p(null===(r=e.layout)||void 0===r?void 0:r.verticalAlignment)}}),o=Object(i.useMemo)((()=>{switch(t.nextPreviousButtonsPosition){case"insideTheImage":return"inside-image";case"outsideTheImage":return"outside-image";default:return"off"}}),[t.nextPreviousButtonsPosition]);return Object(i.createElement)("div",{...n},Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(s.a,{context:t})),Object(i.createElement)("div",{className:a()("wc-block-product-gallery-large-image-next-previous-container",`wc-block-product-gallery-large-image-next-previous--${o}`)},Object(i.createElement)(u.e,{suffixClass:o}),Object(i.createElement)(u.c,{suffixClass:o})))},save:()=>Object(i.createElement)("div",{...l.useBlockProps.save()})})},4:function(e,t){e.exports=window.wp.blockEditor},545:function(e,t,r){e.exports=r(330)},6:function(e,t){e.exports=window.wp.data},7:function(e,t){e.exports=window.wp.blocks},85:function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var n=r(7),o=r(17);const i=(e,t)=>{if(o.o>2)return Object(n.registerBlockType)(e,t)},l=()=>o.o>2,c=()=>o.o>1},9:function(e,t){e.exports=window.wp.primitives}});