| 7 |
/* fs_premium_only */this.editMode=t},setImages:function(){var t=this;return(0,i.A)((0,r.A)().m(function e(){var n;return(0,r.A)().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o.A.getDir({dir:t.currentItem.dir});case 1:n=e.v,t.images=n.files.filter(function(e){return t.isImage(e)});case 2:return e.a(2)}},e)}))()},onDeleted:function(t){var e=this;return(0,i.A)((0,r.A)().m(function n(){return(0,r.A)().w(function(n){for(;;)switch(n.n){case 0:e.enableEditMode(!1),e.$emit("deleted",t);case 1:return n.a(2)}},n)}))()},onReverted:function(t){var e=this;return(0,i.A)((0,r.A)().m(function n(){return(0,r.A)().w(function(n){for(;;)switch(n.n){case 0:e.updateItemTime(),e.$emit("reverted",t);case 1:return n.a(2)}},n)}))()},onUpdated:function(t){var e=this;return(0,i.A)((0,r.A)().m(function n(){return(0,r.A)().w(function(n){for(;;)switch(n.n){case 0:e.updateItemTime(),e.$emit("updated",t);case 1:return n.a(2)}},n)}))()},onEditorClosed:function(){this.enableEditMode(!1)}}},c=a;const u=(0,n(81656).A)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"gallery-wrap bg2"},[e("div",{staticClass:"gallery d-flex",class:{"edit-mode":t.editMode}},[e("div",{staticClass:"gallery-main"},[t.premium&&t.editMode?e("ImageEditor",{attrs:{item:t.currentItem},on:{deleted:t.onDeleted,reverted:t.onReverted,updated:t.onUpdated,editorClosed:t.onEditorClosed}}):t._e(),t.editMode?t._e():e("div",{staticClass:"gallery-image",style:"background-image: url("+t.getDownloadLink(t.currentItem,!0)+")"},[t.downloading?e("span",{staticClass:"position-absolute loading-file"},[e("b-spinner",{staticStyle:{width:"3rem",height:"3rem"},attrs:{variant:"primary",label:"Spinning"}})],1):e("div",{staticClass:"wpide-editor-actions"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},domProps:{textContent:t._s(t.__("Edit image","wpide"))},on:{click:t.enableEditMode}})])])],1),!t.editMode&&t.images.length?e("div",{staticClass:"gallery-sidebar"},[e("ul",t._l(t.images,function(n,r){return e("li",{key:r},[e("a",{class:{active:t.isCurrentItem(n)},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.itemSelected(n)}}},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.getDownloadLink(n),expression:"getDownloadLink(image)"}]})])])}),0)]):t._e()])])},[],!1,null,"5182c489",null).exports},30566(t,e,n){var r=n(79504),i=n(79306),o=n(20034),a=n(39297),c=n(67680),u=n(40616),s=Function,d=r([].concat),l=r([].join),f={};t.exports=u?s.bind:function(t){var e=i(this),n=e.prototype,r=c(arguments,1),u=function(){var n=d(r,c(arguments));return this instanceof u?function(t,e,n){if(!a(f,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";f[e]=s("C,a","return new C("+l(r,",")+")")}return f[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(u.prototype=n),u}},59089(t,e,n){var r=n(46518),i=n(79504),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},94170(t,e,n){var r=n(46518),i=n(30566);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},59904(t,e,n){n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},40875(t,e,n){var r=n(46518),i=n(79039),o=n(48981),a=n(42787),c=n(12211);r({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},63548(t,e,n){var r=n(43724),i=n(62106),o=n(20034),a=n(13925),c=n(48981),u=n(67750),s=Object.getPrototypeOf,d=Object.setPrototypeOf,l=Object.prototype,f="__proto__";if(r&&s&&d&&!(f in l))try{i(l,f,{configurable:!0,get:function(){return s(c(this))},set:function(t){var e=u(this);a(t)&&o(e)&&d(e,t)}})}catch(t){}},10287(t,e,n){n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},24634(t,e,n){n.d(e,{A:()=>i});n(26099);function r(t,e,n,r,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function c(t){r(a,i,o,c,u,"next",t)}function u(t){r(a,i,o,c,u,"throw",t)}c(void 0)})}}},9217(t,e,n){n.d(e,{A:()=>i});n(52675),n(89463),n(16280),n(76918),n(94170),n(59904),n(40875),n(63548),n(10287),n(26099),n(84185);function r(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}r=function(t,e,n,i){function a(e,n){r(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},r(t,e,n,i)}function i(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function c(n,i,o,a){var c=i&&i.prototype instanceof s?i:s,d=Object.create(c.prototype);return r(d,"_invoke",function(n,r,i){var o,a,c,s=0,d=i||[],l=!1,f={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return o=e,a=0,c=t,f.n=n,u}};function m(n,r){for(a=n,c=r,e=0;!l&&s&&!i&&e<d.length;e++){var i,o=d[e],m=f.p,p=o[2];n>3?(i=p===r)&&(c=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=m&&((i=n<2&&m<o[1])?(a=0,f.v=r,f.n=o[1]):m<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,a=0))}if(i||n>1)return u;throw l=!0,r}return function(i,d,p){if(s>1)throw TypeError("Generator is already running");for(l&&1===d&&m(d,p),a=d,c=p;(e=a<2?t:c)||!l;){o||(a?a<3?(a>1&&(f.n=-1),m(a,c)):f.n=c:f.v=c);try{if(s=2,o){if(a||(i="next"),e=o[i]){if(!(e=e.call(o,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((e=(l=f.n<0)?c:n.call(r,f))!==u)break}catch(e){o=t,a=1,c=e}finally{s=1}}return{value:e,done:l}}}(n,o,a),!0),d}var u={};function s(){}function d(){}function l(){}e=Object.getPrototypeOf;var f=[][o]?e(e([][o]())):(r(e={},o,function(){return this}),e),m=l.prototype=s.prototype=Object.create(f);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,r(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t}return d.prototype=l,r(m,"constructor",l),r(l,"constructor",d),d.displayName="GeneratorFunction",r(l,a,"GeneratorFunction"),r(m),r(m,a,"Generator"),r(m,o,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:p}})()}}}]); |