%PDF- %PDF-
Direktori : /var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-admin/dist/chunks/ |
Current File : //var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-admin/dist/chunks/53.js |
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[53],{439:function(e,t,n){"use strict";var o=n(8),a=n(12),r=n(4),c=n.n(r),i=n(0);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,l=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,o=Object(a.a)(e,["as"]);return"function"==typeof o.children?o.children(o):Object(i.createElement)(n,o)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:c()("components-visually-hidden",r)},l))}},545:function(e,t,n){"use strict";var o=n(7),a=n(12),r=n(0),c=n(4),i=n.n(c),s=n(441);t.a=Object(r.forwardRef)((function(e,t){var n=e.className,c=Object(a.a)(e,["className"]),l=i()("components-flex__item",n);return Object(r.createElement)(s.b,Object(o.a)({},c,{className:l,ref:t}))}))},736:function(e,t,n){"use strict";var o=n(7),a=n(12),r=n(21),c=n(22),i=n(23),s=n(24),l=n(10),u=n(0),d=n(96),p=n(300),b=Object(d.a)((function(e){return function(t){var n=Object(p.a)(e);return Object(u.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId"),m=n(57),f=n(13),h=n(4),v=n.n(h),O=n(54),j=n(277),g=n(131),D=n(130),y=n(132),E=n(129);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var k=function(e){Object(i.a)(n,e);var t=_(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(f.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(f.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===O.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,a=o.describedby,r=o.labelledby,c=e.children,i=e.className,s=e.role,l=e.style;return Object(u.createElement)(g.a,{className:v()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:v()("components-modal__frame",i),style:l,ref:this.containerRef,role:s,"aria-label":n,"aria-labelledby":n?null:r,"aria-describedby":a,tabIndex:"-1"},c))}}]),n}(u.Component),N=Object(j.a)([y.a,E.a,D.a])(k),C=n(3),w=n(451),Z=n(72),R=function(e){var t=e.icon,n=e.title,o=e.onClose,a=e.closeLabel,r=e.headingId,c=e.isDismissible,i=a||Object(C.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:r,className:"components-modal__header-heading"},n)),c&&Object(u.createElement)(Z.a,{onClick:o,icon:w.a,label:i}))},P=n(2),S=new Set(["alert","status","log","marquee","timer"]),x=[],L=!1;function M(e){if(!L){var t=document.body.children;Object(P.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||S.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),x.push(t))})),L=!0}}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var I,T=0,z=function(e){Object(i.a)(n,e);var t=F(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){1===++T&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--T&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){I||(I=document.createElement("div"),document.body.appendChild(I)),this.node=document.createElement("div"),I.appendChild(this.node)}},{key:"cleanDOM",value:function(){I.removeChild(this.node)}},{key:"openFirstModal",value:function(){M(I),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),L&&(Object(P.forEach)(x,(function(e){e.removeAttribute("aria-hidden")})),x=[],L=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,c=e.closeButtonLabel,i=e.children,s=e.aria,l=e.instanceId,d=e.isDismissible,p=e.isDismissable,b=Object(a.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),f=s.labelledby||"components-modal-header-".concat(l);return p&&Object(m.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(N,Object(o.a)({onRequestClose:t,aria:{labelledby:n?f:null,describedby:s.describedby}},b),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(R,{closeLabel:c,headingId:f,icon:r,isDismissible:d||p,onClose:t,title:n}),i)),this.node)}}]),n}(u.Component);z.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=b(z)},767:function(e,t,n){"use strict";var o=n(0),a=n(4),r=n.n(a),c=n(439);function i(e){var t=e.id,n=e.label,a=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(o.createElement)("div",{className:r()("components-base-control",l)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&(a?Object(o.createElement)(c.a,{as:"label",htmlFor:t},n):Object(o.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(a?Object(o.createElement)(c.a,{as:"label"},n):Object(o.createElement)(i.VisualLabel,null,n)),u),!!s&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=r()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)},t.a=i},779:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),a=n(12),r=n(0),c=n(300),i=n(575),s=n(759),l=n(767);function u(e){var t=e.label,n=e.className,d=e.heading,p=e.checked,b=e.help,m=e.onChange,f=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),h=Object(c.a)(u),v="inspector-checkbox-control-".concat(h);return Object(r.createElement)(l.a,{label:d,id:v,help:b,className:n},Object(r.createElement)("span",{className:"components-checkbox-control__input-container"},Object(r.createElement)("input",Object(o.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return m(e.target.checked)},checked:p,"aria-describedby":b?v+"__help":void 0},f)),p?Object(r.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},806:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(8),a=n(26),r=n(7),c=n(12),i=n(0),s=n(4),l=n.n(s),u=n(2),d=n(300),p=n(761),b=n(72),m=function(e){var t=e.tabId,n=e.onClick,o=e.children,a=e.selected,s=Object(c.a)(e,["tabId","onClick","children","selected"]);return Object(i.createElement)(b.a,Object(r.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),o)};function f(e){var t,n=e.className,r=e.children,c=e.tabs,s=e.initialTabName,b=e.orientation,h=void 0===b?"horizontal":b,v=e.activeClass,O=void 0===v?"is-active":v,j=e.onSelect,g=void 0===j?u.noop:j,D=Object(d.a)(f,"tab-panel"),y=Object(i.useState)(null),E=Object(a.a)(y,2),_=E[0],k=E[1],N=function(e){k(e),g(e)},C=Object(u.find)(c,{name:_}),w="".concat(D,"-").concat(null!==(t=null==C?void 0:C.name)&&void 0!==t?t:"none");return Object(i.useEffect)((function(){Object(u.find)(c,{name:_})||k(s||(c.length>0?c[0].name:null))}),[c]),Object(i.createElement)("div",{className:n},Object(i.createElement)(p.a,{role:"tablist",orientation:h,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},c.map((function(e){return Object(i.createElement)(m,{className:l()("components-tab-panel__tabs-item",e.className,Object(o.a)({},O,e.name===_)),tabId:"".concat(D,"-").concat(e.name),"aria-controls":"".concat(D,"-").concat(e.name,"-view"),selected:e.name===_,key:e.name,onClick:Object(u.partial)(N,e.name)},e.title)}))),C&&Object(i.createElement)("div",{"aria-labelledby":w,role:"tabpanel",id:"".concat(w,"-view"),className:"components-tab-panel__tab-content"},r(C)))}},807:function(e,t,n){"use strict";var o=n(7),a=n(8),r=n(12),c=n(0),i=n(4),s=n.n(i),l=n(193),u=n(192);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={isBorderless:!1,isShady:!1,size:"medium"};t.a=function(e){var t=e.className,n=e.isShady,a=Object(r.a)(e,["className","isShady"]),i=p(p(p({},b),Object(u.b)()),e),d=i.isBorderless,m=i.size,f=s()("components-card__footer",d&&"is-borderless",n&&"is-shady",m&&"is-size-".concat(m),t);return Object(c.createElement)(l.c,Object(o.a)({},a,{className:f}))}},821:function(e,t,n){"use strict";var o=n(7),a=n(12),r=n(0),c=n(4),i=n.n(c),s=n(2);t.a=function(e){var t=e.className,n=e.checked,c=e.id,l=e.onChange,u=void 0===l?s.noop:l,d=Object(a.a)(e,["className","checked","id","onChange"]),p=i()("components-form-toggle",t,{"is-checked":n});return Object(r.createElement)("span",{className:p},Object(r.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:c,type:"checkbox",checked:n,onChange:u},d)),Object(r.createElement)("span",{className:"components-form-toggle__track"}),Object(r.createElement)("span",{className:"components-form-toggle__thumb"}))}},825:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return v}));var o=n(27),a=n(21),r=n(22),c=n(13),i=n(23),s=n(24),l=n(10),u=n(0),d=n(2),p=n(82),b=n.n(p);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var f=Object(u.createContext)({addDropZone:function(){},removeDropZone:function(){}}),h=f.Provider,v=f.Consumer,O=function(e){var t=e.dataTransfer;if(t){if(Object(d.includes)(t.types,"Files"))return"file";if(Object(d.includes)(t.types,"text/html"))return"html"}return"default"},j=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},g=function(e){Object(i.a)(n,e);var t=m(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(c.a)(e)),e.onDrop=e.onDrop.bind(Object(c.a)(e)),e.addDropZone=e.addDropZone.bind(Object(c.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(c.a)(e)),e.resetDragState=e.resetDragState.bind(Object(c.a)(e)),e.toggleDraggingOverDocument=Object(d.throttle)(e.toggleDraggingOverDocument.bind(Object(c.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(u.createRef)(),e}return Object(r.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(d.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,o=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,a=Object(d.filter)(this.dropZones,(function(e){return j(t,e)&&(n=e.element.current,a=o.clientX,r=o.clientY,(c=n.getBoundingClientRect()).bottom!==c.top&&c.left!==c.right&&a>=c.left&&a<=c.right&&r>=c.top&&r<=c.bottom);var n,a,r,c})),r=Object(d.find)(a,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(d.some)(a,(function(n){return n!==e&&t.contains(n.element.current)}))})),c=this.dropZones.indexOf(r),i=null;r&&r.withPosition&&(i={x:o.clientX,y:o.clientY});var s=[];this.state.isDraggingOverDocument?c!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&s.push(this.dropZones[this.state.hoveredDropZone]),r&&s.push(r)):r&&c===this.state.hoveredDropZone&&!Object(d.isEqual)(i,this.state.position)&&s.push(r):s=this.dropZones,s.forEach((function(e){var o=n.dropZones.indexOf(e)===c;e.setState({isDraggingOverDocument:j(t,e),isDraggingOverElement:o,position:o?i:null,type:o?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:c,position:i};b()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,O(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,a=t.hoveredDropZone,r=O(e),c=this.dropZones[a];if(this.resetDragState(),c)switch(r){case"file":c.onFilesDrop(Object(o.a)(e.dataTransfer.files),n);break;case"html":c.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":c.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(u.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(u.createElement)(h,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(u.Component);t.c=g},842:function(e,t,n){"use strict";var o=n(7),a=n(12),r=n(0),c=n(72);t.a=function(e){var t=e.accept,n=e.children,i=e.multiple,s=void 0!==i&&i,l=e.onChange,u=e.render,d=Object(a.a)(e,["accept","children","multiple","onChange","render"]),p=Object(r.useRef)(),b=function(){p.current.click()},m=u?u({openFileDialog:b}):Object(r.createElement)(c.a,Object(o.a)({onClick:b},d),n);return Object(r.createElement)("div",{className:"components-form-file-upload"},m,Object(r.createElement)("input",{type:"file",ref:p,multiple:s,style:{display:"none"},accept:t,onChange:l}))}},855:function(e,t,n){"use strict";var o=n(8),a=n(7),r=n(26),c=n(0),i=n(4),s=n.n(i),l=n(3),u=n(575),d=n(88),p=Object(c.createElement)(d.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(d.b,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),b=n(825);function m(e){var t,n=e.className,a=e.label,i=e.onFilesDrop,d=e.onHTMLDrop,m=e.onDrop,f=Object(c.useRef)(),h=function(e){var t=e.element,n=e.onFilesDrop,o=e.onHTMLDrop,a=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(b.a),p=d.addDropZone,m=d.removeDropZone,f=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(r.a)(f,2),v=h[0],O=h[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:a,onFilesDrop:n,onHTMLDrop:o,setState:O,withPosition:s,isRelative:u};return p(e),function(){m(e)}}}),[i,a,n,o,s]),v}({element:f,onFilesDrop:i,onHTMLDrop:d,onDrop:m,__unstableIsRelative:!0}),v=h.isDraggingOverDocument,O=h.isDraggingOverElement,j=h.type;O&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(u.a,{icon:p,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},a||Object(l.__)("Drop files to upload"))));var g=s()("components-drop-zone",n,Object(o.a)({"is-active":(v||O)&&("file"===j&&i||"html"===j&&d||"default"===j&&m),"is-dragging-over-document":v,"is-dragging-over-element":O},"is-dragging-".concat(j),!!j));return Object(c.createElement)("div",{ref:f,className:g},t)}t.a=function(e){return Object(c.createElement)(b.b,null,(function(t){var n=t.addDropZone,o=t.removeDropZone;return Object(c.createElement)(m,Object(a.a)({addDropZone:n,removeDropZone:o},e))}))}},98:function(e,t){function n(e,t,n,o,a,r,c){try{var i=e[r](c),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(o,a)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise((function(a,r){var c=e.apply(t,o);function i(e){n(c,a,r,i,s,"next",e)}function s(e){n(c,a,r,i,s,"throw",e)}i(void 0)}))}}}}]);