Admin Columns - Version 4.3

Version Description

Release Date: April 29th, 2021

  • [Fixed] Graceful handle corrupt column settings in order to prevent a fatal error
  • [Fixed] The date setting was not working correctly a second time you store a custom date format
  • [Fixed] Graceful handle corrupt column settings in order to prevent a fatal error
  • [Fixed] The column label in settings will now be sanitized
Download this release

Release Info

Developer tschutter
Plugin Icon 128x128 Admin Columns
Version 4.3
Comparing to
See all releases

Code changes from version 4.2.5 to 4.3

Files changed (120) hide show
  1. assets/css/admin-general.css +1 -1
  2. assets/css/admin-page-columns.css +1 -1
  3. assets/css/table.css +1 -1
  4. assets/external/qtip2/jquery.qtip.css +0 -0
  5. assets/external/qtip2/jquery.qtip.js +0 -0
  6. assets/external/qtip2/jquery.qtip.min.css +0 -0
  7. assets/external/qtip2/jquery.qtip.min.js +0 -0
  8. assets/external/qtip2/jquery.qtip.min.js.map +0 -0
  9. assets/images/addons/gravityforms.svg +10 -0
  10. assets/js/admin-general.js +2 -2
  11. assets/js/admin-general.js.map +1 -1
  12. assets/js/admin-page-addons.js +1 -1
  13. assets/js/admin-page-addons.js.map +1 -1
  14. assets/js/admin-page-columns.js +1 -1
  15. assets/js/admin-page-columns.js.map +1 -1
  16. assets/js/message-review.js +1 -1
  17. assets/js/message-review.js.map +1 -1
  18. assets/js/notice-dismissible.js +1 -1
  19. assets/js/notice-dismissible.js.map +1 -1
  20. assets/js/select2.js +0 -0
  21. assets/js/table.js +1 -1
  22. assets/js/table.js.map +1 -1
  23. classes/Admin/Asset/Columns.php +9 -12
  24. classes/Admin/Notice/ReadOnly.php +28 -0
  25. classes/Admin/Page/Columns.php +61 -29
  26. classes/Admin/Preference/ListScreen.php +31 -0
  27. classes/Admin/Section/Partial/Menu.php +3 -9
  28. classes/Admin/Tooltip.php +0 -4
  29. classes/AdminColumns.php +4 -3
  30. classes/AdminFactory.php +4 -9
  31. classes/Ajax/NumberFormat.php +1 -2
  32. classes/ApplyFilter.php +14 -0
  33. classes/ArrayIterator.php +0 -18
  34. classes/Column/Comment/DateGmt.php +1 -6
  35. classes/Column/CustomField.php +4 -3
  36. classes/Column/Meta.php +1 -1
  37. classes/Column/Post/Sticky.php +2 -2
  38. classes/Column/User/FirstPost.php +64 -0
  39. classes/Column/User/LastPost.php +62 -0
  40. classes/Column/User/PostCount.php +9 -1
  41. classes/ColumnRepository.php +60 -0
  42. classes/ColumnRepository/Filter.php +9 -0
  43. classes/ColumnRepository/Sort.php +9 -0
  44. classes/Controller/AjaxColumnValue.php +1 -1
  45. classes/Controller/ColumnRequest.php +2 -4
  46. classes/Controller/ColumnRequest/Refresh.php +2 -11
  47. classes/Controller/ListScreen/Sanitize/FormData.php +22 -0
  48. classes/Controller/ListScreen/Sanitize/Title.php +15 -0
  49. classes/Controller/ListScreen/Save.php +27 -27
  50. classes/Controller/ListScreenRequest.php +0 -169
  51. classes/Controller/Middleware/ListScreenAdmin.php +74 -0
  52. classes/Controller/Middleware/ListScreenTable.php +90 -0
  53. classes/Controller/RestoreSettingsRequest.php +5 -0
  54. classes/Controller/TableListScreenSetter.php +78 -0
  55. classes/Deprecated/Hooks.php +2 -1
  56. classes/Helper/Html.php +1 -1
  57. classes/Helper/Media.php +2 -2
  58. classes/Helper/Select/Options/Paginated.php +0 -9
  59. classes/Helper/Select/Response.php +0 -3
  60. classes/Integration/GravityForms.php +36 -0
  61. classes/ListScreen.php +12 -15
  62. classes/ListScreen/Comment.php +3 -13
  63. classes/ListScreen/Media.php +3 -4
  64. classes/ListScreen/Post.php +2 -3
  65. classes/ListScreen/User.php +8 -9
  66. classes/ListScreenRepository/Database.php +2 -2
  67. classes/ListScreenRepository/Filter/ExcludeNetwork.php +20 -0
  68. classes/ListScreenRepository/Filter/Network.php +25 -0
  69. classes/ListScreenRepository/Filter/Permission.php +1 -1
  70. classes/ListScreenRepository/Rule/EqualGroup.php +0 -3
  71. classes/ListScreenRepository/Rule/EqualId.php +0 -3
  72. classes/ListScreenRepository/Rule/EqualType.php +0 -3
  73. classes/ListScreenRepository/Storage.php +14 -6
  74. classes/ListScreenRepository/Storage/ListScreenRepository.php +0 -21
  75. classes/ListScreenRepository/Storage/ListScreenRepositoryFactory.php +2 -26
  76. classes/ListScreenTypes.php +7 -4
  77. classes/ListScreenWP.php +3 -0
  78. classes/ListTable.php +5 -0
  79. classes/ListTable/Comment.php +1 -4
  80. classes/ListTable/Media.php +30 -0
  81. classes/ListTable/NetworkSite.php +36 -0
  82. classes/ListTable/NetworkUser.php +30 -0
  83. classes/ListTable/Post.php +1 -4
  84. classes/ListTable/Taxonomy.php +6 -2
  85. classes/ListTable/User.php +7 -0
  86. classes/ListTable/WpListTableTrait.php +21 -0
  87. classes/ListTableFactory.php +29 -71
  88. classes/Message/InlineMessage.php +12 -1
  89. classes/Meta/Query.php +0 -4
  90. classes/MetaType.php +2 -0
  91. classes/PermissionChecker.php +16 -12
  92. classes/Plugin/Update/V4000.php +1 -1
  93. classes/Plugin/Updater/Site.php +0 -6
  94. classes/Preferences.php +1 -1
  95. classes/Request.php +4 -0
  96. classes/Sanitize.php +9 -0
  97. classes/Service/Storage.php +0 -36
  98. classes/Settings/Column.php +5 -1
  99. classes/Settings/Column/CustomFieldType.php +3 -1
  100. classes/Settings/Column/DateTimeFormat.php +2 -2
  101. classes/Settings/Column/Label.php +1 -1
  102. classes/Settings/Column/Post.php +9 -0
  103. classes/Settings/Column/PostStatus.php +64 -0
  104. classes/Settings/Column/PostType.php +15 -0
  105. classes/Settings/Column/Type.php +0 -1
  106. classes/Settings/Column/Width.php +3 -1
  107. classes/Table/TableFormView.php +2 -0
  108. classes/TableLoader.php +0 -114
  109. classes/ThirdParty/WPML.php +14 -3
  110. classes/Transient.php +7 -0
  111. classes/Type/Url/Documentation.php +8 -0
  112. classes/Type/Url/Site.php +1 -0
  113. classes/WpListTableFactory.php +97 -0
  114. codepress-admin-columns.php +3 -3
  115. config/autoload-classmap.php +23 -3
  116. languages/codepress-admin-columns-ar_AR.mo +0 -0
  117. languages/codepress-admin-columns-ar_AR.po +180 -111
  118. languages/codepress-admin-columns-bg_BG.mo +0 -0
  119. languages/codepress-admin-columns-bg_BG.po +179 -110
  120. languages/codepress-admin-columns-da_DK.po +104 -34
assets/css/admin-general.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #C8C8C8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{background:#f5f5f5;font-size:18px;line-height:18px;color:#807F7F;padding:17px 25px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#989797;cursor:pointer}body .ac-modal__dialog__close:hover{background:#e1e1e1}body .ac-modal__dialog__content{padding:25px;max-height:calc(100vh - 200px);overflow:scroll}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6D6D6D}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:20px 24px;border-top:1px solid #DBDBDB;color:#979696;font-size:16px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#E3E7EB}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .button.loading{padding-left:25px;padding-right:0}body.rtl .button.loading span{left:6px;right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .checkbox-labels>label,body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .radio-labels>label{padding-right:0;padding-left:10px;display:inline-block}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner .meta{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label span.vers{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label a.more-info{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.description{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.input-width-range{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form a.help{float:left}body.rtl .ac-admin__main .column-footer .order-message{float:right;padding-right:22px;padding-left:0;margin-right:8px}body.rtl .ac-admin__main .column-footer .order-message .order-message__icon{left:inherit;right:0;transform:scaleX(-1)}body.rtl .ac-admin__main .column-footer .button-container{float:left}body.rtl .ac-admin__main .column-footer .submit{display:none}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .ac-column-setting td.col-label .ac-pointer{right:inherit;left:4px}body.rtl .ac-setting-input-width div.description{direction:ltr}body.rtl .ac-setting-input-width div.unit-select{left:0;right:inherit}body.rtl .ac-setting-input-width div.unit-select .radio-labels label{margin-right:0;padding-left:0 !important}body.rtl .ac-section-group.-tools .ac-section.-export{margin-right:0;margin-left:27px}body.rtl .ac-setbox__row a.ac-pointer.instructions{right:inherit;left:10px}body.rtl .ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{right:2px;padding-left:4px}body.rtl .ac-setbox .radio-labels label{display:inline-block}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:rgba(0,0,0,0.75);border-radius:3px;padding:3px 9px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000}.ac-tooltip:before{content:'';display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,0.8);border-left:6px solid transparent;border-right:6px solid transparent;position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}#cpac a:focus,#cpac a:active{outline:none}.ac-message{background:#fff;padding:1px 12px;border:1px solid #ccd0d4;border-left-width:4px;margin-bottom:15px}.ac-message p{margin:0.5em 0}.ac-message.notice-warning{border-left-color:#ffb900}.ac-message.notice-error{border-left-color:#dc3232}.wrap .nav-tab-wrapper{margin-bottom:24px}.wrap .notice{margin-top:16px;margin-bottom:16px}.ac-badge{display:inline-block;background:#d54e21;border-radius:10px;font-size:9px;line-height:17px;padding:0 6px;margin:-1px 0 0 4px;vertical-align:middle;color:#fff;font-weight:600}a.external:after{content:"\f504";display:inline-block;margin-left:4px;font-size:17px;color:#797979;line-height:1;font-family:dashicons, serif;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;text-align:center}.button.loading{padding-right:25px;position:relative}.cpac_message.error.warning{border-left:4px solid #ffba00}div.menu{position:relative;padding:0;margin-top:16px;margin-bottom:16px}div.menu select{display:inline-block;margin:0}div.menu .spinner{display:none;float:none;visibility:visible;margin:0 0 0 14px}div.menu .view-link,div.menu .view-link:active{display:inline-block;margin:0 0 0 12px;top:2px}table.ac-form-table{max-width:1100px;margin-top:20px}table.ac-form-table>tbody>tr>td,table.ac-form-table>tbody>tr>th{vertical-align:top}table.ac-form-table.settings tr th{font-weight:normal}table.ac-form-table.settings tr th h2{margin:0}table.ac-form-table.settings tr td{padding-top:58px}table.ac-form-table .general form div.checkbox-labels{margin-bottom:6px}table.ac-form-table .general form p.save-button{margin-top:10px}.wp-pointer-content{overflow:hidden}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}.wp-pointer.noclick .wp-pointer-buttons{display:none}.ac-wp-pointer img{max-width:calc(100% - 40px);height:auto;margin:20px;margin-bottom:5px;margin-top:0}.ac-wp-pointer p.notice{padding-top:10px;padding-bottom:10px}.ac-wp-pointer .wp-pointer-arrow{pointer-events:none}.ac-section{background:#F5F5F5;margin-bottom:28px;box-shadow:0 1px 3px rgba(0,0,0,0.1)}.ac-section__header{background:#fff;padding:13px 14px;border-bottom:1px solid #E1E1E1;position:relative}.ac-section__header__title{font-size:15px;margin:0;font-weight:bold}.ac-section__body{padding:16px 16px}.ac-section p{margin:0 0 1em 0;max-width:800px}.ac-section.-closable .ac-section__header{padding-right:30px;cursor:pointer}.ac-section.-closable .ac-section__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-section.-closable.-closed .ac-section__header:after{transform:rotate(180deg)}.ac-section.-closable.-closed .ac-section__body{display:none}
1
+ @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #C8C8C8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{background:#f5f5f5;font-size:18px;line-height:18px;color:#807F7F;padding:17px 25px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#989797;cursor:pointer}body .ac-modal__dialog__close:hover{background:#e1e1e1}body .ac-modal__dialog__content{padding:25px;max-height:calc(100vh - 200px);overflow:scroll}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6D6D6D}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:20px 24px;border-top:1px solid #DBDBDB;color:#979696;font-size:16px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#E3E7EB}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .button.loading{padding-left:25px;padding-right:0}body.rtl .button.loading span{left:6px;right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .checkbox-labels>label,body.rtl .ac-admin__main .ac-columns .ac-column .ac-setting-input .radio-labels>label{padding-right:0;padding-left:10px;display:inline-block}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label .inner .meta{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_label span.vers{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .ac-admin__main .ac-columns .ac-column .column-form table tr td.label a.more-info{float:left}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.description{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form div.input-width-range{float:right}body.rtl .ac-admin__main .ac-columns .ac-column .column-form a.help{float:left}body.rtl .ac-admin__main .column-footer .order-message{float:right;padding-right:22px;padding-left:0;margin-right:8px}body.rtl .ac-admin__main .column-footer .order-message .order-message__icon{left:inherit;right:0;transform:scaleX(-1)}body.rtl .ac-admin__main .column-footer .button-container{float:left}body.rtl .ac-admin__main .column-footer .submit{display:none}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .ac-column-setting td.col-label .ac-pointer{right:inherit;left:4px}body.rtl .ac-setting-input-width div.description{direction:ltr}body.rtl .ac-setting-input-width div.unit-select{left:0;right:inherit}body.rtl .ac-setting-input-width div.unit-select .radio-labels label{margin-right:0;padding-left:0 !important}body.rtl .ac-section-group.-tools .ac-section.-export{margin-right:0;margin-left:27px}body.rtl .ac-setbox__row a.ac-pointer.instructions{right:inherit;left:10px}body.rtl .ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{right:2px;padding-left:4px}body.rtl .ac-setbox .radio-labels label{display:inline-block}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:rgba(0,0,0,0.75);border-radius:3px;padding:3px 9px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000}.ac-tooltip:before{content:'';display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,0.8);border-left:6px solid transparent;border-right:6px solid transparent;position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:#1e8cbe}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}#cpac a:focus,#cpac a:active{outline:none}.ac-message{background:#fff;padding:1px 12px;border:1px solid #ccd0d4;border-left-width:4px;margin-bottom:15px}.ac-message p{margin:0.5em 0}.ac-message.notice-warning{border-left-color:#ffb900}.ac-message.notice-error{border-left-color:#dc3232}.wrap .nav-tab-wrapper{margin-bottom:24px}.wrap .notice{margin-top:16px;margin-bottom:16px}.ac-badge{display:inline-block;background:#d54e21;border-radius:10px;font-size:9px;line-height:17px;padding:0 6px;margin:-1px 0 0 4px;vertical-align:middle;color:#fff;font-weight:600}a.external:after{content:"\f504";display:inline-block;margin-left:4px;font-size:17px;color:#797979;line-height:1;font-family:dashicons, serif;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;text-align:center}.button.loading{padding-right:25px;position:relative}.cpac_message.error.warning{border-left:4px solid #ffba00}div.menu{position:relative;padding:0;margin-top:16px;margin-bottom:16px}div.menu select{display:inline-block;margin:0}div.menu .spinner{display:none;float:none;visibility:visible;margin:0 0 0 14px}div.menu .view-link,div.menu .view-link:active{display:inline-block;margin:0 0 0 12px;top:2px}table.ac-form-table{max-width:1100px;margin-top:20px}table.ac-form-table>tbody>tr>td,table.ac-form-table>tbody>tr>th{vertical-align:top}table.ac-form-table.settings tr th{font-weight:normal}table.ac-form-table.settings tr th h2{margin:0}table.ac-form-table.settings tr td{padding-top:58px}table.ac-form-table .general form div.checkbox-labels{margin-bottom:6px}table.ac-form-table .general form p.save-button{margin-top:10px}.wp-pointer-content{overflow:hidden}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}.wp-pointer.noclick .wp-pointer-buttons{display:none}.ac-wp-pointer img{max-width:calc(100% - 40px);height:auto;margin:20px;margin-bottom:5px;margin-top:0}.ac-wp-pointer p.notice{padding-top:10px;padding-bottom:10px}.ac-wp-pointer .wp-pointer-arrow{pointer-events:none}.ac-section{background:#F5F5F5;margin-bottom:28px;box-shadow:0 1px 3px rgba(0,0,0,0.1)}.ac-section__header{background:#fff;padding:13px 14px;border-bottom:1px solid #E1E1E1;position:relative}.ac-section__header__title{font-size:15px;margin:0;font-weight:bold}.ac-section__body{padding:16px 16px}.ac-section p{margin:0 0 1em 0;max-width:800px}.ac-section.-closable .ac-section__header{padding-right:30px;cursor:pointer}.ac-section.-closable .ac-section__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-section.-closable.-closed .ac-section__header:after{transform:rotate(180deg)}.ac-section.-closable.-closed .ac-section__body{display:none}
assets/css/admin-page-columns.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.ac-setbox{-webkit-font-smoothing:antialiased;margin-top:30px}.ac-setbox__descriptive{color:#636669;font-size:13px;line-height:17px}.ac-setbox__header{padding:10px;position:relative;cursor:pointer}.ac-setbox__header__title{font-size:15px;font-weight:bold}.ac-setbox__header__title small{font-size:14px;font-weight:300;color:#72777C}.ac-setbox__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-setbox__row{background:#fff}.ac-setbox__row__th,.ac-setbox__row__fields{border-bottom:1px solid #dfdfdf}.ac-setbox__row__th{background:#f5f5f5;position:relative;padding:12px 13px;padding-top:15px;border-right:1px solid #dedede}.ac-setbox__row__th label{display:block;font-weight:bold;margin-bottom:5px}.ac-setbox__row__th small{color:#636669;font-size:13px;line-height:17px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row__fields__inner{padding:15px}.ac-setbox__row__fields__inner>*:last-child{margin-bottom:0}.ac-setbox__row__fields select{width:100%;margin-bottom:10px}.ac-setbox__row a.ac-pointer.instructions{position:absolute;top:14px;right:10px;display:inline-block;cursor:pointer}@media screen and (min-width: 900px){.ac-setbox__row{display:flex}.ac-setbox__row__th{flex:0 0 230px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row.-sub{display:block}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}@media screen and (min-width: 1150px){.ac-setbox__row.-sub{display:flex}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}.ac-setbox .checkbox-labels>label,.ac-setbox .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setbox .checkbox-labels.vertical input[type=radio],.ac-setbox .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setbox .checkbox-labels.vertical>label,.ac-setbox .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setbox.-closed .ac-setbox__header:after{transform:rotate(180deg)}.ac-setbox.-closed .ac-setbox__row{display:none}.ac-setbox .select2-search__field{width:100% !important}.ac-ls-settings .select2{margin-bottom:10px}.ac-ls-settings .select2 input{min-height:0}.ac-ls-settings .select2 li{margin-bottom:0}.ac-ls-settings .row.users .select2{margin-bottom:0}.ac-ls-settings select.sorting_order{margin-bottom:0}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column span.select2-container{z-index:1}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:'\f101';font:normal 20px/.5 'dashicons';speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}#add-new-column-template{display:none}.ac-admin{max-width:1200px}@media only screen and (min-width: 900px){.ac-admin__wrap{display:flex;flex-direction:row-reverse}.ac-admin__wrap .ac-admin__main{flex:1 1 auto}.ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:20px}.rtl .ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:0;margin-right:20px}}.ac-admin__main .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin__main .column-footer a.submit.save,.ac-admin__main .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin__main .column-footer .submit.save{display:inline-block}.ac-admin__main .column-footer .submit.update{display:none}.ac-admin__main .column-footer .spinner{display:none}.ac-admin.saving .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:center center;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.save{display:none}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.update{display:block}.ac-admin.stored .ac-admin__sidebar .form-actions .form-reset{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-admin.show-list-screen-type .ac-admin__sidebar .sidebox.form-actions small.list-screen-type,.ac-admin.show-list-screen-id .ac-admin__sidebar .sidebox.form-actions small.list-screen-id{display:block}.ac-admin.show-list-screen-id .layouts__item__title small.layouts__item__id{display:inline}.ac-admin__main .ac-notice{background:#fff;border-left:4px solid #ffba00;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin-bottom:15px;padding:1px 12px}.ac-admin__main .ajax-message{display:none}.ac-admin__main .ac-message{margin-top:0 !important}.ac-admin__main .ac-message p{min-height:1px;overflow:hidden}.ac-admin__main .ac-message>.dashicons{float:left;margin-top:6px;color:#b7b7b7;margin-right:5px}.ac-admin__main .ac-message.notice-info{border-left:4px solid #00a0d2}.ac-admin__main .ac-boxes .ac-columns form{box-shadow:0 1px 3px rgba(0,0,0,0.1);margin:0}.ac-admin__main .ac-boxes.show-column-id div.ac-column-header table tr td.column_label .inner small.column-id{display:inline}.ac-admin__main .ac-boxes.show-column-type div.ac-column-header table tr td.column_label .inner small.column-type{display:inline}.ac-column a{cursor:pointer}.ac-column a:focus,.ac-column a:active{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:0.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:"\f142"}.ac-column.opened .ac-column-header table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #FFFFFF}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #FFFFFF}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5C5C5C}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column.disabled,.boxes.disabled .ac-column{opacity:0.7}.ac-column.disabled a.remove-button,.ac-column.disabled a.clone-button,.ac-column.disabled .column_action,.boxes.disabled .ac-column a.remove-button,.boxes.disabled .ac-column a.clone-button,.boxes.disabled .ac-column .column_action{display:none !important}.ac-column.disabled .column-meta td.column_sort,.boxes.disabled .ac-column .column-meta td.column_sort{display:none}.ac-column.disabled .column-meta td.column_label,.boxes.disabled .ac-column .column-meta td.column_label{padding-left:10px}.ac-column.disabled .meta span,.boxes.disabled .ac-column .meta span{cursor:default !important;opacity:0.45}.ac-column.disabled .meta span:before,.boxes.disabled .ac-column .meta span:before{color:#808080 !important}.ac-column.disabled .meta span.on,.boxes.disabled .ac-column .meta span.on{opacity:1}.ac-column.disabled .column-footer,.boxes.disabled .ac-column .column-footer{display:none}.ac-column.disabled .ac-column-body:before,.boxes.disabled .ac-column .ac-column-body:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:0.3;cursor:not-allowed}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid #e8e8e8}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid #dedede;width:30%;padding:10px;padding-left:12px}.ac-column-setting td.col-label .ac-pointer{position:absolute;right:4px;top:10px;padding:4px;height:17px}.ac-column-setting td.col-label a.more-link{text-decoration:none;color:#d2d2d2;position:absolute;right:8px;top:17px}.ac-column-setting td.col-label a.more-link span.dashicons{font-size:17px}.ac-column-setting td.col-label a.more-link:hover{color:#acacac}.ac-column-setting td.col-label span.label{font-weight:bold;display:inline-block;color:#333333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0 !important;display:none;position:absolute;max-width:200px;z-index:99;top:40px;left:0;font-weight:normal;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,0.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:0.5em 0 1em 0}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.close-button,.ac-column-setting-actions .col-settings a.clone-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:#f00}.ac-column .ac-setting-input{padding:10px;line-height:24px}.ac-column .ac-setting-input input,.ac-column .ac-setting-input select{width:99.95%;max-width:none}.ac-column .ac-setting-input input[type=checkbox],.ac-column .ac-setting-input input[type=radio]{width:auto;margin-right:4px}.ac-column .ac-setting-input__info{margin-left:5px;transform:translateY(2px)}.ac-column .ac-setting-input .checkbox-labels>label,.ac-column .ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-column .ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-column .ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-column .ac-setting-input .checkbox-labels.vertical>label,.ac-column .ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-column .ac-setting-input .ac-pointer{color:#8d8d8d;display:inline-block;transform:translateY(2px)}.ac-column .ac-setting-input__icon{display:inline-block;margin-right:10px}.ac-column .ac-setting-input__icon.-warning{transform:translateY(3px)}.ac-column .ac-setting-input__icon+*{display:inline-block}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:71px !important;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:72px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell;padding-left:4px;padding-right:4px;border-color:#7e8993;border-top-right-radius:0;border-bottom-right-radius:0}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #7e8993;border-left:none;color:#505050;border-top-right-radius:4px;border-bottom-right-radius:4px}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize;z-index:1}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-setting--pro .col-label .dashicons{color:#A99D9F;transform:scale(0.9, 0.9);margin-top:2px;display:inline-block;margin-right:3px;cursor:pointer}.ac-column-setting--pro td.col-input{background:#f5f5f5}.ac-column-setting--pro .radio-labels{display:inline-block}.ac-column-setting--pro .radio-labels input{background-color:#F0F0F0}.ac-column-setting--pro .radio-labels input:checked:before{background-color:#808080}.ac-column-setting--pro .ac-setting-input{background:#f5f5f5}.ac-column-setting--pro .acp-button{background:#e9426e;color:#fff;border:none;border-radius:3px;padding:3px 10px;letter-spacing:2px;cursor:pointer;font-size:13px;vertical-align:middle;margin-top:-1px;margin-left:5px}div.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}div.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}div.ac-column-header img{margin-right:3px}div.ac-column-header table.widefat{border:none}div.ac-column-header table{border:none;background:transparent;border-radius:0}div.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}div.ac-column-header table tr td.column_sort{position:relative;cursor:move;padding:9px 12px}div.ac-column-header table tr td.column_sort span.cpacicon-move{position:absolute;top:12px;left:12px;font-size:22px;display:inline-block;color:#bdbdbd}div.ac-column-header table tr td.column_label{width:70%;font-weight:bold;vertical-align:middle;position:relative;padding:15px 0}div.ac-column-header table tr td.column_label .inner{position:relative;overflow:visible;height:18px}div.ac-column-header table tr td.column_label .inner .toggle img{max-height:20px}div.ac-column-header table tr td.column_label .inner small.column-type,div.ac-column-header table tr td.column_label .inner small.column-id{font-weight:normal;display:none}div.ac-column-header table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}div.ac-column-header table tr td.column_label .inner>a:hover{color:#333333}div.ac-column-header table tr td.column_label .inner>a.edit-button,div.ac-column-header table tr td.column_label .inner>a.close-button,div.ac-column-header table tr td.column_label .inner>a.remove-button,div.ac-column-header table tr td.column_label .inner>a.clone-button{display:none;color:#0074a2;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px}div.ac-column-header table tr td.column_label .inner>a.edit-button:hover,div.ac-column-header table tr td.column_label .inner>a.close-button:hover,div.ac-column-header table tr td.column_label .inner>a.remove-button:hover,div.ac-column-header table tr td.column_label .inner>a.clone-button:hover{color:#2ea2cc}div.ac-column-header table tr td.column_label .inner>a.remove-button{color:#a00}div.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:#f00}div.ac-column-header table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:normal;color:#b2b2b2;font-size:12px;width:190px;position:relative}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting{cursor:pointer;margin-left:4px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-heading-setting--width{margin-right:3px;cursor:auto;color:#737373;position:absolute;right:calc(100% - 40px)}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator{margin-left:3px;font-size:22px;line-height:17px;width:22px;position:absolute;left:0}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--export{left:39px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--sort{left:66px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--edit{left:93px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--bulk_edit{left:120px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--search{left:147px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{left:174px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{top:1px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.cpacicon-filter{font-size:20px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on,div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on span{color:#21759B}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.cpacicon{font-size:14px;line-height:18px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.disabled{cursor:default}div.ac-column-header table tr td.column_type{width:auto;min-width:120px;text-align:right;color:#999999;padding-right:0;line-height:21px}div.ac-column-header table tr td.column_type .inner{display:inline-block;height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;vertical-align:middle}div.ac-column-header table tr td.column_type .inner a{margin-top:2px;color:#999999}div.ac-column-header table tr td.column_edit{width:38px;min-width:38px;text-align:center;cursor:pointer}div.ac-column-header table tr td.column_edit:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 5px 0 0;bottom:0;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important;color:#b4b9be}div.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}div.ac-column-header:hover .column_label .inner>a.remove-button,div.ac-column-header:hover .column_label .inner>a.edit-button,div.ac-column-header:hover .column_label .inner>a.clone-button{display:inline-block}div.ac-column-header span.vers{padding-top:2px}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#EAF2FA;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{color:#7A9BBE;float:left;font-family:Comic Sans MS, sans-serif;font-size:11px;height:13px;position:relative;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #FFFFFF;display:inline-block}.column-footer .order-message__icon{display:inline-block;position:absolute;left:0;top:0}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:#BC0B0B;text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{color:red}.ac-admin__sidebar .sidebox{background:none repeat scroll 0 0 #FFFFFF;border:1px solid #dedede;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,0.1);position:relative;margin-bottom:14px}.ac-admin__sidebar .sidebox h3{padding:10px;margin:0;position:relative}.ac-admin__sidebar .sidebox h3.title{font-family:Georgia, "Times New Roman", "Bitstream Charter", Times, serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-admin__sidebar .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px;float:none}.ac-admin__sidebar .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:#808080;margin-top:4px}.ac-admin__sidebar .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-admin__sidebar .sidebox .inside{padding:10px}.ac-admin__sidebar .sidebox .inside p{margin-top:0}.ac-admin__sidebar .sidebox.form-actions small.list-screen-id,.ac-admin__sidebar .sidebox.form-actions small.list-screen-type{display:none;line-height:25px}.ac-admin__sidebar .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid #F5F5F5;padding:8px}.ac-admin__sidebar .sidebox.form-actions .reset-column-type{text-decoration:none;color:#BC0B0B;line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-admin__sidebar .sidebox.form-actions .reset-column-type:hover{color:red}.ac-admin__sidebar .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-admin__sidebar .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-admin__sidebar .sidebox.form-actions .submit.save{display:block}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support,.ac-admin__sidebar .sidebox#direct-feedback #feedback-rate{display:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #CCC;width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type="submit"]{display:inline-block;float:right;border-radius:4px;border:1px solid #CCC;height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#CCC;background:none;text-decoration:none;cursor:pointer}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type="submit"]:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-admin__sidebar .sidebox#direct-feedback .inside ul{margin:0}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #CCC;border-radius:4px;display:block}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px;line-height:40px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version sup{text-decoration:line-through;font-size:13px;color:#ccc}#ac-pro-version .ac-pro-prices{margin:8px 0 0;font-style:italic}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px;cursor:pointer}#ac-pro-version .more{color:#FFEE85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none;padding-left:25px;position:relative;display:block}#ac-pro-version ul li a:before{content:'\2713';font-weight:bold;font-size:16px;position:absolute;left:0;top:0}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a{color:#FFEE85}#ac-pro-version ul li.acp-integration a:before{content:'+'}#ac-pro-version .padding-box.ac-pro-deal{color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}.ac-column-setting--label .ac-setting-input__container{position:relative}.ac-column-setting--label .ac-setting-input__container input{height:28px;line-height:28px;padding-right:34px}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{background:#fff;position:absolute;top:4px;height:22px;color:#ccc;right:0;border:none;cursor:pointer;outline:none !important;transition:color .5s}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:hover,.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:focus{color:#999}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:active{color:#21759B}.ac-ipicker__modal{background:#fff;max-width:90%;width:770px;height:450px;display:flex;padding:20px}.ac-ipicker.fixed{position:fixed;z-index:99999;background:rgba(0,0,0,0.8);display:flex;top:0;right:0;bottom:0;left:0;height:auto;align-items:center;justify-content:center}.ac-ipicker__icons{flex:1 1 auto}.ac-ipicker__icons__group{display:block;clear:both;padding-top:15px;margin-top:20px;margin-bottom:10px;font-size:16px;font-weight:normal}.ac-ipicker__icons__group:first-child{border-top:none;padding-top:0;margin-top:0}.ac-ipicker__icon{display:inline-block;width:49px;height:49px;text-align:center;white-space:nowrap;cursor:pointer}.ac-ipicker__icon .dashicons{width:49px;height:49px;line-height:49px;font-size:28px}.ac-ipicker__icon:hover,.ac-ipicker__icon:focus{color:#21759B}.ac-ipicker__icon.active{background:#21759B;color:#fff}.ac-ipicker__handles{flex:0 0 100px;text-align:center;padding-top:20px}.ac-modal.-pro .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}.ac-modal.-pro .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}.ac-modal.-pro .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}.ac-modal.-pro .ac-modal__dialog__mascot{position:absolute;right:20px;bottom:20px;width:150px;height:225px;z-index:4}.ac-modal.-pro .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}.ac-modal.-pro .ac-modal__dialog__footer span{display:inline-block;margin-top:4px;margin-left:10px;font-size:14px}.ac-modal.-setting .ac-modal__dialog{width:970px}.ac-modal.-setting .ac-modal__dialog__content{max-height:400px}.ac-modal.-setting .ac-modal__dialog__footer{text-align:right;padding:0 15px}.ac-modal.-setting .ac-modal__dialog__footer .button{display:inline-block;vertical-align:middle;padding-left:30px;padding-right:30px}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection{display:inline-block;vertical-align:middle;text-align:center;width:68px;height:68px;line-height:58px;background:#E5E5E5;margin-right:15px;color:#404040}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection .dashicons{width:68px;height:68px;line-height:68px;font-size:30px}.ac-modal.-iconpicker .ac-modal__dialog__content{overflow:hidden;overflow-y:scroll}.select2-container--acs2{z-index:2}.select2-container--acs2 .select2-dropdown.-customfields .select2-results>.select2-results__options{max-height:600px}@keyframes loading_text{0%{background-position:-100%}100%{background-position:100%}}.ac-loading-msg-wrapper{position:fixed;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center}.ac-loading-msg{display:inline-block;text-align:center;max-width:300px}.ac-loading-msg__logo{width:228px;text-align:center;margin-bottom:15px}.ac-loading-msg__content{position:relative;font-family:sans-serif;text-transform:uppercase;font-size:1.3em;letter-spacing:4px;overflow:hidden;color:#999;font-weight:300;background-repeat:no-repeat;background-size:60%}.ac-notice.visit-ls{display:none}.ac-setbox .select2-container .select2-search--inline .select2-search__field{margin-top:0 !important}
1
+ @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}.ac-setbox{-webkit-font-smoothing:antialiased;margin-top:30px}.ac-setbox__descriptive{color:#636669;font-size:13px;line-height:17px}.ac-setbox__header{padding:10px;position:relative;cursor:pointer}.ac-setbox__header__title{font-size:15px;font-weight:bold}.ac-setbox__header__title small{font-size:14px;font-weight:300;color:#72777C}.ac-setbox__header:after{content:"";position:absolute;right:20px;top:50%;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid #000;transition:all .2s;margin-top:-4px}.ac-setbox__row{background:#fff}.ac-setbox__row__th,.ac-setbox__row__fields{border-bottom:1px solid #dfdfdf}.ac-setbox__row__th{background:#f5f5f5;position:relative;padding:12px 13px;padding-top:15px;border-right:1px solid #dedede}.ac-setbox__row__th label{display:block;font-weight:bold;margin-bottom:5px}.ac-setbox__row__th small{color:#636669;font-size:13px;line-height:17px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row__fields.-subsetting-total-1{display:flex}.ac-setbox__row__fields.-subsetting-total-1>*{width:100%}.ac-setbox__row__fields__inner{padding:15px}.ac-setbox__row__fields__inner>*:last-child{margin-bottom:0}.ac-setbox__row__fields select{width:100%;margin-bottom:10px}.ac-setbox__row a.ac-pointer.instructions{position:absolute;top:14px;right:10px;display:inline-block;cursor:pointer}@media screen and (min-width: 900px){.ac-setbox__row{display:flex}.ac-setbox__row__th{flex:0 0 230px}.ac-setbox__row__fields{flex:auto}.ac-setbox__row.-sub{display:block}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}@media screen and (min-width: 1150px){.ac-setbox__row.-sub{display:flex}.ac-setbox__row.-sub .ac-setbox__row__th,.ac-setbox__row.-sub .ac-setbox__row__fields{flex:100%}}.ac-setbox .checkbox-labels>label,.ac-setbox .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setbox .checkbox-labels.vertical input[type=radio],.ac-setbox .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setbox .checkbox-labels.vertical>label,.ac-setbox .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setbox.-closed .ac-setbox__header:after{transform:rotate(180deg)}.ac-setbox.-closed .ac-setbox__row{display:none}.ac-setbox .select2-search__field{width:100% !important}.ac-ls-settings .select2{margin-bottom:10px}.ac-ls-settings .select2 input{min-height:0}.ac-ls-settings .select2 li{margin-bottom:0}.ac-ls-settings .row.users .select2{margin-bottom:0}.ac-ls-settings select.sorting_order{margin-bottom:0}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column span.select2-container{z-index:1}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:'\f101';font:normal 20px/.5 'dashicons';speak:none;display:inline-block;padding:0;top:5px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}#add-new-column-template{display:none}.ac-admin{max-width:1200px}@media only screen and (min-width: 900px){.ac-admin__wrap{display:flex;flex-direction:row-reverse}.ac-admin__wrap .ac-admin__main{flex:1 1 auto}.ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:20px}.rtl .ac-admin__wrap .ac-admin__sidebar{flex:0 0 280px;margin-left:0;margin-right:20px}}.ac-admin__main .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin__main .column-footer a.submit.save,.ac-admin__main .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin__main .column-footer .submit.save{display:inline-block}.ac-admin__main .column-footer .submit.update{display:none}.ac-admin__main .column-footer .spinner{display:none}.ac-admin.saving .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:center center;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.save{display:none}.ac-admin.stored .ac-admin__sidebar .form-actions .submit.update{display:block}.ac-admin.stored .ac-admin__sidebar .form-actions .form-reset{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-admin.show-list-screen-type .ac-admin__sidebar .sidebox.form-actions small.list-screen-type,.ac-admin.show-list-screen-id .ac-admin__sidebar .sidebox.form-actions small.list-screen-id{display:block}.ac-admin.show-list-screen-id .layouts__item__title small.layouts__item__id{display:inline}.ac-admin__main .ac-notice{background:#fff;border-left:4px solid #ffba00;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin-bottom:15px;padding:1px 12px}.ac-admin__main .ajax-message{display:none}.ac-admin__main .ac-message{margin-top:0 !important}.ac-admin__main .ac-message p{min-height:1px;overflow:hidden}.ac-admin__main .ac-message>.dashicons{float:left;margin-top:6px;color:#b7b7b7;margin-right:5px}.ac-admin__main .ac-message.notice-info{border-left:4px solid #00a0d2}.ac-admin__main .ac-boxes{box-shadow:0 1px 3px rgba(0,0,0,0.1)}.ac-admin__main .ac-boxes.show-column-id div.ac-column-header table tr td.column_label .inner small.column-id{display:inline}.ac-admin__main .ac-boxes.show-column-type div.ac-column-header table tr td.column_label .inner small.column-type{display:inline}.ac-column a{cursor:pointer}.ac-column a:focus,.ac-column a:active{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:0.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:"\f142"}.ac-column.opened .ac-column-header table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #FFFFFF}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #FFFFFF}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5C5C5C}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column.disabled,.boxes.disabled .ac-column{opacity:0.7}.ac-column.disabled a.remove-button,.ac-column.disabled a.clone-button,.ac-column.disabled .column_action,.boxes.disabled .ac-column a.remove-button,.boxes.disabled .ac-column a.clone-button,.boxes.disabled .ac-column .column_action{display:none !important}.ac-column.disabled .column-meta td.column_sort,.boxes.disabled .ac-column .column-meta td.column_sort{display:none}.ac-column.disabled .column-meta td.column_label,.boxes.disabled .ac-column .column-meta td.column_label{padding-left:10px}.ac-column.disabled .meta span,.boxes.disabled .ac-column .meta span{cursor:default !important;opacity:0.45}.ac-column.disabled .meta span:before,.boxes.disabled .ac-column .meta span:before{color:#808080 !important}.ac-column.disabled .meta span.on,.boxes.disabled .ac-column .meta span.on{opacity:1}.ac-column.disabled .column-footer,.boxes.disabled .ac-column .column-footer{display:none}.ac-column.disabled .ac-column-body:before,.boxes.disabled .ac-column .ac-column-body:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:0.3;cursor:not-allowed}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid #e8e8e8}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid #dedede;width:30%;padding:10px;padding-left:12px}.ac-column-setting td.col-label .ac-pointer{position:absolute;right:4px;top:10px;padding:4px;height:17px}.ac-column-setting td.col-label a.more-link{text-decoration:none;color:#d2d2d2;position:absolute;right:8px;top:17px}.ac-column-setting td.col-label a.more-link span.dashicons{font-size:17px}.ac-column-setting td.col-label a.more-link:hover{color:#acacac}.ac-column-setting td.col-label span.label{font-weight:bold;display:inline-block;color:#333333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0 !important;display:none;position:absolute;max-width:200px;z-index:99;top:40px;left:0;font-weight:normal;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,0.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:0.5em 0 1em 0}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.close-button,.ac-column-setting-actions .col-settings a.clone-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:#f00}.ac-column .ac-setting-input{padding:10px;line-height:24px}.ac-column .ac-setting-input input,.ac-column .ac-setting-input select{width:99.95%;max-width:none}.ac-column .ac-setting-input input[type=checkbox],.ac-column .ac-setting-input input[type=radio]{width:auto;margin-right:4px}.ac-column .ac-setting-input__info{margin-left:5px;transform:translateY(2px)}.ac-column .ac-setting-input .checkbox-labels>label,.ac-column .ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-column .ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-column .ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-column .ac-setting-input .checkbox-labels.vertical>label,.ac-column .ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-column .ac-setting-input .ac-pointer{color:#8d8d8d;display:inline-block;transform:translateY(2px)}.ac-column .ac-setting-input__icon{display:inline-block;margin-right:10px}.ac-column .ac-setting-input__icon.-warning{transform:translateY(3px)}.ac-column .ac-setting-input__icon+*{display:inline-block}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:71px !important;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:72px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell;padding-left:4px;padding-right:4px;border-color:#7e8993;border-top-right-radius:0;border-bottom-right-radius:0}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #7e8993;border-left:none;color:#505050;border-top-right-radius:4px;border-bottom-right-radius:4px}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize;z-index:1}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-setting--pro .col-label .dashicons{color:#A99D9F;transform:scale(0.9, 0.9);margin-top:2px;display:inline-block;margin-right:3px;cursor:pointer}.ac-column-setting--pro td.col-input{background:#f5f5f5}.ac-column-setting--pro .radio-labels{display:inline-block}.ac-column-setting--pro .radio-labels input{background-color:#F0F0F0}.ac-column-setting--pro .radio-labels input:checked:before{background-color:#808080}.ac-column-setting--pro .ac-setting-input{background:#f5f5f5}.ac-column-setting--pro .acp-button{background:#e9426e;color:#fff;border:none;border-radius:3px;padding:3px 10px;letter-spacing:2px;cursor:pointer;font-size:13px;vertical-align:middle;margin-top:-1px;margin-left:5px}div.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}div.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}div.ac-column-header img{margin-right:3px}div.ac-column-header table.widefat{border:none}div.ac-column-header table{border:none;background:transparent;border-radius:0}div.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}div.ac-column-header table tr td.column_sort{position:relative;cursor:move;padding:9px 12px}div.ac-column-header table tr td.column_sort span.cpacicon-move{position:absolute;top:12px;left:12px;font-size:22px;display:inline-block;color:#bdbdbd}div.ac-column-header table tr td.column_label{width:70%;font-weight:bold;vertical-align:middle;position:relative;padding:15px 0}div.ac-column-header table tr td.column_label .inner{position:relative;overflow:visible;height:18px}div.ac-column-header table tr td.column_label .inner .toggle img{max-height:20px}div.ac-column-header table tr td.column_label .inner small.column-type,div.ac-column-header table tr td.column_label .inner small.column-id{font-weight:normal;display:none}div.ac-column-header table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}div.ac-column-header table tr td.column_label .inner>a:hover{color:#333333}div.ac-column-header table tr td.column_label .inner>a.edit-button,div.ac-column-header table tr td.column_label .inner>a.close-button,div.ac-column-header table tr td.column_label .inner>a.remove-button,div.ac-column-header table tr td.column_label .inner>a.clone-button{display:none;color:#0074a2;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px}div.ac-column-header table tr td.column_label .inner>a.edit-button:hover,div.ac-column-header table tr td.column_label .inner>a.close-button:hover,div.ac-column-header table tr td.column_label .inner>a.remove-button:hover,div.ac-column-header table tr td.column_label .inner>a.clone-button:hover{color:#2ea2cc}div.ac-column-header table tr td.column_label .inner>a.remove-button{color:#a00}div.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:#f00}div.ac-column-header table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:normal;color:#b2b2b2;font-size:12px;width:190px;position:relative}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting{cursor:pointer;margin-left:4px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-heading-setting--width{margin-right:3px;cursor:auto;color:#737373;position:absolute;right:calc(100% - 40px)}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator{margin-left:3px;font-size:22px;line-height:17px;width:22px;position:absolute;left:0}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--export{left:39px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--sort{left:66px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--edit{left:93px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--bulk_edit{left:120px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--search{left:147px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{left:174px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{top:1px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.cpacicon-filter{font-size:20px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on,div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on span{color:#21759B}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.cpacicon{font-size:14px;line-height:18px}div.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.disabled{cursor:default}div.ac-column-header table tr td.column_type{width:auto;min-width:120px;text-align:right;color:#999999;padding-right:0;line-height:21px}div.ac-column-header table tr td.column_type .inner{display:inline-block;height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;vertical-align:middle}div.ac-column-header table tr td.column_type .inner a{margin-top:2px;color:#999999}div.ac-column-header table tr td.column_edit{width:38px;min-width:38px;text-align:center;cursor:pointer}div.ac-column-header table tr td.column_edit:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 5px 0 0;bottom:0;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none !important;color:#b4b9be}div.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}div.ac-column-header:hover .column_label .inner>a.remove-button,div.ac-column-header:hover .column_label .inner>a.edit-button,div.ac-column-header:hover .column_label .inner>a.clone-button{display:inline-block}div.ac-column-header span.vers{padding-top:2px}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#EAF2FA;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{color:#7A9BBE;float:left;font-family:Comic Sans MS, sans-serif;font-size:11px;height:13px;position:relative;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #FFFFFF;display:inline-block}.column-footer .order-message__icon{display:inline-block;position:absolute;left:0;top:0}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:#BC0B0B;text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{color:red}.ac-admin__sidebar .sidebox{background:none repeat scroll 0 0 #FFFFFF;border:1px solid #dedede;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,0.1);position:relative;margin-bottom:14px}.ac-admin__sidebar .sidebox h3{padding:10px;margin:0;position:relative}.ac-admin__sidebar .sidebox h3.title{font-family:Georgia, "Times New Roman", "Bitstream Charter", Times, serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-admin__sidebar .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px;float:none}.ac-admin__sidebar .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:#808080;margin-top:4px}.ac-admin__sidebar .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-admin__sidebar .sidebox .inside{padding:10px}.ac-admin__sidebar .sidebox .inside p{margin-top:0}.ac-admin__sidebar .sidebox.form-actions small.list-screen-id,.ac-admin__sidebar .sidebox.form-actions small.list-screen-type{display:none;line-height:25px}.ac-admin__sidebar .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid #F5F5F5;padding:8px}.ac-admin__sidebar .sidebox.form-actions .reset-column-type{text-decoration:none;color:#BC0B0B;line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-admin__sidebar .sidebox.form-actions .reset-column-type:hover{color:red}.ac-admin__sidebar .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-admin__sidebar .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-admin__sidebar .sidebox.form-actions .submit.save{display:block}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support,.ac-admin__sidebar .sidebox#direct-feedback #feedback-rate{display:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #CCC;width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.ac-admin__sidebar .sidebox#direct-feedback .inside>a:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type="submit"]{display:inline-block;float:right;border-radius:4px;border:1px solid #CCC;height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#CCC;background:none;text-decoration:none;cursor:pointer}.ac-admin__sidebar .sidebox#direct-feedback .inside form input[type="submit"]:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-admin__sidebar .sidebox#direct-feedback .inside ul{margin:0}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #CCC;border-radius:4px;display:block}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li a:hover{background:#FAFAFA}.ac-admin__sidebar .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-admin__sidebar .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px;line-height:40px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version sup{text-decoration:line-through;font-size:13px;color:#ccc}#ac-pro-version .ac-pro-prices{margin:8px 0 0;font-style:italic}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px;cursor:pointer}#ac-pro-version .more{color:#FFEE85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none;padding-left:25px;position:relative;display:block}#ac-pro-version ul li a:before{content:'\2713';font-weight:bold;font-size:16px;position:absolute;left:0;top:0}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a{color:#FFEE85}#ac-pro-version ul li.acp-integration a:before{content:'+'}#ac-pro-version .padding-box.ac-pro-deal{color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}.ac-column-setting--label .ac-setting-input__container{position:relative}.ac-column-setting--label .ac-setting-input__container input{height:28px;line-height:28px;padding-right:34px}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon{background:#fff;position:absolute;top:4px;height:22px;color:#ccc;right:0;border:none;cursor:pointer;outline:none !important;transition:color .1s}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:hover,.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:focus{color:#999}.ac-column-setting--label .ac-setting-input__container .ac-setting-label-icon:active{color:#21759B}.ac-ipicker__modal{background:#fff;max-width:90%;width:770px;height:450px;display:flex;padding:20px}.ac-ipicker.fixed{position:fixed;z-index:99999;background:rgba(0,0,0,0.8);display:flex;top:0;right:0;bottom:0;left:0;height:auto;align-items:center;justify-content:center}.ac-ipicker__icons{flex:1 1 auto}.ac-ipicker__icons__group{display:block;clear:both;padding-top:15px;margin-top:20px;margin-bottom:10px;font-size:16px;font-weight:normal}.ac-ipicker__icons__group:first-child{border-top:none;padding-top:0;margin-top:0}.ac-ipicker__icon{display:inline-block;width:49px;height:49px;text-align:center;white-space:nowrap;cursor:pointer}.ac-ipicker__icon .dashicons{width:49px;height:49px;line-height:49px;font-size:28px}.ac-ipicker__icon:hover,.ac-ipicker__icon:focus{color:#21759B}.ac-ipicker__icon.active{background:#21759B;color:#fff}.ac-ipicker__handles{flex:0 0 100px;text-align:center;padding-top:20px}.ac-modal.-pro .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}.ac-modal.-pro .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}.ac-modal.-pro .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}.ac-modal.-pro .ac-modal__dialog__mascot{position:absolute;right:20px;bottom:20px;width:150px;height:225px;z-index:4}.ac-modal.-pro .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}.ac-modal.-pro .ac-modal__dialog__footer span{display:inline-block;margin-top:4px;margin-left:10px;font-size:14px}.ac-modal.-setting .ac-modal__dialog{width:970px}.ac-modal.-setting .ac-modal__dialog__content{max-height:400px}.ac-modal.-setting .ac-modal__dialog__footer{text-align:right;padding:0 15px}.ac-modal.-setting .ac-modal__dialog__footer .button{display:inline-block;vertical-align:middle;padding-left:30px;padding-right:30px}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection{display:inline-block;vertical-align:middle;text-align:center;width:68px;height:68px;line-height:58px;background:#E5E5E5;margin-right:15px;color:#404040}.ac-modal.-setting .ac-modal__dialog__footer .ac-ipicker__selection .dashicons{width:68px;height:68px;line-height:68px;font-size:30px}.ac-modal.-iconpicker .ac-modal__dialog__content{overflow:hidden;overflow-y:scroll}.select2-container--acs2{z-index:2}.select2-container--acs2 .select2-dropdown.-customfields .select2-results>.select2-results__options{max-height:600px}@keyframes loading_text{0%{background-position:-100%}100%{background-position:100%}}.ac-loading-msg-wrapper{position:fixed;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center}.ac-loading-msg{display:inline-block;text-align:center;max-width:300px}.ac-loading-msg__logo{width:228px;text-align:center;margin-bottom:15px}.ac-loading-msg__content{position:relative;font-family:sans-serif;text-transform:uppercase;font-size:1.3em;letter-spacing:4px;overflow:hidden;color:#999;font-weight:300;background-repeat:no-repeat;background-size:60%}.ac-notice.visit-ls{display:none}.ac-setbox .select2-container .select2-search--inline .select2-search__field{margin-top:0 !important}
assets/css/table.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #C8C8C8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{background:#f5f5f5;font-size:18px;line-height:18px;color:#807F7F;padding:17px 25px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#989797;cursor:pointer}body .ac-modal__dialog__close:hover{background:#e1e1e1}body .ac-modal__dialog__content{padding:25px;max-height:calc(100vh - 200px);overflow:scroll}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6D6D6D}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:20px 24px;border-top:1px solid #DBDBDB;color:#979696;font-size:16px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#E3E7EB}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}@keyframes ac-striped-animation{from{transform:translateX(0)}to{transform:translateX(46px)}}.ac-striped-loading{overflow:hidden;position:relative}.ac-striped-loading:before{animation:ac-striped-animation 2s linear infinite;content:'';display:block;position:absolute;left:-46px;top:0;bottom:0;right:0;background:repeating-linear-gradient(-55deg, rgba(255,255,255,0.1) 1px, transparent 2px, transparent 11px, rgba(255,255,255,0.1) 12px, rgba(255,255,255,0.1) 20px)}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:rgba(0,0,0,0.75);border-radius:3px;padding:3px 9px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000}.ac-tooltip:before{content:'';display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,0.8);border-left:6px solid transparent;border-right:6px solid transparent;position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.column-status .dashicons{font-size:22px}.column-status .dashicons.large{width:25px;height:28px;font-size:28px}.column-status .dashicons.dashicons-lock{font-size:15px;margin-left:-2px}.ac-image-sizes .ac-missing-size{color:#929292}.ac-comment-bubble .post-com-count{display:inline-block;vertical-align:top}.ac-comment-bubble .post-com-count-no-comments,.ac-comment-bubble .post-com-count-approved{margin-top:5px}.ac-comment-bubble .comment-count-no-comments,.ac-comment-bubble .comment-count-approved{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ac-comment-bubble .post-com-count-no-comments:after,.ac-comment-bubble .post-com-count-approved:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #72777c;border-right:5px solid transparent}.ac-comment-bubble .post-com-count-approved:hover .comment-count-approved,.ac-comment-bubble .post-com-count-approved:focus .comment-count-approved{background:#0073aa}.ac-comment-bubble .post-com-count-approved:hover:after,.ac-comment-bubble .post-com-count-approved:focus:after{border-top-color:#0073aa}.ac-comment-bubble .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.ac-comment-bubble .post-com-count-no-pending{display:none}.ac-divider{display:inline-block;width:14px;height:12px;position:relative}.ac-divider:before{content:'';display:block;width:2px;height:2px;background:#000;position:absolute;left:50%;margin-left:-1px;top:60%}span.status-closed{color:red}.ac-value-stars{white-space:nowrap;word-wrap:normal;display:block}.ac-value-stars .ac-value-star{font-size:16px;width:auto;margin-right:-3px}.actions #post-query-submit{float:left;vertical-align:middle;margin-bottom:4px}.tablenav.top .ac-button{top:2px;display:inline-block;vertical-align:middle;float:left;margin-bottom:4px}body.edit-tags-php .tablenav.top .ac-button{float:none}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:#ffb900}span.dashicons.orange{color:#d54e21}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:#8a8a8a}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}body.edit-php #delete_all{float:left;margin-right:3px}body.users-php .tablenav .actions a.add-new-h2{float:none;vertical-align:middle !important;top:2px !important}@media screen and (max-width: 782px){.tablenav.top .actions{display:block !important;margin-bottom:4px}.tablenav.top .actions *{display:none}.tablenav.top .actions .ac-button{display:inline-block}}body.upload-php .tablenav.top .ac-button{float:none}.ac-toggle-box-link:focus{outline:none;box-shadow:none}.ac-toggle-box-link .spinner{float:none;margin-top:-2px}.ac-toggle-box-link.loading .spinner{visibility:visible}.ac-toggle-box-contents-ajax{padding:5px 0 0}.ac-toggle-box-contents{display:none;padding:5px 0 0}.ac-toggle-box-contents.-open{display:block}table.ac-table-items{border-spacing:0}table.ac-table-items tr td{border:0;margin:0;padding:0 0 3px}table.ac-table-items tr td.ac-table-item-qty{color:#999;padding-right:6px;text-align:left}.ac-post-state-format:before{color:#a7a7a7}.ac-image-details .ac-image-info{display:inline-block;border-radius:7px;padding:0 9px;min-height:20px;background-color:#e9e9e9;text-align:left;font-size:11px;font-weight:bold;margin:0 6px 5px 0;white-space:nowrap}.ac-image-details .ac-image-info>span{margin-right:6px}.ac-image-details .ac-image-info>span:last-child{margin-right:0}.ac-image-details .ac-image-info span{vertical-align:middle;line-height:20px}.ac-image-details .ac-image-info span.image-id{font-size:11px;color:#757575}.ac-image-details .ac-image-info span.image-file-size{font-size:12px}.ac-image-details .ac-image-info span.image-extension{text-transform:uppercase;font-size:11px;color:#757575}.ac-image-details .ac-image-info span.suffix{display:inline-block;text-transform:uppercase;font-size:10px;color:#757575;padding-left:3px;margin-top:-2px}.ac-image-details .ac-image-info span.dashicons{margin-top:-2px;color:#757575;font-size:14px;width:16px}.ac-image-details a.ac-image-info:hover{color:#0073aa}.ac-image-details a.ac-image-info:hover span.dashicons{color:#3d4350}.ac-upload-space .ac-upload-space-labels{display:table;width:100%}.ac-upload-space .ac-upload-space-labels .inner{display:table-row}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon{display:table-cell}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon:before{color:#82878c;content:"\f104";display:inline-block;font-family:'dashicons', serif;width:20px;height:20px;font-size:18px;line-height:1;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;margin-right:4px}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-left{display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-right{width:100%;text-align:right;padding-left:6px;display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-progress{margin-top:6px;height:3px;background:white;border:1px solid #dfdfdf;position:relative}.ac-upload-space .ac-upload-space-progress .ac-upload-space-progress-bar{background-color:#46b450;height:100%;display:block}.ac-upload-space.warning .ac-upload-space-icon:before{color:#ffb900;content:"\f534";margin-top:1px}.ac-upload-space.warning .ac-upload-space-progress-bar{background-color:#ffb900}.ac-upload-space.full .ac-upload-space-icon:before{color:#d54e21;content:"\f153";margin-top:1px}.ac-upload-space.full .ac-upload-space-progress-bar{background-color:#dc3232}#form-site-list .tablenav .actions .ac-button{float:none}.ac-inline-info{display:inline-block;border-radius:3px;min-width:8px;padding:0 6px;min-height:20px;background-color:#e9e9e9;text-align:center;margin-right:7px;font-size:11px;font-weight:bold}.ac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:7px;margin-right:7px;font-size:12px}.ac-rounded.ac-rounded-first{margin-left:0}.ac-spacing{display:inline-block;margin-right:10px;margin-bottom:4px}.cpac-suffix{margin-left:8px;color:#808080}.ac-small-block{display:inline-block;border-radius:3px;background-color:rgba(224,224,224,0.6);padding:2px 7px;margin:0 5px 5px 0}.ac-more-link-show{cursor:pointer}.ac-show-more__content{margin-right:4px}.ac-show-more__toggle{cursor:pointer;white-space:nowrap}.ac-show-more__part.-more{display:none}.ac-show-more.-on .ac-show-more__part.-more{display:inline}.ac-show-more__divider{color:#ddd;padding-right:4px}.ac-image-container{margin-bottom:-6px}.ac-image:not(body){display:inline-block;margin-right:2px;margin-bottom:6px;overflow:hidden;max-width:100%;background-color:#ccc;vertical-align:middle}.ac-image:not(body) img{display:block;margin:0 auto}.ac-image:not(body) .ac-extension{font-size:12px;line-height:22px;display:block;text-align:center;text-transform:uppercase;font-weight:bold}.ac-image:not(body).ac-icon{background-color:transparent}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}.ac-progress-bar{width:100%;display:flex}.ac-progress-bar .ac-label-main{width:65px}.ac-progress-bar .ac-bar-container{flex:auto;background-color:#fff;min-height:22px;line-height:22px;position:relative;border:1px solid #ccc;border-radius:2px}.ac-progress-bar .ac-bar-container .ac-bar{height:100%;background-color:#69c471;border-right:1px solid #fff}.ac-progress-bar .ac-bar-container .ac-label-left,.ac-progress-bar .ac-bar-container .ac-label-right{text-shadow:rgba(255,255,255,0.65) 0 0 5px;color:#555;position:absolute}.ac-progress-bar .ac-bar-container .ac-label-left{left:5px}.ac-progress-bar .ac-bar-container .ac-label-right{right:5px}.ac-progress-bar.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,0.45);border:none}.ac-progress-bar.dark .ac-bar-container{flex:auto;background-color:#a6a6a6;min-height:22px;line-height:22px;position:relative}.ac-progress-bar.dark .ac-bar-container .ac-bar{height:100%;background-color:#46b450;border-right:1px solid #fff}.ac-progress-bar.dark .ac-bar-container .ac-label-left{color:#fff;position:absolute;left:5px}.ac-progress-bar.dark .ac-bar-container .ac-label-right{color:#fff;position:absolute;right:5px}.ac-progress-bar.dark.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,0.68);border:none}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#ffffff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco, Menlo, Consolas, "Courier New", monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px;overflow:hidden}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac_wp_button,.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{color:#555;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border:1px solid #ccc;border-radius:3px;white-space:nowrap;box-sizing:border-box}.cpac_wp_button:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span a:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:hover,.column-actions .cpac_use_icons+.row-actions>span a:hover,.column-actions .cpac_use_icons+.row-actions>span button:hover{background:#fafafa;color:#23282d;border-color:#999}.column-actions .row-actions{left:0;position:relative}.column-actions .cpac_use_icons+.hidden+.row-actions>span,.column-actions .cpac_use_icons+.row-actions>span{color:transparent;font-size:0;margin-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{display:inline-block;position:relative;min-width:26px;margin-bottom:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:before,.column-actions .cpac_use_icons+.row-actions>span a:before,.column-actions .cpac_use_icons+.row-actions>span button:before{text-indent:0;font-family:Dashicons, sans-serif;font-size:16px;position:absolute;padding-left:4px;top:0;left:0;width:100%;height:100%}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.edit a,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.inline a,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.view a,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.approve a,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.row-actions>span.spam a,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.reply a,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.row-actions>span.delete a,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.row-actions>span.backend a,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.row-actions>span.visit a,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.archive a,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.activate a,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.download a,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link{text-indent:-3000em}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link:before{text-indent:0;font-family:Dashicons, sans-serif}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before{content:"\f464"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before{content:"\f119"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before{content:"\f105"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash a{border-radius:3px;border:1px solid #ccc}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before{content:"\f182"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:hover,.column-actions .cpac_use_icons+.row-actions>span.trash a:hover{border-color:#999}.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before{content:"\f177"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before{content:"\f158"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before{content:"\f147"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before{content:"\f117"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before{content:"\f473"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before{content:"\f171"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before{content:"\f182"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before{content:"\f226"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before{content:"\f115"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before{content:"\f530"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before{content:"\f480"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before{content:"\f322"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before{content:"\f177"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before{content:"\f316"}@media screen and (max-width: 782px){.wp-list-table.widefat thead th{display:none}.wp-list-table.widefat thead th.column-primary{display:table-cell}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td{display:none}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td.column-primary{display:block}}.ac-tip{display:inline-block}.ac-table-actions{display:none;position:relative;z-index:20;float:left;white-space:nowrap;margin-right:5px;margin-left:1px;margin-bottom:5px}.ac-table-actions.-init{display:block}.ac-table-actions .ac-table-actions-buttons{white-space:nowrap;display:inline-block;vertical-align:top}.ac-table-actions .ac-table-actions-buttons .ac-table-button{float:left;border-radius:0;border-right:none}.ac-table-actions .ac-table-actions-buttons .ac-table-button:first-child{border-radius:3px 0 0 3px}.ac-table-actions .ac-table-button{display:inline-block;padding:2px 12px;cursor:pointer;color:#0071a1;border:1px solid #0071a1;background:#f3f5f6;text-decoration:none;font-size:13px;height:24px;line-height:24px;text-align:center;transform:translateX(-1px);border-radius:3px}.ac-table-actions .ac-table-button:last-child,.ac-table-actions .ac-table-button.last{border-radius:0 3px 3px 0;border-right:1px solid #0071a1}.ac-table-actions .ac-table-button:last-child.active,.ac-table-actions .ac-table-button.last.active{border-right:1px solid #0071a1}.ac-table-actions .ac-table-button:last-child:first-child,.ac-table-actions .ac-table-button.last:first-child{border-radius:3px}.ac-table-actions .ac-table-button:hover,.ac-table-actions .ac-table-button:focus,.ac-table-actions .ac-table-button:active{outline:none;box-shadow:none;background:#f1f1f1;color:#016088;border-color:#016088}.ac-table-actions .ac-table-button .dashicons{font-size:14px;width:14px;height:14px;line-height:24px}.ac-table-actions .ac-table-button.disabled{background:#ddd;color:#aaa;cursor:not-allowed}.ac-table-actions .ac-table-button.active{background:#00A0D2;border:1px solid #008EC2;color:#fff}.ac-table-actions .ac-table-button.active+.ac-table-button{border-left:none}.ac-table-actions .ac-table-button.-inline-edit .dashicons{font-size:18px;margin-left:-2px}.ac-table-actions .ac-table-button.-toggle{background:none;border:1px solid transparent;padding-left:4px;padding-right:4px;transform:translateY(-1px)}.ac-table-actions .ac-table-button.-toggle .ac-toggle__switch{vertical-align:middle;margin-top:-3px;margin-right:1px;color:#888}.ac-table-actions .ac-table-button__caret{display:inline-block;vertical-align:middle;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #6F6F6F;transition:transform .2s}.ac-table-actions .ac-table-button.-open{color:#0072AA}.ac-table-actions .ac-table-button.-open .ac-table-button__caret{transform:rotate(180deg)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:#1e8cbe}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.hide-column-tog+span .dashicons{transform:translateY(5px);margin-left:3px}
1
+ @font-face{font-family:"cpac_icons";src:url("../fonts/cpac_icons.woff2?v=942947") format("woff2"),url("../fonts/cpac_icons.woff?v=452198") format("woff");font-style:normal;font-weight:400}.cpacicon,[class^="cpacicon-"],[class*=" cpacicon-"]{display:inline-block;transform:translate(0, 0);text-rendering:auto;font:normal normal 400 14px/1 cpac_icons;font-size:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.cpacicon-bulk-edit::before{content:""}.cpacicon-download::before{content:""}.cpacicon-draft::before{content:""}.cpacicon-move::before{content:""}.cpacicon-segment::before{content:""}.cpacicon-smart-filter::before{content:""}body .ac-modal{position:fixed;overflow:auto;z-index:100000;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.5);display:none}body .ac-modal.-active{display:flex;align-items:center;justify-content:center}body .ac-modal__dialog{border:1px solid #C8C8C8;background:#fff;position:fixed;width:650px;max-width:90%}body .ac-modal__dialog__header{background:#f5f5f5;font-size:18px;line-height:18px;color:#807F7F;padding:17px 25px}body .ac-modal__dialog__close{display:inline-block;padding:0;margin:0;border:none;background:none;position:absolute;right:0;top:0;width:52px;height:52px;text-align:center;color:#989797;cursor:pointer}body .ac-modal__dialog__close:hover{background:#e1e1e1}body .ac-modal__dialog__content{padding:25px;max-height:calc(100vh - 200px);overflow:scroll}body .ac-modal__dialog__content__lead{font-weight:bold;font-size:15px;margin-top:5px;margin-bottom:25px;color:#6D6D6D}body .ac-modal__dialog__list li{position:relative;padding-left:25px;font-weight:400;font-size:16px;letter-spacing:0.5px;margin-bottom:10px}body .ac-modal__dialog__list li:before{content:'\f147';font-family:Dashicons;position:absolute;left:0;top:0;color:#3D4350}body .ac-modal__dialog__list li:nth-child(2n){color:#e9426e}body .ac-modal__dialog__footer{padding:20px 24px;border-top:1px solid #DBDBDB;color:#979696;font-size:16px}body .ac-modal__dialog__footer .button{margin-left:0;padding-left:15px;padding-right:15px}body .ac-modal.-blocking{background:#E3E7EB}@media only screen and (max-width: 720px){body .ac-modal__dialog__footer__content{display:block}body .ac-modal__dialog__footer .button{margin-left:0;margin-top:10px}}@keyframes ac-striped-animation{from{transform:translateX(0)}to{transform:translateX(46px)}}.ac-striped-loading{overflow:hidden;position:relative}.ac-striped-loading:before{animation:ac-striped-animation 2s linear infinite;content:'';display:block;position:absolute;left:-46px;top:0;bottom:0;right:0;background:repeating-linear-gradient(-55deg, rgba(255,255,255,0.1) 1px, transparent 2px, transparent 11px, rgba(255,255,255,0.1) 12px, rgba(255,255,255,0.1) 20px)}.ac-tooltip-wrapper{position:relative}.ac-tooltip-wrapper:focus .ac-tooltip,.ac-tooltip-wrapper:hover .ac-tooltip{opacity:1}.ac-tooltip{background:rgba(0,0,0,0.75);border-radius:3px;padding:3px 9px;color:#fff;position:absolute;transform:translateX(-50%);min-width:30px;margin-top:5px;display:block;opacity:0;transition:opacity .3s;pointer-events:none;font-size:11px;line-height:16px;z-index:100000}.ac-tooltip:before{content:'';display:block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,0.8);border-left:6px solid transparent;border-right:6px solid transparent;position:absolute;left:50%;top:-4px;transform:translateX(-4px)}.ac-tooltip.hover{opacity:1}html.wp-toolbar .ac-tooltip{margin-top:36px}.ac-toggle-container{display:inline-flex}.ac-toggle-container .ac-toggle-label{margin-left:7px;transform:translateY(-1px)}.ac-toggle{display:inline-block;white-space:nowrap}.ac-toggle input{position:absolute;left:-3000em}.rtl .ac-toggle input{left:inherit;right:-3000em}.ac-toggle__switch{display:inline-block;background:#ccc;border-radius:8px;width:30px;height:16px;position:relative;transition:background-color .3s}.ac-toggle__switch__on,.ac-toggle__switch__off{font-size:11px;font-weight:bold;color:#fff;position:absolute;top:5px;line-height:11px}.ac-toggle__switch__off{right:6px;color:#555}.ac-toggle__switch__on{left:8px}.ac-toggle__switch__track{border-radius:50%;display:inline-block;background:#fff;position:absolute;left:3px;top:3px;height:10px;width:10px;transition:all .1s}.ac-toggle input:checked+.ac-toggle__switch{background:#1e8cbe}.ac-toggle input:checked+.ac-toggle__switch .ac-toggle__switch__track{left:calc(100% - 13px)}.column-status .dashicons{font-size:22px}.column-status .dashicons.large{width:25px;height:28px;font-size:28px}.column-status .dashicons.dashicons-lock{font-size:15px;margin-left:-2px}.ac-image-sizes .ac-missing-size{color:#929292}.ac-comment-bubble .post-com-count{display:inline-block;vertical-align:top}.ac-comment-bubble .post-com-count-no-comments,.ac-comment-bubble .post-com-count-approved{margin-top:5px}.ac-comment-bubble .comment-count-no-comments,.ac-comment-bubble .comment-count-approved{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;-webkit-border-radius:5px;border-radius:5px;background-color:#72777c;color:#fff;font-size:11px;line-height:21px;text-align:center}.ac-comment-bubble .post-com-count-no-comments:after,.ac-comment-bubble .post-com-count-approved:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #72777c;border-right:5px solid transparent}.ac-comment-bubble .post-com-count-approved:hover .comment-count-approved,.ac-comment-bubble .post-com-count-approved:focus .comment-count-approved{background:#0073aa}.ac-comment-bubble .post-com-count-approved:hover:after,.ac-comment-bubble .post-com-count-approved:focus:after{border-top-color:#0073aa}.ac-comment-bubble .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;-webkit-border-radius:11px;border-radius:11px;background:#ca4a1f;color:#fff;font-size:9px;line-height:17px;text-align:center}.ac-comment-bubble .post-com-count-no-pending{display:none}.ac-divider{display:inline-block;width:14px;height:12px;position:relative}.ac-divider:before{content:'';display:block;width:2px;height:2px;background:#000;position:absolute;left:50%;margin-left:-1px;top:60%}span.status-closed{color:red}.ac-value-stars{white-space:nowrap;word-wrap:normal;display:block}.ac-value-stars .ac-value-star{font-size:16px;width:auto;margin-right:-3px}.actions #post-query-submit{float:left;vertical-align:middle;margin-bottom:4px}.tablenav.top .ac-button{top:2px;display:inline-block;vertical-align:middle;float:left;margin-bottom:4px}body.edit-tags-php .tablenav.top .ac-button{float:none}span.dashicons.flip:before{transform:scale(-1, 1);display:inline-block}span.dashicons.yellow{color:#ffb900}span.dashicons.orange{color:#d54e21}span.dashicons.red{color:#dc3232}span.dashicons.green{color:#46b450}span.dashicons.light-gray{color:#bbb}span.dashicons.gray{color:#8a8a8a}span.dashicons.blue{color:#0073aa}span.dashicons.light-blue{color:#00a0d2}body.edit-php #delete_all{float:left;margin-right:3px}body.users-php .tablenav .actions a.add-new-h2{float:none;vertical-align:middle !important;top:2px !important}@media screen and (max-width: 782px){.tablenav.top .actions{display:block !important;margin-bottom:4px}.tablenav.top .actions *{display:none}.tablenav.top .actions .ac-button{display:inline-block}}body.upload-php .tablenav.top .ac-button{float:none}.ac-toggle-box-link:focus{outline:none;box-shadow:none}.ac-toggle-box-link .spinner{float:none;margin-top:-2px}.ac-toggle-box-link.loading .spinner{visibility:visible}.ac-toggle-box-contents-ajax{padding:5px 0 0}.ac-toggle-box-contents{display:none;padding:5px 0 0}.ac-toggle-box-contents.-open{display:block}table.ac-table-items{border-spacing:0}table.ac-table-items tr td{border:0;margin:0;padding:0 0 3px}table.ac-table-items tr td.ac-table-item-qty{color:#999;padding-right:6px;text-align:left}.ac-post-state-format:before{color:#a7a7a7}.ac-image-details .ac-image-info{display:inline-block;border-radius:7px;padding:0 9px;min-height:20px;background-color:#e9e9e9;text-align:left;font-size:11px;font-weight:bold;margin:0 6px 5px 0;white-space:nowrap}.ac-image-details .ac-image-info>span{margin-right:6px}.ac-image-details .ac-image-info>span:last-child{margin-right:0}.ac-image-details .ac-image-info span{vertical-align:middle;line-height:20px}.ac-image-details .ac-image-info span.image-id{font-size:11px;color:#757575}.ac-image-details .ac-image-info span.image-file-size{font-size:12px}.ac-image-details .ac-image-info span.image-extension{text-transform:uppercase;font-size:11px;color:#757575}.ac-image-details .ac-image-info span.suffix{display:inline-block;text-transform:uppercase;font-size:10px;color:#757575;padding-left:3px;margin-top:-2px}.ac-image-details .ac-image-info span.dashicons{margin-top:-2px;color:#757575;font-size:14px;width:16px}.ac-image-details a.ac-image-info:hover{color:#0073aa}.ac-image-details a.ac-image-info:hover span.dashicons{color:#3d4350}.ac-upload-space .ac-upload-space-labels{display:table;width:100%}.ac-upload-space .ac-upload-space-labels .inner{display:table-row}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon{display:table-cell}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-icon:before{color:#82878c;content:"\f104";display:inline-block;font-family:'dashicons', serif;width:20px;height:20px;font-size:18px;line-height:1;text-decoration:inherit;font-weight:normal;font-style:normal;vertical-align:top;text-align:center;margin-right:4px}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-left{display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-labels .inner .ac-upload-space-right{width:100%;text-align:right;padding-left:6px;display:table-cell;white-space:nowrap}.ac-upload-space .ac-upload-space-progress{margin-top:6px;height:3px;background:white;border:1px solid #dfdfdf;position:relative}.ac-upload-space .ac-upload-space-progress .ac-upload-space-progress-bar{background-color:#46b450;height:100%;display:block}.ac-upload-space.warning .ac-upload-space-icon:before{color:#ffb900;content:"\f534";margin-top:1px}.ac-upload-space.warning .ac-upload-space-progress-bar{background-color:#ffb900}.ac-upload-space.full .ac-upload-space-icon:before{color:#d54e21;content:"\f153";margin-top:1px}.ac-upload-space.full .ac-upload-space-progress-bar{background-color:#dc3232}#form-site-list .tablenav .actions .ac-button{float:none}.ac-inline-info{display:inline-block;border-radius:3px;min-width:8px;padding:0 6px;min-height:20px;background-color:#e9e9e9;text-align:center;margin-right:7px;font-size:11px;font-weight:bold}.ac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:7px;margin-right:7px;font-size:12px}.ac-rounded.ac-rounded-first{margin-left:0}.ac-spacing{display:inline-block;margin-right:10px;margin-bottom:4px}.cpac-suffix{margin-left:8px;color:#808080}.ac-small-block{display:inline-block;border-radius:3px;background-color:rgba(224,224,224,0.6);padding:2px 7px;margin:0 5px 5px 0}.ac-more-link-show{cursor:pointer}.ac-show-more__content{margin-right:4px}.ac-show-more__toggle{cursor:pointer;white-space:nowrap}.ac-show-more__part.-more{display:none}.ac-show-more.-on .ac-show-more__part.-more{display:inline}.ac-show-more__divider{color:#ddd;padding-right:4px}.ac-image-container{margin-bottom:-6px}.ac-image:not(body){display:inline-block;margin-right:2px;margin-bottom:6px;overflow:hidden;max-width:100%;background-color:#ccc;vertical-align:middle}.ac-image:not(body) img{display:block;margin:0 auto}.ac-image:not(body) .ac-extension{font-size:12px;line-height:22px;display:block;text-align:center;text-transform:uppercase;font-weight:bold}.ac-image:not(body).ac-icon{background-color:transparent}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}.ac-progress-bar{width:100%;display:flex}.ac-progress-bar .ac-label-main{width:65px}.ac-progress-bar .ac-bar-container{flex:auto;background-color:#fff;min-height:22px;line-height:22px;position:relative;border:1px solid #ccc;border-radius:2px}.ac-progress-bar .ac-bar-container .ac-bar{height:100%;background-color:#69c471;border-right:1px solid #fff}.ac-progress-bar .ac-bar-container .ac-label-left,.ac-progress-bar .ac-bar-container .ac-label-right{text-shadow:rgba(255,255,255,0.65) 0 0 5px;color:#555;position:absolute}.ac-progress-bar .ac-bar-container .ac-label-left{left:5px}.ac-progress-bar .ac-bar-container .ac-label-right{right:5px}.ac-progress-bar.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,0.45);border:none}.ac-progress-bar.dark .ac-bar-container{flex:auto;background-color:#a6a6a6;min-height:22px;line-height:22px;position:relative}.ac-progress-bar.dark .ac-bar-container .ac-bar{height:100%;background-color:#46b450;border-right:1px solid #fff}.ac-progress-bar.dark .ac-bar-container .ac-label-left{color:#fff;position:absolute;left:5px}.ac-progress-bar.dark .ac-bar-container .ac-label-right{color:#fff;position:absolute;right:5px}.ac-progress-bar.dark.full .ac-bar-container .ac-bar{background-color:rgba(255,0,0,0.68);border:none}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#ffffff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco, Menlo, Consolas, "Courier New", monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px;overflow:hidden}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac_wp_button,.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{color:#555;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border:1px solid #ccc;border-radius:3px;white-space:nowrap;box-sizing:border-box}.cpac_wp_button:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span a:hover,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:hover,.column-actions .cpac_use_icons+.row-actions>span a:hover,.column-actions .cpac_use_icons+.row-actions>span button:hover{background:#fafafa;color:#23282d;border-color:#999}.column-actions .row-actions{left:0;position:relative}.column-actions .cpac_use_icons+.hidden+.row-actions>span,.column-actions .cpac_use_icons+.row-actions>span{color:transparent;font-size:0;margin-right:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a,.column-actions .cpac_use_icons+.hidden+.row-actions>span button,.column-actions .cpac_use_icons+.row-actions>span a,.column-actions .cpac_use_icons+.row-actions>span button{display:inline-block;position:relative;min-width:26px;margin-bottom:5px}.column-actions .cpac_use_icons+.hidden+.row-actions>span a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span button:before,.column-actions .cpac_use_icons+.row-actions>span a:before,.column-actions .cpac_use_icons+.row-actions>span button:before{text-indent:0;font-family:Dashicons, sans-serif;font-size:16px;position:absolute;padding-left:4px;top:0;left:0;width:100%;height:100%}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.edit a,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.inline a,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link,.column-actions .cpac_use_icons+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.view a,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link,.column-actions .cpac_use_icons+.row-actions>span.quickedit a,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.approve a,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unapprove a,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link,.column-actions .cpac_use_icons+.row-actions>span.spam a,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.untrash a,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unspam a,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link,.column-actions .cpac_use_icons+.row-actions>span.reply a,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link,.column-actions .cpac_use_icons+.row-actions>span.delete a,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link,.column-actions .cpac_use_icons+.row-actions>span.backend a,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link,.column-actions .cpac_use_icons+.row-actions>span.visit a,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link,.column-actions .cpac_use_icons+.row-actions>span.deactivate a,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.archive a,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.unarchive a,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link,.column-actions .cpac_use_icons+.row-actions>span.activate a,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link,.column-actions .cpac_use_icons+.row-actions>span.download a,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link,.column-actions .cpac_use_icons+.row-actions>span.duplicate a,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link{text-indent:-3000em}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.quickedit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate button.button-link:before{text-indent:0;font-family:Dashicons, sans-serif}.column-actions .cpac_use_icons+.hidden+.row-actions>span.edit a:before,.column-actions .cpac_use_icons+.row-actions>span.edit a:before{content:"\f464"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.inline button.button-link:before,.column-actions .cpac_use_icons+.row-actions>span.inline a:before,.column-actions .cpac_use_icons+.row-actions>span.inline.quickedit a:before,.column-actions .cpac_use_icons+.row-actions>span.inline button.button-link:before{content:"\f119"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.duplicate a:before,.column-actions .cpac_use_icons+.row-actions>span.duplicate a:before{content:"\f105"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a,.column-actions .cpac_use_icons+.row-actions>span.trash a{border-radius:3px;border:1px solid #ccc}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:before,.column-actions .cpac_use_icons+.row-actions>span.trash a:before{content:"\f182"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.trash a:hover,.column-actions .cpac_use_icons+.row-actions>span.trash a:hover{border-color:#999}.column-actions .cpac_use_icons+.hidden+.row-actions>span.view a:before,.column-actions .cpac_use_icons+.row-actions>span.view a:before{content:"\f177"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unapprove a:before,.column-actions .cpac_use_icons+.row-actions>span.unapprove a:before{content:"\f158"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.approve a:before,.column-actions .cpac_use_icons+.row-actions>span.approve a:before{content:"\f147"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.spam a:before,.column-actions .cpac_use_icons+.row-actions>span.spam a:before{content:"\f117"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.reply a:before,.column-actions .cpac_use_icons+.row-actions>span.reply a:before{content:"\f473"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.hidden+.row-actions>span.unspam a:before,.column-actions .cpac_use_icons+.row-actions>span.untrash a:before,.column-actions .cpac_use_icons+.row-actions>span.unspam a:before{content:"\f171"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.delete a:before,.column-actions .cpac_use_icons+.row-actions>span.delete a:before{content:"\f182"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.backend a:before,.column-actions .cpac_use_icons+.row-actions>span.backend a:before{content:"\f226"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.visit a:before,.column-actions .cpac_use_icons+.row-actions>span.visit a:before{content:"\f115"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.deactivate a:before,.column-actions .cpac_use_icons+.row-actions>span.deactivate a:before{content:"\f530"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.archive a:before,.column-actions .cpac_use_icons+.row-actions>span.archive a:before{content:"\f480"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.unarchive a:before,.column-actions .cpac_use_icons+.row-actions>span.unarchive a:before{content:"\f322"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.activate a:before,.column-actions .cpac_use_icons+.row-actions>span.activate a:before{content:"\f177"}.column-actions .cpac_use_icons+.hidden+.row-actions>span.download a:before,.column-actions .cpac_use_icons+.row-actions>span.download a:before{content:"\f316"}@media screen and (max-width: 782px){.wp-list-table.widefat thead th{display:none}.wp-list-table.widefat thead th.column-primary{display:table-cell}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td{display:none}.wp-list-table.widefat tbody tr:not(.inline-edit-row):not(.no-items) td.column-primary{display:block}}.ac-tip{display:inline-block}.ac-table-actions{display:none;position:relative;z-index:20;float:left;white-space:nowrap;margin-right:5px;margin-left:1px;margin-bottom:5px}.ac-table-actions.-init{display:block}.ac-table-actions .ac-table-actions-buttons{white-space:nowrap;display:inline-block;vertical-align:top}.ac-table-actions .ac-table-actions-buttons .ac-table-button{float:left;border-radius:0;border-right:none}.ac-table-actions .ac-table-actions-buttons .ac-table-button:first-child{border-radius:3px 0 0 3px}.ac-table-actions .ac-table-button{display:inline-block;padding:2px 12px;cursor:pointer;color:#0071a1;border:1px solid #0071a1;background:#f3f5f6;text-decoration:none;font-size:13px;height:24px;line-height:24px;text-align:center;transform:translateX(-1px);border-radius:3px}.ac-table-actions .ac-table-button:last-child,.ac-table-actions .ac-table-button.last{border-radius:0 3px 3px 0;border-right:1px solid #0071a1}.ac-table-actions .ac-table-button:last-child.active,.ac-table-actions .ac-table-button.last.active{border-right:1px solid #0071a1}.ac-table-actions .ac-table-button:last-child:first-child,.ac-table-actions .ac-table-button.last:first-child{border-radius:3px}.ac-table-actions .ac-table-button:hover,.ac-table-actions .ac-table-button:focus,.ac-table-actions .ac-table-button:active{outline:none;box-shadow:none;background:#f1f1f1;color:#016088;border-color:#016088}.ac-table-actions .ac-table-button .dashicons{font-size:14px;width:14px;height:14px;line-height:24px}.ac-table-actions .ac-table-button.disabled{background:#ddd;color:#aaa;cursor:not-allowed}.ac-table-actions .ac-table-button.active{background:#00A0D2;border:1px solid #008EC2;color:#fff}.ac-table-actions .ac-table-button.active+.ac-table-button{border-left:none}.ac-table-actions .ac-table-button.-inline-edit .dashicons{font-size:18px;margin-left:-2px}.ac-table-actions .ac-table-button.-toggle{background:none;border:1px solid transparent;padding-left:4px;padding-right:4px;transform:translateY(-1px)}.ac-table-actions .ac-table-button.-toggle .ac-toggle__switch{vertical-align:middle;margin-top:-3px;margin-right:1px;color:#888}.ac-table-actions .ac-table-button__caret{display:inline-block;vertical-align:middle;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #6F6F6F;transition:transform .2s}.ac-table-actions .ac-table-button.-open{color:#0072AA}.ac-table-actions .ac-table-button.-open .ac-table-button__caret{transform:rotate(180deg)}.hide-column-tog+span .dashicons{transform:translateY(5px);margin-left:3px}
assets/external/qtip2/jquery.qtip.css CHANGED
File without changes
assets/external/qtip2/jquery.qtip.js CHANGED
File without changes
assets/external/qtip2/jquery.qtip.min.css CHANGED
File without changes
assets/external/qtip2/jquery.qtip.min.js CHANGED
File without changes
assets/external/qtip2/jquery.qtip.min.js.map CHANGED
File without changes
assets/images/addons/gravityforms.svg ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="150px" height="166px" viewBox="0 0 150 166" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>gravity-header</title>
4
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="gravity-header" fill-rule="nonzero">
6
+ <path d="M149.806701,111.997423 C149.806701,119.536082 144.471649,128.775773 137.938144,132.525773 L86.7912371,162.061856 C80.257732,165.811856 69.5876289,165.811856 63.0541237,162.061856 L11.9072165,132.525773 C5.41237113,128.775773 0.0773195876,119.536082 0.0773195876,111.997423 L0.0773195876,52.9252577 C0.0773195876,45.3865979 5.41237113,36.1469072 11.9458763,32.3969072 L63.0541237,2.86082474 C69.5876289,-0.889175258 80.257732,-0.889175258 86.7912371,2.86082474 L137.938144,32.3969072 C144.471649,36.1469072 149.806701,45.3865979 149.806701,52.9252577 L149.806701,111.997423 L149.806701,111.997423 Z" id="Path" fill="#F15A2B"></path>
7
+ <path d="M60.3865979,68.7757732 L128.157216,68.7757732 L128.157216,49.7164948 L60.5798969,49.7164948 C50.9149485,49.7164948 42.8737113,53.0412371 36.7654639,59.5747423 C21.9974227,75.2706186 21.6108247,114.858247 21.6108247,114.858247 L127.693299,114.858247 L127.693299,79.0592784 L108.634021,79.0592784 L108.634021,95.7989691 L41.9072165,95.7989691 C42.3324742,89.5747423 45.193299,78.4020619 50.6056701,72.6417526 C53.0798969,70.0128866 56.2113402,68.7757732 60.3865979,68.7757732 L60.3865979,68.7757732 Z" id="Path" fill="#FFFFFF"></path>
8
+ </g>
9
+ </g>
10
+ </svg>
assets/js/admin-general.js CHANGED
@@ -1,8 +1,8 @@
1
- !function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e){t.exports=jQuery},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,i){n(t!=e,i)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,i){n(t==e,i)},n.ok=n,t.exports=n},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=s(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),s=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var i=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();e.a=i},function(t,e,n){"use strict";var i=n(2),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},function(t,e,n){var i=n(6),o=n(7),s=n(1);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);var r=o(this._name+"('"+t.toString()+"')"),u=this._listeners[t];return u&&u.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},r.prototype.prependListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},r.prototype.once=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.prependOnceListener=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.removeListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(i(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var i=e.length,o=0;o<i;o++)n.push(e[o]);return n},r.prototype._emit=function(t,e,n,i){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==i?[e].concat(n,i):[e].concat(n));for(var o=t.length,s=0;s<o;s++){var r=t[s];r.apply(r,n)}}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o=t.length;if(!(e>=o||0===n)){var s=o-(n=e+n>o?o-e:n);for(i=e;i<s;++i)t[i]=t[i+n];t.length=s}}},function(t,e,n){var i,o=n(8)(),s=n(1);r.disabled=!0;try{i=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!i.mark}catch(t){}function r(t){if(s.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return u;var e=(1e4*i.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function c(s){var r="end-"+e+"-"+t;i.mark(r),o.push((function(){var o=null;try{var u=t+" ["+e+"]";i.measure(u,n,r),i.clearMarks(n),i.clearMarks(r)}catch(t){o=t}s&&s(o,t)}))}return i.mark(n),c.uuid=e,c}function u(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},function(t,e,n){var i=n(1),o="undefined"!=typeof window;function s(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}s.prototype.push=function(t){i.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},s.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},s.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),t=window._nanoScheduler):t=new s,t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(3),o=function(){function t(){this.modals={},this.number=0,this.defaults={modal:i.a},this.initGlobalEvents()}return t.prototype.register=function(t,e){return void 0===e&&(e=""),e||(e="m"+this.number),this.modals[e]=t,this.number++,t},t.prototype.get=function(t){return this.modals.hasOwnProperty(t)?this.modals[t]:null},t.prototype.open=function(t){this.get(t)&&this.get(t).open()},t.prototype.close=function(t){this.get(t)&&this.get(t).close()},t.prototype.closeAll=function(){for(var t in this.modals)this.close(t)},t.prototype.initGlobalEvents=function(){var t=this;document.addEventListener("click",(function(e){var n=e.target;n.dataset.acModal&&(e.preventDefault(),t.open(n.dataset.acModal))}))},t}(),s=n(5),r=function(){return window.AdminColumns||(window.AdminColumns=window.AdminColumns||{},AdminColumns.events=s(),AdminColumns.Modals=new o),window.AdminColumns}},,function(t,e,n){var i,o;
2
  /*!
3
  * JavaScript Cookie v2.2.1
4
  * https://github.com/js-cookie/js-cookie
5
  *
6
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
  * Released under the MIT license
8
- */!function(s){if(void 0===(o="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=o),!0,t.exports=s(),!!0){var r=window.Cookies,u=window.Cookies=s();u.noConflict=function(){return window.Cookies=r,u}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function o(){}function s(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=t({path:"/"},o.defaults,s)).expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var r=JSON.stringify(n);/^[\{\[]/.test(r)&&(n=r)}catch(t){}n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var c in s)s[c]&&(u+="; "+c,!0!==s[c]&&(u+="="+s[c].split(";")[0]));return document.cookie=e+"="+n+u}}function r(t,n){if("undefined"!=typeof document){for(var o={},s=document.cookie?document.cookie.split("; "):[],r=0;r<s.length;r++){var u=s[r].split("="),c=u.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var a=e(u[0]);if(c=(i.read||i)(c,a)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[a]=c,t===a)break}catch(t){}}return t?o[t]:o}}return o.set=s,o.get=function(t){return r(t,!1)},o.getJSON=function(t){return r(t,!0)},o.remove=function(e,n){s(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},,,,,,,,function(t,e,n){"use strict";n.r(e);var i=n(11),o=function(){function t(t){this.element=t,this.init()}return t.prototype.init=function(){var t=this;if(this.element.classList.contains("-closable")){var e=this.element.querySelector(".ac-section__header");if(e&&e.addEventListener("click",(function(){t.toggle()})),this.isStorable()){var n=i.get(this.getCookieKey());void 0!==n&&(1===parseInt(n)?this.open:this.close())}}},t.prototype.getCookieKey=function(){return"ac-section_"+this.getSectionId()},t.prototype.getSectionId=function(){return this.element.dataset.section},t.prototype.isStorable=function(){return void 0!==this.element.dataset.section},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.isOpen=function(){return!this.element.classList.contains("-closed")},t.prototype.open=function(){this.element.classList.remove("-closed"),this.isStorable()&&i.set(this.getCookieKey(),1)},t.prototype.close=function(){this.element.classList.add("-closed"),this.isStorable()&&i.set(this.getCookieKey(),0)},t}(),s=n(4),r=n(0),u=function(){function t(t){this.element=t,this.settings=this.getDefaults(),this.init(),this.setInitialized()}return t.prototype.setInitialized=function(){this.element.dataset.ac_pointer_initialized="1"},t.prototype.getDefaults=function(){return{width:this.element.getAttribute("data-width")?this.element.getAttribute("data-width"):250,noclick:!!this.element.getAttribute("data-noclick")&&this.element.getAttribute("data-noclick"),position:this.getPosition()}},t.prototype.isInitialized=function(){return this.element.dataset.hasOwnProperty("ac_pointer_initialized")},t.prototype.init=function(){this.isInitialized()||(r(this.element).pointer({content:this.getRelatedHTML(),position:this.settings.position,pointerWidth:this.settings.width,pointerClass:this.getPointerClass()}),this.initEvents())},t.prototype.getPosition=function(){var t={at:"left top",my:"right top",edge:"right"},e=this.element.getAttribute("data-pos"),n=this.element.getAttribute("data-pos_edge");return"right"===e&&(t={at:"right middle",my:"left middle",edge:"left"}),"right_bottom"===e&&(t={at:"right middle",my:"left bottom",edge:"none"}),"left"===e&&(t={at:"left middle",my:"right middle",edge:"right"}),n&&(t.edge=n),t},t.prototype.getPointerClass=function(){var t=["ac-wp-pointer","wp-pointer","wp-pointer-"+this.settings.position.edge];return this.settings.noclick&&t.push("noclick"),t.join(" ")},t.prototype.getRelatedHTML=function(){var t=document.getElementById(this.element.getAttribute("rel"));return t?t.innerHTML:""},t.prototype.initEvents=function(){var t=r(this.element);this.settings.noclick||t.click((function(){t.hasClass("open")?t.removeClass("open"):t.addClass("open")})),t.click((function(){t.pointer("open")})),t.mouseenter((function(){t.pointer("open"),setTimeout((function(){t.pointer("open")}),2)})),t.mouseleave((function(){setTimeout((function(){t.hasClass("open")||0!==r(".ac-wp-pointer.hover").length||t.pointer("close")}),1)})),t.on("close",(function(){setTimeout((function(){t.hasClass("open")||t.pointer("close")}))}))},t}(),c=function(){document.querySelectorAll(".ac-pointer").forEach((function(t){new u(t)})),r(".ac-wp-pointer").hover((function(){r(this).addClass("hover")}),(function(){r(this).removeClass("hover"),r(".ac-pointer").trigger("close")})).on("click",".close",(function(){r(".ac-pointer").removeClass("open")})),new s.a},a=n(9),l=n(0);Object(a.a)(),window.ac_pointers=c,l(document).ready((function(){c(),document.querySelectorAll(".ac-section").forEach((function(t){new o(t)}))}))}]);
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=50)}({0:function(t,e){t.exports=jQuery},25:function(t,e,n){var i,o;
2
  /*!
3
  * JavaScript Cookie v2.2.1
4
  * https://github.com/js-cookie/js-cookie
5
  *
6
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
  * Released under the MIT license
8
+ */!function(r){if(void 0===(o="function"==typeof(i=r)?i.call(e,n,e,t):i)||(t.exports=o),!0,t.exports=r(),!!0){var s=window.Cookies,c=window.Cookies=r();c.noConflict=function(){return window.Cookies=s,c}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function o(){}function r(e,n,r){if("undefined"!=typeof document){"number"==typeof(r=t({path:"/"},o.defaults,r)).expires&&(r.expires=new Date(1*new Date+864e5*r.expires)),r.expires=r.expires?r.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(t){}n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var u in r)r[u]&&(c+="; "+u,!0!==r[u]&&(c+="="+r[u].split(";")[0]));return document.cookie=e+"="+n+c}}function s(t,n){if("undefined"!=typeof document){for(var o={},r=document.cookie?document.cookie.split("; "):[],s=0;s<r.length;s++){var c=r[s].split("="),u=c.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(c[0]);if(u=(i.read||i)(u,l)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[l]=u,t===l)break}catch(t){}}return t?o[t]:o}}return o.set=r,o.get=function(t){return s(t,!1)},o.getJSON=function(t){return s(t,!0)},o.remove=function(e,n){r(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},4:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=r(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),r=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},5:function(t,e,n){"use strict";var i=n(4),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},50:function(t,e,n){"use strict";n.r(e);var i=n(25),o=function(){function t(t){this.element=t,this.init()}return t.prototype.init=function(){var t=this;if(this.element.classList.contains("-closable")){var e=this.element.querySelector(".ac-section__header");if(e&&e.addEventListener("click",(function(){t.toggle()})),this.isStorable()){var n=i.get(this.getCookieKey());void 0!==n&&(1===parseInt(n)?this.open:this.close())}}},t.prototype.getCookieKey=function(){return"ac-section_"+this.getSectionId()},t.prototype.getSectionId=function(){return this.element.dataset.section},t.prototype.isStorable=function(){return void 0!==this.element.dataset.section},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.isOpen=function(){return!this.element.classList.contains("-closed")},t.prototype.open=function(){this.element.classList.remove("-closed"),this.isStorable()&&i.set(this.getCookieKey(),1)},t.prototype.close=function(){this.element.classList.add("-closed"),this.isStorable()&&i.set(this.getCookieKey(),0)},t}(),r=n(9);n(0)(document).ready((function(){Object(r.a)(),document.querySelectorAll(".ac-section").forEach((function(t){new o(t)}))}))},9:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(5),o=n(0),r=function(){function t(t){this.element=t,this.settings=this.getDefaults(),this.init(),this.setInitialized()}return t.prototype.setInitialized=function(){s.add(this.element)},t.prototype.getDefaults=function(){return{width:this.element.getAttribute("data-width")?this.element.getAttribute("data-width"):250,noclick:!!this.element.getAttribute("data-noclick")&&this.element.getAttribute("data-noclick"),position:this.getPosition()}},t.prototype.isInitialized=function(){return s.isInitialized(this.element)},t.prototype.init=function(){this.isInitialized()||(o(this.element).pointer({content:this.getRelatedHTML(),position:this.settings.position,pointerWidth:this.settings.width,pointerClass:this.getPointerClass()}),this.initEvents())},t.prototype.getPosition=function(){var t={at:"left top",my:"right top",edge:"right"},e=this.element.getAttribute("data-pos"),n=this.element.getAttribute("data-pos_edge");return"right"===e&&(t={at:"right middle",my:"left middle",edge:"left"}),"right_bottom"===e&&(t={at:"right middle",my:"left bottom",edge:"none"}),"left"===e&&(t={at:"left middle",my:"right middle",edge:"right"}),n&&(t.edge=n),t},t.prototype.getPointerClass=function(){var t=["ac-wp-pointer","wp-pointer","wp-pointer-"+this.settings.position.edge];return this.settings.noclick&&t.push("noclick"),t.join(" ")},t.prototype.getRelatedHTML=function(){var t=document.getElementById(this.element.getAttribute("rel"));return t?t.innerHTML:""},t.prototype.initEvents=function(){var t=o(this.element);this.settings.noclick||t.click((function(){t.hasClass("open")?t.removeClass("open"):t.addClass("open")})),t.click((function(){t.pointer("open")})),t.mouseenter((function(){t.pointer("open"),setTimeout((function(){t.pointer("open")}),2)})),t.mouseleave((function(){setTimeout((function(){t.hasClass("open")||0!==o(".ac-wp-pointer.hover").length||t.pointer("close")}),1)})),t.on("close",(function(){setTimeout((function(){t.hasClass("open")||t.pointer("close")}))}))},t}(),s=function(){function t(){}return t.isInitialized=function(t){return this.initElements.filter((function(e){return e===t})).length>0},t.add=function(t){this.initElements.push(t)},t.initElements=[],t}(),c=function(t){void 0===t&&(t=null),t||(t=document.querySelectorAll(".ac-pointer")),t.forEach((function(t){new r(t)})),o(".ac-wp-pointer").hover((function(){o(this).addClass("hover")}),(function(){o(this).removeClass("hover"),o(".ac-pointer").trigger("close")})).on("click",".close",(function(){o(".ac-pointer").removeClass("open")})),new i.a}}});
assets/js/admin-general.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-general.ts","webpack:///./js/helpers/admin-columns.ts","webpack:///./js/modules/ac-pointer.ts","webpack:///./js/modules/ac-section.ts","webpack:///./js/modules/modal.ts","webpack:///./js/modules/modals.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./node_modules/js-cookie/src/js.cookie.js","webpack:///./node_modules/nanoassert/index.js","webpack:///./node_modules/nanobus/index.js","webpack:///./node_modules/nanoscheduler/index.js","webpack:///./node_modules/nanotiming/browser.js","webpack:///./node_modules/remove-array-items/index.js","webpack:///external \"jQuery\""],"names":["$","require","initAdminColumnsGlobalBootstrap","window","ac_pointers","initPointers","document","ready","querySelectorAll","forEach","el","AcSection","nanobus","AdminColumns","events","Modals","Pointer","element","settings","getDefaults","init","setInitialized","prototype","dataset","ac_pointer_initialized","width","getAttribute","noclick","position","getPosition","isInitialized","hasOwnProperty","pointer","content","getRelatedHTML","pointerWidth","pointerClass","getPointerClass","initEvents","at","my","edge","pos","classes","push","join","related_element","getElementById","innerHTML","click","hasClass","removeClass","addClass","mouseenter","setTimeout","mouseleave","length","on","hover","trigger","Tooltip","Cookies","_this","classList","contains","header","querySelector","addEventListener","toggle","isStorable","setting","get","getCookieKey","undefined","parseInt","open","close","getSectionId","section","isOpen","remove","set","add","Modal","dialog","self","e","keyName","key","dismissButtons","b","preventDefault","target","onClose","onOpen","removeAttribute","destroy","modals","number","defaults","modal","initGlobalEvents","register","closeAll","acModal","Tooltips","initAcTooltips","acTip","tip","createTooltip","acTooltipInit","body","appendChild","bodyOffset","getBoundingClientRect","viewportOffset","style","left","offsetWidth","top","offsetHeight","createElement"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;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,EAA7B;;AA4BA;;AACA,IAAIiD,aAAa,GAAG,UAAU5E,OAAV,EAAmB;AACnC,MAAI2E,GAAG,GAAGtG,QAAQ,CAACmH,aAAT,CAAuB,KAAvB,CAAV;AACAb,KAAG,CAAC7C,SAAJ,CAAcmB,GAAd,CAAkB,YAAlB;AACA0B,KAAG,CAAC5D,SAAJ,GAAgBf,OAAhB;AACA,SAAO2E,GAAP;AACH,CALD,C;;;;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,KAAK,IAA0C;AAC/C,EAAE,oCAAO,OAAO;AAAA;AAAA;AAAA;AAAA,oGAAC;AACjB;AACA;AACA,KAAK,IAA2B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,QAAQ,sBAAsB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,EAAE;AACjC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA,mEAAmE;AACnE;AACA;AACA,wCAAwC;AACxC;AACA,qEAAqE;AACrE;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2DAA2D;AAC3D;;AAEA,SAAS,oBAAoB;AAC7B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;;AAEA;;AAEA;AACA;;AAEA,2BAA2B;AAC3B,CAAC;;;;;;;;;;;;AClKD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACrBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC,SAAS;AAClD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;;;;;;;;;;;ACjKA,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACtDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;;AAEb;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AC/CY;;AAEZ;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA;;;;;;;;;;;;AC1BA,wB","file":"admin-general.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/admin-general.ts\");\n","import AcSection from \"./modules/ac-section\";\nimport { initPointers } from \"./modules/ac-pointer\";\nimport { initAdminColumnsGlobalBootstrap } from \"./helpers/admin-columns\";\nvar $ = require(\"jquery\");\ninitAdminColumnsGlobalBootstrap();\nwindow.ac_pointers = initPointers;\n$(document).ready(function () {\n initPointers();\n document.querySelectorAll('.ac-section').forEach(function (el) {\n new AcSection(el);\n });\n});\n","import Modals from \"../modules/modals\";\nvar nanobus = require('nanobus');\nexport var initAdminColumnsGlobalBootstrap = function () {\n if (!window.AdminColumns) {\n window.AdminColumns = window.AdminColumns || {};\n AdminColumns.events = nanobus();\n AdminColumns.Modals = new Modals();\n }\n return window.AdminColumns;\n};\n","import Tooltip from \"./tooltips\";\nvar $ = require(\"jquery\");\nvar Pointer = /** @class */ (function () {\n function Pointer(el) {\n this.element = el;\n this.settings = this.getDefaults();\n this.init();\n this.setInitialized();\n }\n Pointer.prototype.setInitialized = function () {\n this.element.dataset.ac_pointer_initialized = '1';\n };\n Pointer.prototype.getDefaults = function () {\n return {\n width: this.element.getAttribute('data-width') ? this.element.getAttribute('data-width') : 250,\n noclick: this.element.getAttribute('data-noclick') ? this.element.getAttribute('data-noclick') : false,\n position: this.getPosition()\n };\n };\n Pointer.prototype.isInitialized = function () {\n return this.element.dataset.hasOwnProperty('ac_pointer_initialized');\n };\n Pointer.prototype.init = function () {\n if (this.isInitialized()) {\n return;\n }\n // create pointer\n $(this.element).pointer({\n content: this.getRelatedHTML(),\n position: this.settings.position,\n pointerWidth: this.settings.width,\n pointerClass: this.getPointerClass()\n });\n this.initEvents();\n };\n Pointer.prototype.getPosition = function () {\n var position = {\n at: 'left top',\n my: 'right top',\n edge: 'right',\n };\n var pos = this.element.getAttribute('data-pos');\n var edge = this.element.getAttribute('data-pos_edge');\n if ('right' === pos) {\n position = {\n at: 'right middle',\n my: 'left middle',\n edge: 'left'\n };\n }\n if ('right_bottom' === pos) {\n position = {\n at: 'right middle',\n my: 'left bottom',\n edge: 'none'\n };\n }\n if ('left' === pos) {\n position = {\n at: 'left middle',\n my: 'right middle',\n edge: 'right'\n };\n }\n if (edge) {\n position.edge = edge;\n }\n return position;\n };\n Pointer.prototype.getPointerClass = function () {\n var classes = [\n 'ac-wp-pointer',\n 'wp-pointer',\n 'wp-pointer-' + this.settings.position.edge\n ];\n if (this.settings.noclick) {\n classes.push('noclick');\n }\n return classes.join(' ');\n };\n Pointer.prototype.getRelatedHTML = function () {\n var related_element = document.getElementById(this.element.getAttribute('rel'));\n return related_element ? related_element.innerHTML : '';\n };\n Pointer.prototype.initEvents = function () {\n var el = $(this.element);\n // click\n if (!this.settings.noclick) {\n el.click(function () {\n if (el.hasClass('open')) {\n el.removeClass('open');\n }\n else {\n el.addClass('open');\n }\n });\n }\n el.click(function () {\n el.pointer('open');\n });\n el.mouseenter(function () {\n el.pointer('open');\n setTimeout(function () {\n el.pointer('open');\n }, 2);\n });\n el.mouseleave(function () {\n setTimeout(function () {\n if (!el.hasClass('open') && $('.ac-wp-pointer.hover').length === 0) {\n el.pointer('close');\n }\n }, 1);\n });\n el.on('close', function () {\n setTimeout(function () {\n if (!el.hasClass('open')) {\n el.pointer('close');\n }\n });\n });\n };\n return Pointer;\n}());\nexport { Pointer };\nexport var initPointers = function () {\n document.querySelectorAll('.ac-pointer').forEach(function (element) {\n new Pointer(element);\n });\n $('.ac-wp-pointer').hover(function () {\n $(this).addClass('hover');\n }, function () {\n $(this).removeClass('hover');\n $('.ac-pointer').trigger('close');\n }).on('click', '.close', function () {\n $('.ac-pointer').removeClass('open');\n });\n new Tooltip();\n};\n","var Cookies = require('js-cookie');\nvar AcSection = /** @class */ (function () {\n function AcSection(el) {\n this.element = el;\n this.init();\n }\n AcSection.prototype.init = function () {\n var _this = this;\n if (this.element.classList.contains('-closable')) {\n var header = this.element.querySelector('.ac-section__header');\n if (header) {\n header.addEventListener('click', function () {\n _this.toggle();\n });\n }\n if (this.isStorable()) {\n var setting = Cookies.get(this.getCookieKey());\n if (setting !== undefined) {\n (parseInt(setting) === 1) ? this.open : this.close();\n }\n }\n }\n };\n AcSection.prototype.getCookieKey = function () {\n return \"ac-section_\" + this.getSectionId();\n };\n AcSection.prototype.getSectionId = function () {\n return this.element.dataset.section;\n };\n AcSection.prototype.isStorable = function () {\n return typeof this.element.dataset.section !== 'undefined';\n };\n AcSection.prototype.toggle = function () {\n this.isOpen() ? this.close() : this.open();\n };\n AcSection.prototype.isOpen = function () {\n return !this.element.classList.contains('-closed');\n };\n AcSection.prototype.open = function () {\n this.element.classList.remove('-closed');\n if (this.isStorable()) {\n Cookies.set(this.getCookieKey(), 1);\n }\n };\n AcSection.prototype.close = function () {\n this.element.classList.add('-closed');\n if (this.isStorable()) {\n Cookies.set(this.getCookieKey(), 0);\n }\n };\n return AcSection;\n}());\nexport default AcSection;\n","var Modal = /** @class */ (function () {\n function Modal(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n Modal.prototype.initEvents = function () {\n var _this = this;\n var self = this;\n document.addEventListener('keydown', function (e) {\n var keyName = e.key;\n if (!_this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n _this.close();\n }\n });\n var dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach(function (b) {\n b.addEventListener('click', function (e) {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', function (e) {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n };\n Modal.prototype.isOpen = function () {\n return this.el.classList.contains('-active');\n };\n Modal.prototype.close = function () {\n this.onClose();\n this.el.classList.remove('-active');\n };\n Modal.prototype.open = function () {\n var _this = this;\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(function () {\n _this.onOpen();\n _this.el.removeAttribute('style');\n _this.el.classList.add('-active');\n });\n };\n Modal.prototype.destroy = function () {\n this.el.remove();\n };\n Modal.prototype.onClose = function () {\n };\n Modal.prototype.onOpen = function () {\n };\n return Modal;\n}());\nexport default Modal;\n","import Modal from './modal';\nvar Modals = /** @class */ (function () {\n function Modals() {\n this.modals = {};\n this.number = 0;\n this.defaults = {\n modal: Modal\n };\n this.initGlobalEvents();\n }\n Modals.prototype.register = function (modal, key) {\n if (key === void 0) { key = ''; }\n if (!key) {\n key = 'm' + this.number;\n }\n this.modals[key] = modal;\n this.number++;\n return modal;\n };\n Modals.prototype.get = function (key) {\n return this.modals.hasOwnProperty(key) ? this.modals[key] : null;\n };\n Modals.prototype.open = function (key) {\n if (this.get(key)) {\n this.get(key).open();\n }\n };\n Modals.prototype.close = function (key) {\n if (this.get(key)) {\n this.get(key).close();\n }\n };\n Modals.prototype.closeAll = function () {\n for (var key in this.modals) {\n this.close(key);\n }\n };\n Modals.prototype.initGlobalEvents = function () {\n var _this = this;\n document.addEventListener('click', function (e) {\n var target = e.target;\n if (target.dataset.acModal) {\n e.preventDefault();\n _this.open(target.dataset.acModal);\n }\n });\n };\n return Modals;\n}());\nexport default Modals;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","assert.notEqual = notEqual\nassert.notOk = notOk\nassert.equal = equal\nassert.ok = assert\n\nmodule.exports = assert\n\nfunction equal (a, b, m) {\n assert(a == b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notEqual (a, b, m) {\n assert(a != b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notOk (t, m) {\n assert(!t, m)\n}\n\nfunction assert (t, m) {\n if (!t) throw new Error(m || 'AssertionError')\n}\n","var splice = require('remove-array-items')\nvar nanotiming = require('nanotiming')\nvar assert = require('assert')\n\nmodule.exports = Nanobus\n\nfunction Nanobus (name) {\n if (!(this instanceof Nanobus)) return new Nanobus(name)\n\n this._name = name || 'nanobus'\n this._starListeners = []\n this._listeners = {}\n}\n\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol')\n\n var data = []\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i])\n }\n\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\")\n var listeners = this._listeners[eventName]\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data)\n }\n\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid)\n }\n emitTiming()\n\n return this\n}\n\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.push(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].push(listener)\n }\n return this\n}\n\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.unshift(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].unshift(listener)\n }\n return this\n}\n\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function')\n\n var self = this\n this.on(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function')\n\n var self = this\n this.prependListener(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice()\n return remove(this._starListeners, listener)\n } else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice()\n }\n\n return remove(this._listeners[eventName], listener)\n }\n\n function remove (arr, listener) {\n if (!arr) return\n var index = arr.indexOf(listener)\n if (index !== -1) {\n splice(arr, index, 1)\n return true\n }\n }\n}\n\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = []\n } else {\n this._listeners[eventName] = []\n }\n } else {\n this._starListeners = []\n this._listeners = {}\n }\n return this\n}\n\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners\n\n var ret = []\n if (listeners) {\n var ilength = listeners.length\n for (var i = 0; i < ilength; i++) ret.push(listeners[i])\n }\n return ret\n}\n\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined') return\n if (arr.length === 0) return\n if (data === undefined) {\n data = eventName\n eventName = null\n }\n\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid)\n } else {\n data = [eventName].concat(data)\n }\n }\n\n var length = arr.length\n for (var i = 0; i < length; i++) {\n var listener = arr[i]\n listener.apply(listener, data)\n }\n}\n","var assert = require('assert')\n\nvar hasWindow = typeof window !== 'undefined'\n\nfunction createScheduler () {\n var scheduler\n if (hasWindow) {\n if (!window._nanoScheduler) window._nanoScheduler = new NanoScheduler(true)\n scheduler = window._nanoScheduler\n } else {\n scheduler = new NanoScheduler()\n }\n return scheduler\n}\n\nfunction NanoScheduler (hasWindow) {\n this.hasWindow = hasWindow\n this.hasIdle = this.hasWindow && window.requestIdleCallback\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout\n this.scheduled = false\n this.queue = []\n}\n\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function')\n\n this.queue.push(cb)\n this.schedule()\n}\n\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled) return\n\n this.scheduled = true\n var self = this\n this.method(function (idleDeadline) {\n var cb\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift()\n cb(idleDeadline)\n }\n self.scheduled = false\n if (self.queue.length) self.schedule()\n })\n}\n\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1\n }\n })\n}\n\nmodule.exports = createScheduler\n","var scheduler = require('nanoscheduler')()\nvar assert = require('assert')\n\nvar perf\nnanotiming.disabled = true\ntry {\n perf = window.performance\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark\n} catch (e) { }\n\nmodule.exports = nanotiming\n\nfunction nanotiming (name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string')\n\n if (nanotiming.disabled) return noop\n\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER\n var startName = 'start-' + uuid + '-' + name\n perf.mark(startName)\n\n function end (cb) {\n var endName = 'end-' + uuid + '-' + name\n perf.mark(endName)\n\n scheduler.push(function () {\n var err = null\n try {\n var measureName = name + ' [' + uuid + ']'\n perf.measure(measureName, startName, endName)\n perf.clearMarks(startName)\n perf.clearMarks(endName)\n } catch (e) { err = e }\n if (cb) cb(err, name)\n })\n }\n\n end.uuid = uuid\n return end\n}\n\nfunction noop (cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'))\n })\n }\n}\n","'use strict'\n\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems (arr, startIdx, removeCount) {\n var i, length = arr.length\n\n if (startIdx >= length || removeCount === 0) {\n return\n }\n\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount)\n\n var len = length - removeCount\n\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount]\n }\n\n arr.length = len\n}\n","module.exports = jQuery;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-general.ts","webpack:///./js/modules/ac-pointer.ts","webpack:///./js/modules/ac-section.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./node_modules/js-cookie/src/js.cookie.js","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAA6C;AACO;AACpD,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA,IAAI,wEAAY;AAChB;AACA,YAAY,2DAAS;AACrB,KAAK;AACL,CAAC;;;;;;;;;;;;;ACRD;AAAA;AAAA;AAAA;AAAiC;AACjC,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA,uDAAuD,uBAAuB,EAAE;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACM;AACP,8BAA8B,iBAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,QAAQ,iDAAO;AACf;;;;;;;;;;;;;ACzJA;AAAA,cAAc,mBAAO,CAAC,4DAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,wEAAS,EAAC;;;;;;;;;;;;;ACpDzB;AAAA;AAAmD;AACnD;AACA;AACA;AACA;AACA;AACA,QAAQ,sEAAc;AACtB;AACA;AACA,CAAC;AACc,uEAAQ,EAAC;;;;;;;;;;;;;ACVxB;AAAA;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,IAA0C;AAClD,QAAQ,oCAAO,OAAO;AAAA;AAAA;AAAA;AAAA,oGAAC;AACvB;AACA;AACA,QAAQ,IAA2B;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,EAAE;AACvC;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E;AACA;AACA,oDAAoD;AACpD;AACA,iFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,6BAA6B,EAAE;AAC/B,CAAC;;;;;;;;;;;;AC5ID,wB","file":"admin-general.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/admin-general.ts\");\n","import AcSection from \"./modules/ac-section\";\nimport { initPointers } from \"./modules/ac-pointer\";\nvar $ = require(\"jquery\");\n$(document).ready(function () {\n initPointers();\n document.querySelectorAll('.ac-section').forEach(function (el) {\n new AcSection(el);\n });\n});\n","import Tooltip from \"./tooltips\";\nvar $ = require(\"jquery\");\nvar Pointer = /** @class */ (function () {\n function Pointer(el) {\n this.element = el;\n this.settings = this.getDefaults();\n this.init();\n this.setInitialized();\n }\n Pointer.prototype.setInitialized = function () {\n AcPointers.add(this.element);\n };\n Pointer.prototype.getDefaults = function () {\n return {\n width: this.element.getAttribute('data-width') ? this.element.getAttribute('data-width') : 250,\n noclick: this.element.getAttribute('data-noclick') ? this.element.getAttribute('data-noclick') : false,\n position: this.getPosition()\n };\n };\n Pointer.prototype.isInitialized = function () {\n return AcPointers.isInitialized(this.element);\n };\n Pointer.prototype.init = function () {\n if (this.isInitialized()) {\n return;\n }\n // create pointer\n $(this.element).pointer({\n content: this.getRelatedHTML(),\n position: this.settings.position,\n pointerWidth: this.settings.width,\n pointerClass: this.getPointerClass()\n });\n this.initEvents();\n };\n Pointer.prototype.getPosition = function () {\n var position = {\n at: 'left top',\n my: 'right top',\n edge: 'right',\n };\n var pos = this.element.getAttribute('data-pos');\n var edge = this.element.getAttribute('data-pos_edge');\n if ('right' === pos) {\n position = {\n at: 'right middle',\n my: 'left middle',\n edge: 'left'\n };\n }\n if ('right_bottom' === pos) {\n position = {\n at: 'right middle',\n my: 'left bottom',\n edge: 'none'\n };\n }\n if ('left' === pos) {\n position = {\n at: 'left middle',\n my: 'right middle',\n edge: 'right'\n };\n }\n if (edge) {\n position.edge = edge;\n }\n return position;\n };\n Pointer.prototype.getPointerClass = function () {\n var classes = [\n 'ac-wp-pointer',\n 'wp-pointer',\n 'wp-pointer-' + this.settings.position.edge\n ];\n if (this.settings.noclick) {\n classes.push('noclick');\n }\n return classes.join(' ');\n };\n Pointer.prototype.getRelatedHTML = function () {\n var related_element = document.getElementById(this.element.getAttribute('rel'));\n return related_element ? related_element.innerHTML : '';\n };\n Pointer.prototype.initEvents = function () {\n var el = $(this.element);\n // click\n if (!this.settings.noclick) {\n el.click(function () {\n if (el.hasClass('open')) {\n el.removeClass('open');\n }\n else {\n el.addClass('open');\n }\n });\n }\n el.click(function () {\n el.pointer('open');\n });\n el.mouseenter(function () {\n el.pointer('open');\n setTimeout(function () {\n el.pointer('open');\n }, 2);\n });\n el.mouseleave(function () {\n setTimeout(function () {\n if (!el.hasClass('open') && $('.ac-wp-pointer.hover').length === 0) {\n el.pointer('close');\n }\n }, 1);\n });\n el.on('close', function () {\n setTimeout(function () {\n if (!el.hasClass('open')) {\n el.pointer('close');\n }\n });\n });\n };\n return Pointer;\n}());\nexport { Pointer };\nvar AcPointers = /** @class */ (function () {\n function AcPointers() {\n }\n AcPointers.isInitialized = function (element) {\n return this.initElements.filter(function (el) { return el === element; }).length > 0;\n };\n AcPointers.add = function (element) {\n this.initElements.push(element);\n };\n AcPointers.initElements = [];\n return AcPointers;\n}());\nexport var initPointers = function (elements) {\n if (elements === void 0) { elements = null; }\n if (!elements) {\n elements = document.querySelectorAll('.ac-pointer');\n }\n elements.forEach(function (element) {\n new Pointer(element);\n });\n $('.ac-wp-pointer').hover(function () {\n $(this).addClass('hover');\n }, function () {\n $(this).removeClass('hover');\n $('.ac-pointer').trigger('close');\n }).on('click', '.close', function () {\n $('.ac-pointer').removeClass('open');\n });\n new Tooltip();\n};\n","var Cookies = require('js-cookie');\nvar AcSection = /** @class */ (function () {\n function AcSection(el) {\n this.element = el;\n this.init();\n }\n AcSection.prototype.init = function () {\n var _this = this;\n if (this.element.classList.contains('-closable')) {\n var header = this.element.querySelector('.ac-section__header');\n if (header) {\n header.addEventListener('click', function () {\n _this.toggle();\n });\n }\n if (this.isStorable()) {\n var setting = Cookies.get(this.getCookieKey());\n if (setting !== undefined) {\n (parseInt(setting) === 1) ? this.open : this.close();\n }\n }\n }\n };\n AcSection.prototype.getCookieKey = function () {\n return \"ac-section_\" + this.getSectionId();\n };\n AcSection.prototype.getSectionId = function () {\n return this.element.dataset.section;\n };\n AcSection.prototype.isStorable = function () {\n return typeof this.element.dataset.section !== 'undefined';\n };\n AcSection.prototype.toggle = function () {\n this.isOpen() ? this.close() : this.open();\n };\n AcSection.prototype.isOpen = function () {\n return !this.element.classList.contains('-closed');\n };\n AcSection.prototype.open = function () {\n this.element.classList.remove('-closed');\n if (this.isStorable()) {\n Cookies.set(this.getCookieKey(), 1);\n }\n };\n AcSection.prototype.close = function () {\n this.element.classList.add('-closed');\n if (this.isStorable()) {\n Cookies.set(this.getCookieKey(), 0);\n }\n };\n return AcSection;\n}());\nexport default AcSection;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;\n(function (factory) {\n var registeredInModuleLoader;\n if (typeof define === 'function' && define.amd) {\n define(factory);\n registeredInModuleLoader = true;\n }\n if (typeof exports === 'object') {\n module.exports = factory();\n registeredInModuleLoader = true;\n }\n if (!registeredInModuleLoader) {\n var OldCookies = window.Cookies;\n var api = window.Cookies = factory();\n api.noConflict = function () {\n window.Cookies = OldCookies;\n return api;\n };\n }\n}(function () {\n function extend() {\n var i = 0;\n var result = {};\n for (; i < arguments.length; i++) {\n var attributes = arguments[i];\n for (var key in attributes) {\n result[key] = attributes[key];\n }\n }\n return result;\n }\n function decode(s) {\n return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n }\n function init(converter) {\n function api() { }\n function set(key, value, attributes) {\n if (typeof document === 'undefined') {\n return;\n }\n attributes = extend({\n path: '/'\n }, api.defaults, attributes);\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n }\n // We're using \"expires\" because \"max-age\" is not supported by IE\n attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n try {\n var result = JSON.stringify(value);\n if (/^[\\{\\[]/.test(result)) {\n value = result;\n }\n }\n catch (e) { }\n value = converter.write ?\n converter.write(value, key) :\n encodeURIComponent(String(value))\n .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n key = encodeURIComponent(String(key))\n .replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n .replace(/[\\(\\)]/g, escape);\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue;\n }\n stringifiedAttributes += '; ' + attributeName;\n if (attributes[attributeName] === true) {\n continue;\n }\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n return (document.cookie = key + '=' + value + stringifiedAttributes);\n }\n function get(key, json) {\n if (typeof document === 'undefined') {\n return;\n }\n var jar = {};\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var i = 0;\n for (; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var cookie = parts.slice(1).join('=');\n if (!json && cookie.charAt(0) === '\"') {\n cookie = cookie.slice(1, -1);\n }\n try {\n var name = decode(parts[0]);\n cookie = (converter.read || converter)(cookie, name) ||\n decode(cookie);\n if (json) {\n try {\n cookie = JSON.parse(cookie);\n }\n catch (e) { }\n }\n jar[name] = cookie;\n if (key === name) {\n break;\n }\n }\n catch (e) { }\n }\n return key ? jar[key] : jar;\n }\n api.set = set;\n api.get = function (key) {\n return get(key, false /* read as raw */);\n };\n api.getJSON = function (key) {\n return get(key, true /* read as json */);\n };\n api.remove = function (key, attributes) {\n set(key, '', extend(attributes, {\n expires: -1\n }));\n };\n api.defaults = {};\n api.withConverter = init;\n return api;\n }\n return init(function () { });\n}));\n","module.exports = jQuery;"],"sourceRoot":""}
assets/js/admin-page-addons.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({0:function(e,t){e.exports=jQuery},20:function(e,t,n){"use strict";n.r(t);var s=function(){function e(){this.element=document.createElement("div"),this.element.classList.add("notice"),this.dismissible=!1}return e.prototype.setMessage=function(e){return this.message=e,this},e.prototype.renderDismiss=function(){var e=this,t=document.createElement("button");t.classList.add("notice-dismiss"),t.setAttribute("type","button"),t.insertAdjacentHTML("beforeend",'<span class="screen-reader-text">Dismiss this notice.</span>'),t.addEventListener("click",(function(t){t.preventDefault(),e.element.remove()})),this.element.classList.add("is-dismissible"),this.element.insertAdjacentElement("beforeend",t)},e.prototype.renderContent=function(){this.element.insertAdjacentHTML("afterbegin",this.message)},e.prototype.makeDismissable=function(){return this.dismissible=!0,this},e.prototype.addClass=function(e){return this.element.classList.add(e),this},e.prototype.render=function(){return this.element.innerHTML="",this.renderContent(),this.dismissible&&this.renderDismiss(),this.element},e}(),o=n(0),i=n.n(o),r=function(){function e(e,t){this.element=e,this.slug=t,this.loadingState=!1,this.initEvents()}return e.prototype.getDownloadButton=function(){return this.element.querySelector("[data-install]")},e.prototype.setLoadingState=function(){var e=this.getDownloadButton();e&&(e.insertAdjacentHTML("afterend",'<span class="spinner" style="visibility: visible;"></span>'),e.classList.add("button-disabled")),this.loadingState=!0},e.prototype.removeLoadingState=function(){var e=this.getDownloadButton(),t=this.element.querySelector(".spinner");t&&t.remove(),e&&e.classList.remove("button-disabled"),this.loadingState=!1},e.prototype.initEvents=function(){var e=this,t=this.getDownloadButton();t&&t.addEventListener("click",(function(t){t.preventDefault(),e.loadingState||(e.setLoadingState(),e.download())}))},e.prototype.success=function(e){var t=this.getDownloadButton(),n=this.element.querySelector("h3"),o=new s;o.setMessage("<p>The Add-on <strong>"+n.innerHTML+"</strong> is installed.</p>").makeDismissable().addClass("updated"),document.querySelector(".ac-addons").insertAdjacentElement("beforebegin",o.render()),t&&(t.insertAdjacentHTML("beforebegin",'<span class="active">'+e+"</span>"),t.remove())},e.scrollToTop=function(e){i()("html, body").animate({scrollTop:0},e)},e.prototype.failure=function(t){var n=this.element.querySelector("h3"),o=new s;o.setMessage("<p><strong>"+n.innerHTML+"</strong>: "+t+"</p>").makeDismissable().addClass("notice-error"),document.querySelector(".ac-addons").insertAdjacentElement("beforebegin",o.render()),e.scrollToTop(200)},e.prototype.download=function(){var e=this;this.request().done((function(t){e.removeLoadingState(),t.success?e.success(t.data.status):e.failure(t.data)}))},e.prototype.request=function(){var e={action:"acp-install-addon",plugin_name:this.slug,_ajax_nonce:AC._ajax_nonce};return i.a.ajax({url:ajaxurl,method:"post",data:e})},e}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ac-addon").forEach((function(e){new r(e,e.dataset.slug)}))}))}});
1
+ !function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}({0:function(e,t){e.exports=jQuery},49:function(e,t,n){"use strict";n.r(t);var s=function(){function e(){this.element=document.createElement("div"),this.element.classList.add("notice"),this.dismissible=!1}return e.prototype.setMessage=function(e){return this.message=e,this},e.prototype.renderDismiss=function(){var e=this,t=document.createElement("button");t.classList.add("notice-dismiss"),t.setAttribute("type","button"),t.insertAdjacentHTML("beforeend",'<span class="screen-reader-text">Dismiss this notice.</span>'),t.addEventListener("click",(function(t){t.preventDefault(),e.element.remove()})),this.element.classList.add("is-dismissible"),this.element.insertAdjacentElement("beforeend",t)},e.prototype.renderContent=function(){this.element.insertAdjacentHTML("afterbegin",this.message)},e.prototype.makeDismissable=function(){return this.dismissible=!0,this},e.prototype.addClass=function(e){return this.element.classList.add(e),this},e.prototype.render=function(){return this.element.innerHTML="",this.renderContent(),this.dismissible&&this.renderDismiss(),this.element},e}(),o=n(0),i=n.n(o),r=function(){function e(e,t){this.element=e,this.slug=t,this.loadingState=!1,this.initEvents()}return e.prototype.getDownloadButton=function(){return this.element.querySelector("[data-install]")},e.prototype.setLoadingState=function(){var e=this.getDownloadButton();e&&(e.insertAdjacentHTML("afterend",'<span class="spinner" style="visibility: visible;"></span>'),e.classList.add("button-disabled")),this.loadingState=!0},e.prototype.removeLoadingState=function(){var e=this.getDownloadButton(),t=this.element.querySelector(".spinner");t&&t.remove(),e&&e.classList.remove("button-disabled"),this.loadingState=!1},e.prototype.initEvents=function(){var e=this,t=this.getDownloadButton();t&&t.addEventListener("click",(function(t){t.preventDefault(),e.loadingState||(e.setLoadingState(),e.download())}))},e.prototype.success=function(e){var t=this.getDownloadButton(),n=this.element.querySelector("h3"),o=new s;o.setMessage("<p>The Add-on <strong>"+n.innerHTML+"</strong> is installed.</p>").makeDismissable().addClass("updated"),document.querySelector(".ac-addons").insertAdjacentElement("beforebegin",o.render()),t&&(t.insertAdjacentHTML("beforebegin",'<span class="active">'+e+"</span>"),t.remove())},e.scrollToTop=function(e){i()("html, body").animate({scrollTop:0},e)},e.prototype.failure=function(t){var n=this.element.querySelector("h3"),o=new s;o.setMessage("<p><strong>"+n.innerHTML+"</strong>: "+t+"</p>").makeDismissable().addClass("notice-error"),document.querySelector(".ac-addons").insertAdjacentElement("beforebegin",o.render()),e.scrollToTop(200)},e.prototype.download=function(){var e=this;this.request().done((function(t){e.removeLoadingState(),t.success?e.success(t.data.status):e.failure(t.data)}))},e.prototype.request=function(){var e={action:"acp-install-addon",plugin_name:this.slug,_ajax_nonce:AC._ajax_nonce};return i.a.ajax({url:ajaxurl,method:"post",data:e})},e}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ac-addon").forEach((function(e){new r(e,e.dataset.slug)}))}))}});
assets/js/admin-page-addons.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-page-addons.ts","webpack:///./js/modules/addon-download.ts","webpack:///./js/modules/notice.ts","webpack:///external \"jQuery\""],"names":["document","addEventListener","querySelectorAll","forEach","element","AddonDownload","dataset","slug","el","loadingState","initEvents","prototype","getDownloadButton","querySelector","setLoadingState","button","insertAdjacentHTML","classList","add","removeLoadingState","spinner","remove","_this","e","preventDefault","download","success","status","title","notice","WPNotice","setMessage","innerHTML","makeDismissable","addClass","insertAdjacentElement","render","scrollToTop","ms","$","animate","scrollTop","failure","message","request","done","response","data","action","plugin_name","_ajax_nonce","AC","ajax","url","ajaxurl","method","Notice","createElement","dismissible","renderDismiss","setAttribute","renderContent","className"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AACAA,QAAQ,CAACC,gBAAT,CAA0B,kBAA1B,EAA8C,YAAY;AACtDD,UAAQ,CAACE,gBAAT,CAA0B,WAA1B,EAAuCC,OAAvC,CAA+C,UAAUC,OAAV,EAAmB;AAC9D,QAAIC,qEAAJ,CAAkBD,OAAlB,EAA2BA,OAAO,CAACE,OAAR,CAAgBC,IAA3C;AACH,GAFD;AAGH,CAJD,E;;;;;;;;;;;;ACDA;AAAA;AAAA;AAAA;AAAA;CACA;;AACA;;AACA,IAAIF,aAAa;AAAG;AAAe,YAAY;AAC3C,WAASA,aAAT,CAAuBG,EAAvB,EAA2BD,IAA3B,EAAiC;AAC7B,SAAKH,OAAL,GAAeI,EAAf;AACA,SAAKD,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AKvD,OAAZ;AACH,GAPD;;AAQA,SAAOoD,MAAP;AACH,CA3C2B,EAA5B;;AA4CeA,qEAAf,E;;;;;;;;;;;AC5CA,wB","file":"admin-page-addons.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/admin-page-addons.ts\");\n","import { AddonDownload } from \"./modules/addon-download\";\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n document.querySelectorAll('.ac-addon').forEach(function (element) {\n new AddonDownload(element, element.dataset.slug);\n });\n});\n","import WPNotice from \"./notice\";\n// @ts-ignore\nimport $ from 'jquery';\nvar AddonDownload = /** @class */ (function () {\n function AddonDownload(el, slug) {\n this.element = el;\n this.slug = slug;\n this.loadingState = false;\n this.initEvents();\n }\n AddonDownload.prototype.getDownloadButton = function () {\n return this.element.querySelector('[data-install]');\n };\n AddonDownload.prototype.setLoadingState = function () {\n var button = this.getDownloadButton();\n if (button) {\n button.insertAdjacentHTML('afterend', '<span class=\"spinner\" style=\"visibility: visible;\"></span>');\n button.classList.add('button-disabled');\n }\n this.loadingState = true;\n };\n AddonDownload.prototype.removeLoadingState = function () {\n var button = this.getDownloadButton();\n var spinner = this.element.querySelector('.spinner');\n if (spinner) {\n spinner.remove();\n }\n if (button) {\n button.classList.remove('button-disabled');\n }\n this.loadingState = false;\n };\n AddonDownload.prototype.initEvents = function () {\n var _this = this;\n var button = this.getDownloadButton();\n if (button) {\n button.addEventListener('click', function (e) {\n e.preventDefault();\n if (_this.loadingState) {\n return;\n }\n _this.setLoadingState();\n _this.download();\n });\n }\n };\n AddonDownload.prototype.success = function (status) {\n var button = this.getDownloadButton();\n var title = this.element.querySelector('h3');\n var notice = new WPNotice();\n notice.setMessage(\"<p>The Add-on <strong>\" + title.innerHTML + \"</strong> is installed.</p>\")\n .makeDismissable()\n .addClass('updated');\n document.querySelector('.ac-addons').insertAdjacentElement('beforebegin', notice.render());\n if (button) {\n button.insertAdjacentHTML('beforebegin', \"<span class=\\\"active\\\">\" + status + \"</span>\");\n button.remove();\n }\n };\n AddonDownload.scrollToTop = function (ms) {\n $('html, body').animate({\n scrollTop: 0\n }, ms);\n };\n AddonDownload.prototype.failure = function (message) {\n var title = this.element.querySelector('h3');\n var notice = new WPNotice();\n notice.setMessage(\"<p><strong>\" + title.innerHTML + \"</strong>: \" + message + \"</p>\")\n .makeDismissable()\n .addClass('notice-error');\n document.querySelector('.ac-addons').insertAdjacentElement('beforebegin', notice.render());\n AddonDownload.scrollToTop(200);\n };\n AddonDownload.prototype.download = function () {\n var _this = this;\n var request = this.request();\n request.done(function (response) {\n _this.removeLoadingState();\n if (response.success) {\n _this.success(response.data.status);\n }\n else {\n _this.failure(response.data);\n }\n });\n };\n AddonDownload.prototype.request = function () {\n var data = {\n action: 'acp-install-addon',\n plugin_name: this.slug,\n _ajax_nonce: AC._ajax_nonce\n };\n return $.ajax({\n url: ajaxurl,\n method: 'post',\n data: data\n });\n };\n return AddonDownload;\n}());\nexport { AddonDownload };\n","var Notice = /** @class */ (function () {\n function Notice() {\n this.element = document.createElement('div');\n this.element.classList.add('notice');\n this.dismissible = false;\n }\n Notice.prototype.setMessage = function (message) {\n this.message = message;\n return this;\n };\n Notice.prototype.renderDismiss = function () {\n var _this = this;\n var button = document.createElement('button');\n button.classList.add('notice-dismiss');\n button.setAttribute('type', 'button');\n button.insertAdjacentHTML('beforeend', \"<span class=\\\"screen-reader-text\\\">Dismiss this notice.</span>\");\n button.addEventListener('click', function (e) {\n e.preventDefault();\n _this.element.remove();\n });\n this.element.classList.add('is-dismissible');\n this.element.insertAdjacentElement('beforeend', button);\n };\n Notice.prototype.renderContent = function () {\n this.element.insertAdjacentHTML('afterbegin', this.message);\n };\n Notice.prototype.makeDismissable = function () {\n this.dismissible = true;\n return this;\n };\n Notice.prototype.addClass = function (className) {\n this.element.classList.add(className);\n return this;\n };\n Notice.prototype.render = function () {\n this.element.innerHTML = '';\n this.renderContent();\n if (this.dismissible) {\n this.renderDismiss();\n }\n return this.element;\n };\n return Notice;\n}());\nexport default Notice;\n","module.exports = jQuery;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-page-addons.ts","webpack:///./js/modules/addon-download.ts","webpack:///./js/modules/notice.ts","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAyD;AACzD;AACA;AACA,YAAY,qEAAa;AACzB,KAAK;AACL,CAAC;;;;;;;;;;;;;ACLD;AAAA;AAAA;AAAA;AAAA;AAAgC;AAChC;AACuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oGAAoG;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,yBAAyB,+CAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,6CAAC;AACT;AACA,SAAS;AACT;AACA;AACA;AACA,yBAAyB,+CAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,6CAAC;AAChB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACwB;;;;;;;;;;;;;ACpGzB;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,qEAAM,EAAC;;;;;;;;;;;;AC5CtB,wB","file":"admin-page-addons.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/admin-page-addons.ts\");\n","import { AddonDownload } from \"./modules/addon-download\";\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n document.querySelectorAll('.ac-addon').forEach(function (element) {\n new AddonDownload(element, element.dataset.slug);\n });\n});\n","import WPNotice from \"./notice\";\n// @ts-ignore\nimport $ from 'jquery';\nvar AddonDownload = /** @class */ (function () {\n function AddonDownload(el, slug) {\n this.element = el;\n this.slug = slug;\n this.loadingState = false;\n this.initEvents();\n }\n AddonDownload.prototype.getDownloadButton = function () {\n return this.element.querySelector('[data-install]');\n };\n AddonDownload.prototype.setLoadingState = function () {\n var button = this.getDownloadButton();\n if (button) {\n button.insertAdjacentHTML('afterend', '<span class=\"spinner\" style=\"visibility: visible;\"></span>');\n button.classList.add('button-disabled');\n }\n this.loadingState = true;\n };\n AddonDownload.prototype.removeLoadingState = function () {\n var button = this.getDownloadButton();\n var spinner = this.element.querySelector('.spinner');\n if (spinner) {\n spinner.remove();\n }\n if (button) {\n button.classList.remove('button-disabled');\n }\n this.loadingState = false;\n };\n AddonDownload.prototype.initEvents = function () {\n var _this = this;\n var button = this.getDownloadButton();\n if (button) {\n button.addEventListener('click', function (e) {\n e.preventDefault();\n if (_this.loadingState) {\n return;\n }\n _this.setLoadingState();\n _this.download();\n });\n }\n };\n AddonDownload.prototype.success = function (status) {\n var button = this.getDownloadButton();\n var title = this.element.querySelector('h3');\n var notice = new WPNotice();\n notice.setMessage(\"<p>The Add-on <strong>\" + title.innerHTML + \"</strong> is installed.</p>\")\n .makeDismissable()\n .addClass('updated');\n document.querySelector('.ac-addons').insertAdjacentElement('beforebegin', notice.render());\n if (button) {\n button.insertAdjacentHTML('beforebegin', \"<span class=\\\"active\\\">\" + status + \"</span>\");\n button.remove();\n }\n };\n AddonDownload.scrollToTop = function (ms) {\n $('html, body').animate({\n scrollTop: 0\n }, ms);\n };\n AddonDownload.prototype.failure = function (message) {\n var title = this.element.querySelector('h3');\n var notice = new WPNotice();\n notice.setMessage(\"<p><strong>\" + title.innerHTML + \"</strong>: \" + message + \"</p>\")\n .makeDismissable()\n .addClass('notice-error');\n document.querySelector('.ac-addons').insertAdjacentElement('beforebegin', notice.render());\n AddonDownload.scrollToTop(200);\n };\n AddonDownload.prototype.download = function () {\n var _this = this;\n var request = this.request();\n request.done(function (response) {\n _this.removeLoadingState();\n if (response.success) {\n _this.success(response.data.status);\n }\n else {\n _this.failure(response.data);\n }\n });\n };\n AddonDownload.prototype.request = function () {\n var data = {\n action: 'acp-install-addon',\n plugin_name: this.slug,\n _ajax_nonce: AC._ajax_nonce\n };\n return $.ajax({\n url: ajaxurl,\n method: 'post',\n data: data\n });\n };\n return AddonDownload;\n}());\nexport { AddonDownload };\n","var Notice = /** @class */ (function () {\n function Notice() {\n this.element = document.createElement('div');\n this.element.classList.add('notice');\n this.dismissible = false;\n }\n Notice.prototype.setMessage = function (message) {\n this.message = message;\n return this;\n };\n Notice.prototype.renderDismiss = function () {\n var _this = this;\n var button = document.createElement('button');\n button.classList.add('notice-dismiss');\n button.setAttribute('type', 'button');\n button.insertAdjacentHTML('beforeend', \"<span class=\\\"screen-reader-text\\\">Dismiss this notice.</span>\");\n button.addEventListener('click', function (e) {\n e.preventDefault();\n _this.element.remove();\n });\n this.element.classList.add('is-dismissible');\n this.element.insertAdjacentElement('beforeend', button);\n };\n Notice.prototype.renderContent = function () {\n this.element.insertAdjacentHTML('afterbegin', this.message);\n };\n Notice.prototype.makeDismissable = function () {\n this.dismissible = true;\n return this;\n };\n Notice.prototype.addClass = function (className) {\n this.element.classList.add(className);\n return this;\n };\n Notice.prototype.render = function () {\n this.element.innerHTML = '';\n this.renderContent();\n if (this.dismissible) {\n this.renderDismiss();\n }\n return this.element;\n };\n return Notice;\n}());\nexport default Notice;\n","module.exports = jQuery;"],"sourceRoot":""}
assets/js/admin-page-columns.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)}([function(t,e){t.exports=jQuery},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,i){n(t!=e,i)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,i){n(t==e,i)},n.ok=n,t.exports=n},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=s(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),s=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var i=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();e.a=i},function(t,e,n){"use strict";var i=n(2),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},function(t,e,n){var i=n(6),o=n(7),s=n(1);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);var r=o(this._name+"('"+t.toString()+"')"),a=this._listeners[t];return a&&a.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},r.prototype.prependListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},r.prototype.once=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.prependOnceListener=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.removeListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(i(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var i=e.length,o=0;o<i;o++)n.push(e[o]);return n},r.prototype._emit=function(t,e,n,i){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==i?[e].concat(n,i):[e].concat(n));for(var o=t.length,s=0;s<o;s++){var r=t[s];r.apply(r,n)}}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o=t.length;if(!(e>=o||0===n)){var s=o-(n=e+n>o?o-e:n);for(i=e;i<s;++i)t[i]=t[i+n];t.length=s}}},function(t,e,n){var i,o=n(8)(),s=n(1);r.disabled=!0;try{i=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!i.mark}catch(t){}function r(t){if(s.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return a;var e=(1e4*i.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function c(s){var r="end-"+e+"-"+t;i.mark(r),o.push((function(){var o=null;try{var a=t+" ["+e+"]";i.measure(a,n,r),i.clearMarks(n),i.clearMarks(r)}catch(t){o=t}s&&s(o,t)}))}return i.mark(n),c.uuid=e,c}function a(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},function(t,e,n){var i=n(1),o="undefined"!=typeof window;function s(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}s.prototype.push=function(t){i.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},s.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},s.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),t=window._nanoScheduler):t=new s,t}},,function(t,e,n){"use strict";(function(t){var i=n(5),o=function(){function t(t,e){this.meta_type=t,this.post_type=e,this.loading=!1,this.data=!1,this.events=i()}return t.prototype.retrieveOptions=function(){return this.loading=!0,jQuery.ajax({url:ajaxurl,dataType:"json",method:"post",data:{action:"ac_custom_field_options",post_type:this.post_type,meta_type:this.meta_type,_ajax_nonce:AC._ajax_nonce}})},t.prototype.getOptions=function(){var t=this,e=jQuery.Deferred();return this.data?e.resolve(this.data):this.loading?this.events.on("loaded",(function(){e.resolve(t.data)})):this.retrieveOptions().done((function(n){n.success||e.reject(),t.data=n.data.results,t.events.emit("loaded"),e.resolve(t.data)})),e.promise()},t}(),s=function(){function e(t){this.column=t,this.setting=t.$el[0].querySelector(".ac-column-setting--custom_field"),this.setting&&this.setting.querySelector(".custom_field")&&this.bindEvents()}return e.prototype.bindEvents=function(){var e,n,i,s=this.setting.querySelector(".custom_field"),r=(e=s.dataset.type,n=s.dataset.post_type,i="custom_field_"+e+"_"+n,"undefined"==typeof AC_Requests&&(t.AC_Requests={}),AC_Requests.hasOwnProperty(i)||(AC_Requests[i]=new o(e,n)),AC_Requests[i]),a=this.column.el.querySelectorAll('[data-setting="edit"][data-indicator-toggle]').length>0;s.querySelectorAll("optgroup").forEach((function(t){t.remove()})),s.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((function(t){t.remove()})),r.getOptions().done((function(t){jQuery(s).ac_select2({theme:"acs2",width:"100%",tags:a,dropdownCssClass:"-customfields",data:t})}))},e}();e.a=function(t){t.settings.customfield=new s(t)}}).call(this,n(13))},,function(t,e,n){t.exports=n(17)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};let n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}()},function(t,e){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)},,function(t,e,n){"use strict";n.r(e);var i=n(5),o=function(){function t(t){this.list_screens=t,this.processed=[],this.errors=[],this.success=[],this.events=i()}return t.prototype.doAjaxCall=function(t){return jQuery.ajax({url:t.screen_link,method:"get"})},t.prototype.run=function(){var t=this;Object.keys(this.list_screens).forEach((function(e){t.processListScreen(t.list_screens[e])}))},t.prototype.onFinish=function(){this.success.length===Object.keys(this.list_screens).length&&this.events.emit("success"),this.errors.length>0&&this.events.emit("error")},t.prototype.checkFinish=function(){this.processed.length===Object.keys(this.list_screens).length&&this.onFinish()},t.prototype.processListScreen=function(t){var e=this;return this.doAjaxCall(t).done((function(n){"ac_success"===n?e.success.push(t):e.errors.push(t)})).fail((function(){e.errors.push(t)})).always((function(){e.processed.push(t),e.checkFinish()}))},t}(),s=function(){function t(t){this.list_screens=t,this.run()}return t.prototype.run=function(){var t;if(Object.keys(this.list_screens).length>0)if(this.list_screens.hasOwnProperty(AC.list_screen)){var e=new o(((t={})[AC.list_screen]=this.list_screens[AC.list_screen],t));e.run(),e.events.on("error",(function(){document.querySelectorAll(".ac-loading-msg-wrapper").forEach((function(t){return t.remove()})),document.querySelectorAll(".menu").forEach((function(t){return t.classList.remove("hidden")}))})),e.events.on("success",(function(){window.location=location.href+"&t="+Date.now()}))}else{new o(this.list_screens).run()}},t}(),r="closed",a="open",c=function(){function t(t){this.$el=t,this.el=t[0],this.settings=[],this.state=r,this._type=this.$el.data("type")}return Object.defineProperty(t.prototype,"name",{get:function(){return this.$el.data("column-name")},set:function(t){this.$el.data("column-name",t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this.$el.data("type",t)},enumerable:!1,configurable:!0}),t.prototype.isOriginal=function(){return 1===this.$el.data("original")},t.prototype.isDisabled=function(){return this.$el.hasClass("disabled")},t.prototype.disable=function(){return this.$el.addClass("disabled"),this},t.prototype.enable=function(){return this.$el.removeClass("disabled"),this},t.prototype.initNewInstance=function(){var t="_new_column_"+AC.Column.getNewIncementalName(),e=this.name;return this.$el.find("input, select, label").each((function(n,i){var o=jQuery(i);o.attr("name")&&o.attr("name",o.attr("name").replace("columns["+e+"]","columns["+t+"]")),o.attr("id")&&o.attr("id",o.attr("id").replace("-"+e+"-","-"+t+"-"))})),this.name=t,AC.incremental_column_name++,this},t.prototype.bindEvents=function(){var t=this;return t.$el.data("column",t),Object.keys(AC.Column.events).forEach((function(e){t.isBound(e)||(AC.Column.events[e](t),t.bind(e))})),this.bindSettings(),jQuery(document).trigger("AC_Column_InitSettings",[t]),this},t.prototype.bindSettings=function(){var t=this;Object.keys(AC.Column.settings).forEach((function(e){t.isBound(e)||(AC.Column.settings[e](t),t.bind(e))}))},t.prototype.isBound=function(t){return this.$el.data(t)},t.prototype.bind=function(t){this.$el.data(t,!0)},t.prototype.destroy=function(){this.$el.remove()},t.prototype.remove=function(t){void 0===t&&(t=350);var e=this;this.$el.addClass("deleting").animate({opacity:0,height:0},t,(function(){e.destroy()}))},t.prototype.getState=function(){return this.state},t.prototype.toggle=function(t){void 0===t&&(t=150),this.getState()===a?this.close(t):this.open(t)},t.prototype.close=function(t){void 0===t&&(t=0),this.$el.removeClass("opened").find(".ac-column-body").slideUp(t),this.state=r},t.prototype.open=function(t){void 0===t&&(t=0),this.$el.addClass("opened").find(".ac-column-body").slideDown(t),this.state=a},t.prototype.showMessage=function(t){this.$el.find(".ac-column-setting--type .msg").html(t).show()},t.prototype.switchToType=function(t){var e=this;return jQuery.ajax({url:ajaxurl,method:"post",dataType:"json",data:{action:"ac-columns",id:"select",type:t,data:AdminColumns.Form.serialize(),current_original_columns:AdminColumns.Form.originalColumns(),original_columns:AC.original_columns,_ajax_nonce:AC._ajax_nonce},success:function(n){if(!0===n.success){var i=jQuery(n.data);e.$el.replaceWith(i),e.$el=i,e.el=i[0],e._type=t,e.initNewInstance(),e.bindEvents(),e.open(),jQuery(document).trigger("AC_Column_Change",[e])}else e.showMessage(n.data.error)}})},t.prototype.refresh=function(){var t=this,e=this.$el.find(":input").serializeArray(),n={action:"ac-columns",id:"refresh",_ajax_nonce:AC._ajax_nonce,data:AdminColumns.Form.serialize(),column_name:this.name,original_columns:AC.original_columns};return jQuery.each(n,(function(t,n){e.push({name:t,value:n})})),jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){if(!0===e.success){var n=jQuery(e.data);t.$el.replaceWith(n),t.$el=n,t.el=n[0],t.bindEvents(),t.getState()===a&&t.open(),jQuery(document).trigger("AC_Column_Refresh",[t])}}})},t.prototype.create=function(){return this.initNewInstance(),this.bindEvents(),jQuery(document).trigger("AC_Column_Created",[this]),this},t.prototype.clone=function(){var e=this.$el.clone();e.data("column-name",this.$el.data("column-name"));var n=new t(e);return n.initNewInstance(),n.bindEvents(),n},t}(),u=function(){function t(t){this.form=t,this.$form=jQuery(t),this.$column_container=this.$form.find(".ac-columns"),this.$container=jQuery("#cpac .ac-admin"),this.columns={},this._validators=[],jQuery(document).trigger("AC_Form_Loaded")}return t.prototype.init=function(){this.initColumns(),this.bindFormEvents(),this.bindOrdering(),this.$form.hasClass("-disabled")&&this.disableFields(),jQuery(document).trigger("AC_Form_Ready",this)},t.prototype.bindOrdering=function(){this.$form.hasClass("ui-sortable")?this.$form.sortable("refresh"):this.$form.sortable({items:".ac-column",handle:".column_sort"})},t.prototype.originalColumns=function(){var t=this,e=[];return Object.keys(t.columns).forEach((function(n){var i=t.columns[n];i.isOriginal()&&e.push(i.type)})),e},t.prototype.validateForm=function(){var t=this,e=!0;return this._validators.forEach((function(n){e=n.call(t,t)})),e},t.prototype.addValidator=function(t){this._validators.push(t)},t.prototype.bindFormEvents=function(){var t=this,e=jQuery(".sidebox a.submit, .column-footer a.submit");e.on("click",(function(){t.validateForm()&&(e.attr("disabled","disabled"),t.$container.addClass("saving"),t.submitForm().always((function(){e.removeAttr("disabled","disabled"),t.$container.removeClass("saving")})))})),t.$container.find(".add_column").on("click",(function(){t.addColumn()}));var n=jQuery("#cpac .ac-boxes");n.hasClass("disabled")&&n.find(".ac-column").each((function(t,e){jQuery(e).data("column").disable(),jQuery(e).find("input, select").prop("disabled",!0)})),jQuery("a[data-clear-columns]").on("click",(function(){t.resetColumns()}))},t.prototype.initColumns=function(){var t=this;t.columns={},this.$form.find(".ac-column").each((function(){var e=jQuery(this),n=new c(e);n.bindEvents(),e.data("column",n),t.columns[n.name]=n}))},t.prototype.reindexColumns=function(){var t=this;t.columns={},this.$form.find(".ac-column").each((function(){var e=jQuery(this).data("column");t.columns[e.name]=e}))},t.prototype.resetColumns=function(){var t=this;Object.keys(this.columns).forEach((function(e){t.columns[e].destroy()}))},t.prototype.serialize=function(){return this.$form.serialize()},t.prototype.disableFields=function(){var t=document.querySelector(this.form);if(t)for(var e=t.elements,n=0;n<e.length;n++)e[n].readOnly=!0,e[n].setAttribute("disabled",!0)},t.prototype.enableFields=function(){},t.prototype.submitForm=function(){var t=this,e=jQuery.post(ajaxurl,{action:"ac-columns",id:"save",_ajax_nonce:AC._ajax_nonce,data:this.serialize()},(function(e){e&&(e.success?(t.showMessage(e.data,"updated"),t.$container.addClass("stored")):e.data&&t.showMessage(e.data.message,"notice notice-warning"))}),"json");return e.fail((function(e){t.showMessage(AC.i18n.errors.save_settings,"notice notice-warning")})),jQuery(document).trigger("AC_Form_AfterUpdate",[t.$container]),e},t.prototype.showMessage=function(t,e){void 0===e&&(e="updated");var n=jQuery('<div class="ac-message hidden '+e+'"><p>'+t+"</p></div>");this.$container.find(".ac-message").stop().remove(),this.$container.find(".ac-admin__main").prepend(n),n.slideDown()},t.prototype.cloneColumn=function(t){return this._addColumnToForm(new c(t).clone(),t.hasClass("opened"),t)},t.prototype.addColumn=function(){var t=jQuery("#add-new-column-template").find(".ac-column").clone(),e=new c(t).create();return this._addColumnToForm(e)},t.prototype.removeColumn=function(t){this.columns[t]&&(this.columns[t].remove(),delete this.columns[t])},t.prototype.getListScreen=function(){return this.$form.find('input[name="list_screen"]').val()},t.prototype.getListScreenID=function(){return this.$form.find('input[name="list_screen_id"]').val()},t.prototype.getTitle=function(){return this.$form.find('input[name="title"]').val()},t.prototype.getColumnSettings=function(){return this.$form.find('[name^="columns["]').serialize()},t.prototype._addColumnToForm=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=null),this.columns[t.name]=t,n?t.$el.insertAfter(n):this.$column_container.append(t.$el),e&&t.open(),t.$el.hide().slideDown(),jQuery(document).trigger("AC_Column_Added",[t]),l(t.$el)||jQuery("html, body").animate({scrollTop:t.$el.offset().top-58},300),t},t}(),l=function(t){var e=t.offset().top,n=e+t.outerHeight(),i=jQuery(window).scrollTop(),o=i+jQuery(window).height();return n>i&&e<o},d=function(){function t(){this.events={},this.settings={},this.incremental_name=0}return t.prototype.registerSetting=function(t,e){var n="s_"+t;return this.settings[n]&&console.error("Setting key already exists: "+t),this.settings[n]=e,this},t.prototype.registerEvent=function(t,e){var n="e_"+t;return this.settings[n]&&console.error("Event key already exists: "+n),this.events[n]=e,this},t.prototype.getNewIncementalName=function(){var t=this.incremental_name;return this.incremental_name++,t},t}(),h=n(3),p=function(){function t(){}return t.prototype.init=function(){var t=jQuery;t("#ac_list_screen").on("change",(function(){t(".view-link").hide(),t(this).parents("form").submit(),t(this).prop("disabled",!0).next(".spinner").css("display","inline-block")}))},t}(),f=function(){function t(t){this.$el=jQuery(t),this.init()}return t.prototype.init=function(){var t=this.$el;t.find("#feedback-choice a.no").click((function(e){e.preventDefault(),t.find("#feedback-choice").slideUp(),t.find("#feedback-support").slideDown()})),t.find("#feedback-choice a.yes").click((function(e){e.preventDefault(),t.find("#feedback-choice").slideUp(),t.find("#feedback-rate").slideDown()}))},t}(),m=n(4),g=function(t){t.$el.find('[data-toggle="column"]').click((function(e){e.preventDefault(),t.toggle()})).css("cursor","pointer")},y=function(t){t.$el.find(".remove-button").click((function(e){e.preventDefault(),AdminColumns.Form.removeColumn(t.name)}))},v=function(t){t.$el.find(".clone-button").click((function(e){e.preventDefault(),t.isOriginal()||AdminColumns.Form.cloneColumn(t.$el)}))},_=function(t){var e=jQuery;t.$el.find('[data-refresh="column"]').on("change",(function(){e(document).trigger("AC.column.prerefresh",t.$el),t.$el.addClass("loading"),setTimeout((function(){t.refresh().always((function(){t.$el.removeClass("loading")})).fail((function(){t.showMessage(AC.i18n.errors.loading_column)}))}),200)}))},b=function(t){var e=jQuery;t.$el.find("select.ac-setting-input_type").change((function(){t.$el.addClass("loading"),t.switchToType(e(this).val()).always((function(){t.$el.removeClass("loading"),AdminColumns.Form.reindexColumns()})).fail((function(){t.showMessage(AC.i18n.errors.loading_column)}))}))},C=function(t){var e=t.$el;e.find(".ac-column-header [data-indicator-toggle]").each((function(){var t=jQuery,n=t(this),i=t(this).data("setting"),o=e.find(".ac-column-setting[data-setting="+i+"]").find(".col-input:first .ac-setting-input:first input[type=radio]");n.unbind("click").on("click",(function(i){i.preventDefault(),e.hasClass("disabled")||(n.toggleClass("on"),t(this).hasClass("on")?o.filter("[value=on]").prop("checked",!0).trigger("click").trigger("change"):o.filter("[value=off]").prop("checked",!0).trigger("click").trigger("change"))})),o.on("change",(function(){e.hasClass("disabled")||("on"===o.filter(":checked").val()?n.addClass("on"):n.removeClass("on"))}))}))},w=function(t){var e=t.$el;e.find('select[data-label="update"]').change((function(){var t=e.find("input.ac-setting-input_label"),n=jQuery(this).find("option:selected").text();t.val(n),t.trigger("change")})),setTimeout((function(){var t=e.find(".column_label .toggle");jQuery.trim(t.html())&&t.width()<1&&t.html(e.find(".column_type .inner").html())}),50)},j=function(t){var e=t.$el;e.find(".ac-column-setting--label input").bind("keyup change",(function(){var t=jQuery(this).val();jQuery(this).closest(".ac-column").find("td.column_label .inner > a.toggle").html(t)})).trigger("change"),e.find(".ac-column-body .col-label .label").hover((function(){jQuery(this).parents(".col-label").find("div.tooltip").show()}),(function(){jQuery(this).parents(".col-label").find("div.tooltip").hide()}))},S=function(t){var e=jQuery,n=t.$el;n.find("[data-trigger] label").on("click",(function(){var t=e(this).closest("td.input").data("trigger"),i=e("input",this).val(),o=n.find('[data-indicator-id="'+t+'"]').removeClass("on");"on"===i&&o.addClass("on");var s=n.find('[data-handle="'+t+'"]').addClass("hide");"on"===i&&s.removeClass("hide")})),n.find("[data-trigger]").each((function(){var t=e(this).data("trigger"),i=n.find('[data-handle="'+t+'"]').addClass("hide");"on"===e("input:checked",this).val()&&i.removeClass("hide")}))},E=function(){function t(t){this.column=t,this.setting=t.$el[0].querySelector(".ac-column-setting--image"),this.setting&&(this.field=this.setting.querySelector(".ac-setting-input select"),this.initState(),this.bindEvents())}return t.prototype.getValue=function(){return this.field.value},t.prototype.bindEvents=function(){var t=this;this.field.addEventListener("change",(function(e){t.initState()}))},t.prototype.initState=function(){"cpac-custom"===this.getValue()?this.showSubsettings():this.hideSubsettings()},t.prototype.hideSubsettings=function(){for(var t=this.setting.querySelectorAll(".ac-column-setting"),e=0;e<t.length;++e)t[e].style.display="none"},t.prototype.showSubsettings=function(){for(var t=this.setting.querySelectorAll(".ac-column-setting"),e=0;e<t.length;++e)t[e].style.display="table"},t.prototype.setValue=function(t){return this.field.value=t,this.trigger(this.field,"change"),this},t.prototype.setWidth=function(t){var e=this.setting.querySelector('.ac-column-setting [name*="image_size_w"]');return e.value=t,this.trigger(e,"change"),this},t.prototype.setHeight=function(t){var e=this.setting.querySelector('.ac-column-setting [name*="image_size_h"]');return e.value=t,this.trigger(e,"change"),this},t.prototype.setSize=function(t,e){return this.setWidth(t),this.setHeight(e),this},t.prototype.trigger=function(t,e){return t.dispatchEvent(new Event(e)),this},t}(),A=function(t){t.settings.image=new E(t)},k=function(t){var e=jQuery,n="on",i=".ac-column-setting";function o(t,e){var o=e.filter(":checked").val(),s=t.find(i);n===o?s.show():s.hide()}t.$el.find(".ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit").each((function(){var t=e(this),n=e(this).find('.ac-setting-input input[type="radio"]');o(t,n),n.on("change",(function(){o(t,n)}))}))},x=function(t){var e=jQuery;t.$el.find(".ac-column-setting--date").each((function(){var t=e(this),n=t.find("input.custom"),i=t.find(".ac-setting-input-date__custom"),o=t.find(".ac-setting-input-date__value"),s=t.find(".ac-setting-input-date__example"),r=t.find("input[type=radio]:checked"),a=t.find(".help-msg");t.find("input[type=radio]").on("change",(function(){var t=e(this),n=t.closest("label"),r=n.find("code").text(),c=n.find(".ac-setting-input-date__more").html();r&&i.val(r).trigger("change"),t.hasClass("diff")&&(i.val(""),s.text("")),i.prop("disabled",!0),t.hasClass("custom")&&(t.val(i.val()),i.prop("disabled",!1),a.show()),a.hide(),c&&a.html(c).show(),o.val(t.val())})),i.on("change",(function(){s.html('<span class="spinner is-active"></span>'),n.val(i.val());var t=e(this).val();t?(e.ajax({url:ajaxurl,method:"post",data:{action:"date_format",date:t}}).done((function(t){s.text(t)})),o.val(t)):s.text("")})),r.trigger("change"),0===r.length&&n.trigger("click")}))},$=function(t){t.$el.find(".ac-column-setting--pro").each((function(){var t=jQuery(this);t.find("input").on("click",(function(e){e.preventDefault(),t.find("[data-ac-open-modal]").trigger("click")}))}))};jQuery.fn.column_width_slider=function(){var t=jQuery,e=t(this).find(".ac-setting-input-width"),n=e.find(".description input"),i=e.find(".unit-select input").filter(":checked").val(),o=n.val(),s=e.find(".width-slider"),r=t(this).find(".ac-column-header .ac-column-heading-setting--width");"%"===i&&o>100&&(o=100),n.val(o),s.slider({range:"min",min:0,max:"%"===i?100:500,value:o,slide:function(t,e){n.val(e.value),r.trigger("update"),n.trigger("validate")}})};var q=function(t){var e=jQuery,n=t.$el;n.find(".ac-column-setting--width").each((function(){n.column_width_slider();var t=n.find(".ac-column-header .ac-column-heading-setting--width");t.on("update",(function(){var t=n.find(".ac-setting-input-width .description input").val(),e=n.find(".ac-setting-input-width .description .unit").text();t>0?jQuery(this).text(t+e):jQuery(this).text("")})),n.find(".ac-setting-input-width .unit-select label").on("click",(function(){n.find("span.unit").text(e(this).find("input").val()),n.column_width_slider(),t.trigger("update")}));var i=n.find(".ac-setting-input-width .description input").on("keyup",(function(){n.column_width_slider(),jQuery(this).trigger("validate"),t.trigger("update")})).on("validate",(function(){var t=i.val(),n=e.trim(t);jQuery.isNumeric(n)||(n=n.replace(/\D/g,"")),n.length>3&&(n=n.substring(0,3)),n<=0&&(n=""),n!==t&&i.val(n)}))}))},L=function(){function t(t){this.column=t,this.setting=t.el.querySelector(".ac-column-setting--label"),this.iconpicker=this.setting.querySelector(".-iconpicker"),this.iconpicker&&(this._dashicon=!1,this.modal=AdminColumns.Modals.register(new h.a(this.setting.querySelector(".-iconpicker"))),this.field=this.setting.querySelector(".ac-setting-input_label"),this.initValue(),this.bindEvents())}return t.prototype.initValue=function(){var t=this,e=document.createRange().createContextualFragment(this.getValue()).querySelector(".dashicons");e?e.classList.forEach((function(e){if(-1!==e.indexOf("dashicons-")){var n="."+e,i=t.iconpicker.querySelector(n);i&&(i.parentElement.classList.add("active"),t.setIconSelection(i.parentElement.dataset.dashicon))}})):t.setIconSelection(!1)},t.prototype.bindEvents=function(){var t=this;this.setting.querySelector(".ac-setting-label-icon").addEventListener("click",(function(e){e.preventDefault(),t.modal.open()})),this.setting.querySelector('[data-action="submit"]').addEventListener("click",(function(e){e.preventDefault(),t.getIconSelection()&&t.setDashicon(t.getIconSelection()),t.modal.close()})),this.iconpicker.querySelectorAll(".ac-ipicker__icon").forEach((function(e){e.addEventListener("click",(function(n){n.preventDefault();var i=this.dataset.dashicon;i&&t.setIconSelection(i),t.setting.querySelectorAll(".ac-ipicker__icon").forEach((function(t){t.classList.remove("active")})),e.classList.add("active")}))}))},t.prototype.getValue=function(){return this.field.value},t.prototype.setValue=function(t){this.field.value=t;var e=new Event("change");this.field.dispatchEvent(e)},t.prototype.setIconSelection=function(t){var e=this.setting.querySelector(".ac-ipicker__selection");this._dashicon=t,e.innerHTML='<span class="dashicons dashicons-'+t+'"></span>',e.style.visibility=t?"visible":"hidden"},t.prototype.getIconSelection=function(){return this._dashicon},t.prototype.setDashicon=function(t){this.setValue('<span class="dashicons dashicons-'+t+'"></span>')},t}(),Q=function(t){t.settings.label=new L(t)},O=n(10),F=function(){function t(t){this.column=t,this.setting=t.$el[0].querySelector(".ac-column-setting--number_format"),this.setting&&this.bindEvents()}return t.prototype.bindEvents=function(){var t=this;this.refreshPreview(),this.setting.querySelectorAll("input").forEach((function(e){e.addEventListener("change",(function(e){t.refreshPreview()}))}))},t.prototype.refreshPreview=function(){var t=this;this.getExampleRequest().done((function(e){var n=t.setting.querySelector("[data-preview]");n&&(n.innerText=e)}))},t.prototype.getExampleRequest=function(){var t=this.setting.querySelector(".ac-setting-input_number_decimals"),e=this.setting.querySelector(".ac-setting-input_number_decimal_point"),n=this.setting.querySelector(".ac-setting-input_number_thousands_separator");return jQuery.ajax({url:ajaxurl,method:"post",data:{action:"ac_number_format",number:7500,decimals:t?t.value:"",decimal_point:e?e.value:"",thousands_point:n?n.value:""}})},t}(),T=function(t){t.settings.number_format=new F(t)};function I(t,e){if(""===jQuery.trim(t.term))return e;if(void 0===e.children)return null;var n=[];if(jQuery.each(e.children,(function(e,i){i.text.toUpperCase().indexOf(t.term.toUpperCase())>-1&&n.push(i)})),n.length){var i=jQuery.extend({},e,!0);return i.children=n,i}return null}var D=function(){function t(t){this.column=t,this.setting=t.$el[0].querySelector('[data-setting="type"]'),this.setting&&this.bindEvents()}return t.prototype.bindEvents=function(){var t=this.setting.querySelector(".ac-setting-input_type");t&&(t.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((function(t){t.remove()})),jQuery(t).ac_select2({theme:"acs2",width:"100%",dropdownCssClass:"-type-selector",escapeMarkup:function(t){return t},templateResult:function(t){var e=t.text;return t.hasOwnProperty("id")&&t.id.includes("placeholder-")&&(e+='<span style="background-color:#FE3D6C; color:#fff; font-size: 10px; margin-top: -1px; padding: 1px 5px; border-radius: 2px; text-transform: uppercase;float: right; margin-right 10px;">PRO</span>'),e},matcher:I}))},t}(),N=function(t){t.settings.typeSelector=new D(t)},M=n(0),R=function(){function t(t,e){this.name=e,this.element=t,this.init()}return t.prototype.getInput=function(){return this.element.querySelector("input")},t.prototype.init=function(){var t=this,e=this.getInput();e&&e.addEventListener("change",(function(){t.persist()}))},t.prototype.persist=function(){return M.ajax({url:ajaxurl,method:"POST",data:{action:"ac_admin_screen_options",option_name:this.name,option_value:this.getInput().checked?1:0,_ajax_nonce:AC._ajax_nonce}})},t}();n(14),n(15),AC.Column=new d,jQuery(document).on("AC_Form_Loaded",(function(){AdminColumns.Column=AC.Column,AdminColumns.Tooltips=new m.a,AdminColumns.Column.registerEvent("toggle",g).registerEvent("remove",y).registerEvent("clone",v).registerEvent("refresh",_).registerEvent("type_selector",b).registerEvent("indicator",C).registerEvent("label",w).registerEvent("label_setting",j).registerEvent("addons",S).registerSetting("date",x).registerSetting("image_size",A).registerSetting("pro",$).registerSetting("sub_setting_toggle",k).registerSetting("width",q).registerSetting("customfield",O.a).registerSetting("number_format",T).registerSetting("type_selector",N).registerSetting("label",Q)})),jQuery(document).ready((function(){AC.Form=new u("#listscreen_settings"),AdminColumns.Form=AC.Form,AdminColumns.Form.init(),AdminColumns.Modals.register(new h.a(document.querySelector("#ac-modal-pro")),"pro"),(new p).init(),new f(".sidebox#direct-feedback"),["AC_Column_Change","AC_Column_Refresh","AC_Column_Refresh"].forEach((function(t){jQuery(document).on(t,(function(){return ac_pointers()}))})),jQuery(document).on("AC_Column_Created",(function(t,e){setTimeout((function(){ac_pointers()}),100)})),AC.hasOwnProperty("uninitialized_list_screens")&&Object.keys(AC.uninitialized_list_screens).length>0&&new s(AC.uninitialized_list_screens),AdminColumns.ScreenOptions={},document.querySelectorAll("[data-ac-screen-option]").forEach((function(t){var e=t.dataset.acScreenOption;AdminColumns.ScreenOptions[e]=new R(t,e)}));var t=document.querySelector('[data-ac-screen-option="show_column_id"] input');t&&t.addEventListener("change",(function(){t.checked?document.querySelector(".ac-boxes").classList.add("show-column-id"):document.querySelector(".ac-boxes").classList.remove("show-column-id")}));var e=document.querySelector('[data-ac-screen-option="show_column_type"] input');e&&e.addEventListener("change",(function(){e.checked?document.querySelector(".ac-boxes").classList.add("show-column-type"):document.querySelector(".ac-boxes").classList.remove("show-column-type")}));var n=document.querySelector('[data-ac-screen-option="show_list_screen_id"] input');n&&n.addEventListener("change",(function(){n.checked?document.querySelector(".ac-admin").classList.add("show-list-screen-id"):document.querySelector(".ac-admin").classList.remove("show-list-screen-id")}));var i=document.querySelector('[data-ac-screen-option="show_list_screen_type"] input');i&&i.addEventListener("change",(function(){i.checked?document.querySelector(".ac-admin").classList.add("show-list-screen-type"):document.querySelector(".ac-admin").classList.remove("show-list-screen-type")}))}))}]);
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e){t.exports=jQuery},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={TABLE:{READY:"Table.Ready"},SETTINGS:{FORM:{LOADED:"Settings.Form.Loaded",READY:"Settings.Form.Ready",SAVING:"Settings.Form.Saving",SAVED:"Settings.Form.Saved"},COLUMN:{INIT:"Settings.Column.Init",SWITCH:"Settings.Column.SwitchToType",REFRESHED:"Settings.Column.Refreshed"}}}},function(t,e,n){var i=n(14),o=n(15),r=n(10);function s(t){if(!(this instanceof s))return new s(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=s,s.prototype.emit=function(t){r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);var s=o(this._name+"('"+t.toString()+"')"),a=this._listeners[t];return a&&a.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,s.uuid),s(),this},s.prototype.on=s.prototype.addListener=function(t,e){return r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),r.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},s.prototype.prependListener=function(t,e){return r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),r.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},s.prototype.once=function(t,e){r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),r.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},s.prototype.prependOnceListener=function(t,e){r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),r.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},s.prototype.removeListener=function(t,e){return r.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),r.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(i(t,n,1),!0):void 0}}},s.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},s.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var i=e.length,o=0;o<i;o++)n.push(e[o]);return n},s.prototype._emit=function(t,e,n,i){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==i?[e].concat(n,i):[e].concat(n));for(var o=t.length,r=0;r<o;r++){var s=t[r];s.apply(s,n)}}}},function(t,e,n){"use strict";var i=n(17),o=Object.prototype.toString;function r(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:r,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,i){c(e[i])&&c(n)?e[i]=t(e[i],n):c(n)?e[i]=t({},n):r(n)?e[i]=n.slice():e[i]=n}for(var i=0,o=arguments.length;i<o;i++)l(arguments[i],n);return e},extend:function(t,e,n){return l(e,(function(e,o){t[o]=n&&"function"==typeof e?i(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=r(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),r=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var i=n(4),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},o=function(t,e){void 0===e&&(e="div");var n=document.createElement(e);return n.innerHTML=t,n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return r}));var i=function(t,e,n,i){void 0===i&&(i=null),(i||document).addEventListener(t,(function(t){var i=document.querySelectorAll(e);if(i){for(var o=t.target,r=-1;o&&-1===(r=Array.prototype.indexOf.call(i,o));)o=o.parentElement;r>-1&&n.call(o,t)}}))},o=function(t,e,n){t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",n)},r=function(t,e,n){e.forEach((function(e){return t.addEventListener(e,n)}))}},function(t,e,n){"use strict";var i=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.getElement=function(){return this.el},t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(5),o=n(0),r=function(){function t(t){this.element=t,this.settings=this.getDefaults(),this.init(),this.setInitialized()}return t.prototype.setInitialized=function(){s.add(this.element)},t.prototype.getDefaults=function(){return{width:this.element.getAttribute("data-width")?this.element.getAttribute("data-width"):250,noclick:!!this.element.getAttribute("data-noclick")&&this.element.getAttribute("data-noclick"),position:this.getPosition()}},t.prototype.isInitialized=function(){return s.isInitialized(this.element)},t.prototype.init=function(){this.isInitialized()||(o(this.element).pointer({content:this.getRelatedHTML(),position:this.settings.position,pointerWidth:this.settings.width,pointerClass:this.getPointerClass()}),this.initEvents())},t.prototype.getPosition=function(){var t={at:"left top",my:"right top",edge:"right"},e=this.element.getAttribute("data-pos"),n=this.element.getAttribute("data-pos_edge");return"right"===e&&(t={at:"right middle",my:"left middle",edge:"left"}),"right_bottom"===e&&(t={at:"right middle",my:"left bottom",edge:"none"}),"left"===e&&(t={at:"left middle",my:"right middle",edge:"right"}),n&&(t.edge=n),t},t.prototype.getPointerClass=function(){var t=["ac-wp-pointer","wp-pointer","wp-pointer-"+this.settings.position.edge];return this.settings.noclick&&t.push("noclick"),t.join(" ")},t.prototype.getRelatedHTML=function(){var t=document.getElementById(this.element.getAttribute("rel"));return t?t.innerHTML:""},t.prototype.initEvents=function(){var t=o(this.element);this.settings.noclick||t.click((function(){t.hasClass("open")?t.removeClass("open"):t.addClass("open")})),t.click((function(){t.pointer("open")})),t.mouseenter((function(){t.pointer("open"),setTimeout((function(){t.pointer("open")}),2)})),t.mouseleave((function(){setTimeout((function(){t.hasClass("open")||0!==o(".ac-wp-pointer.hover").length||t.pointer("close")}),1)})),t.on("close",(function(){setTimeout((function(){t.hasClass("open")||t.pointer("close")}))}))},t}(),s=function(){function t(){}return t.isInitialized=function(t){return this.initElements.filter((function(e){return e===t})).length>0},t.add=function(t){this.initElements.push(t)},t.initElements=[],t}(),a=function(t){void 0===t&&(t=null),t||(t=document.querySelectorAll(".ac-pointer")),t.forEach((function(t){new r(t)})),o(".ac-wp-pointer").hover((function(){o(this).addClass("hover")}),(function(){o(this).removeClass("hover"),o(".ac-pointer").trigger("close")})).on("click",".close",(function(){o(".ac-pointer").removeClass("open")})),new i.a}},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,i){n(t!=e,i)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,i){n(t==e,i)},n.ok=n,t.exports=n},function(t,e,n){t.exports=n(27)},function(t,e,n){"use strict";var i=n(8),o=function(){function t(){this.modals={},this.number=0,this.defaults={modal:i.a},this.initGlobalEvents()}return t.prototype.register=function(t,e){return void 0===e&&(e=""),e||(e="m"+this.number),this.modals[e]=t,this.number++,t},t.prototype.get=function(t){return this.modals.hasOwnProperty(t)?this.modals[t]:null},t.prototype.open=function(t){this.get(t)&&this.get(t).open()},t.prototype.close=function(t){this.get(t)&&this.get(t).close()},t.prototype.closeAll=function(){for(var t in this.modals)this.close(t)},t.prototype.initGlobalEvents=function(){var t=this;document.addEventListener("click",(function(e){var n=e.target;n.dataset.acModal&&(e.preventDefault(),t.open(n.dataset.acModal))}))},t}();e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(2),o=n.n(i),r=function(){function t(){this.services={},this.events=new o.a}return t.prototype.registerService=function(t,e){return this.services[t]=e,this},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t.prototype.addListener=function(t,e){this.events.addListener(t,e)},t.prototype.emitEvent=function(t,e){this.events.emit(t,e)},t}(),s=function(){return window.AC_SERVICES||(window.AC_SERVICES=new r),window.AC_SERVICES}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o=t.length;if(!(e>=o||0===n)){var r=o-(n=e+n>o?o-e:n);for(i=e;i<r;++i)t[i]=t[i+n];t.length=r}}},function(t,e,n){var i,o=n(16)(),r=n(10);s.disabled=!0;try{i=window.performance,s.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!i.mark}catch(t){}function s(t){if(r.equal(typeof t,"string","nanotiming: name should be type string"),s.disabled)return a;var e=(1e4*i.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function c(r){var s="end-"+e+"-"+t;i.mark(s),o.push((function(){var o=null;try{var a=t+" ["+e+"]";i.measure(a,n,s),i.clearMarks(n),i.clearMarks(s)}catch(t){o=t}r&&r(o,t)}))}return i.mark(n),c.uuid=e,c}function a(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=s},function(t,e,n){var i=n(10),o="undefined"!=typeof window;function r(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}r.prototype.push=function(t){i.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},r.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},r.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new r(!0)),t=window._nanoScheduler):t=new r,t}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e,n){"use strict";var i=n(3);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(i.isURLSearchParams(e))r=e.toString();else{var s=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))})))})),r=s.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var i=n(3),o=n(33),r={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(a=n(21)),a),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(r)})),t.exports=c}).call(this,n(32))},function(t,e,n){"use strict";var i=n(3),o=n(34),r=n(36),s=n(18),a=n(37),c=n(40),u=n(41),l=n(22);t.exports=function(t){return new Promise((function(e,n){var f=t.data,d=t.headers;i.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var y=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),s(y,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};o(e,n,r),p=null}},p.onabort=function(){p&&(n(l("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?r.read(t.xsrfCookieName):void 0;v&&(d[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(d,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),f||(f=null),p.send(f)}))}},function(t,e,n){"use strict";var i=n(35);t.exports=function(t,e,n,o,r){var s=new Error(t);return i(s,e,n,o,r)}},function(t,e,n){"use strict";var i=n(3);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],r=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(o){i.isUndefined(e[o])?i.isUndefined(t[o])||(n[o]=c(void 0,t[o])):n[o]=c(t[o],e[o])}i.forEach(o,(function(t){i.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),i.forEach(r,u),i.forEach(s,(function(o){i.isUndefined(e[o])?i.isUndefined(t[o])||(n[o]=c(void 0,t[o])):n[o]=c(void 0,e[o])})),i.forEach(a,(function(i){i in e?n[i]=c(t[i],e[i]):i in t&&(n[i]=c(void 0,t[i]))}));var l=o.concat(r).concat(s).concat(a),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return i.forEach(f,u),n}},function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},,function(t,e,n){t.exports=n(47)},function(t,e,n){"use strict";var i=n(3),o=n(17),r=n(28),s=n(23);function a(t){var e=new r(t),n=o(r.prototype.request,e);return i.extend(n,r.prototype,e),i.extend(n,e),n}var c=a(n(20));c.Axios=r,c.create=function(t){return a(s(c.defaults,t))},c.Cancel=n(24),c.CancelToken=n(42),c.isCancel=n(19),c.all=function(t){return Promise.all(t)},c.spread=n(43),c.isAxiosError=n(44),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";var i=n(3),o=n(18),r=n(29),s=n(30),a=n(23);function c(t){this.defaults=t,this.interceptors={request:new r,response:new r}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},c.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,i){return this.request(a(i||{},{method:t,url:e,data:n}))}})),t.exports=c},function(t,e,n){"use strict";var i=n(3);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var i=n(3),o=n(31),r=n(19),s=n(20);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(a(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var i=n(3);t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,i,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f<e;)c&&c[f].run();f=-1,e=u.length}c=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new h(t,e)),1!==u.length||l||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var i=n(3);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},function(t,e,n){"use strict";var i=n(22);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,i,o){return t.config=e,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var i=n(3);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,o,r,s){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var i=n(38),o=n(39);t.exports=function(t,e){return t&&!i(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var i=n(3),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,s={};return t?(i.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},function(t,e,n){"use strict";var i=n(3);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=i.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var i=n(24);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)})},,function(t,e,n){"use strict";n.r(e);var i,o=n(1),r=n(0),s=n.n(r),a=n(2),c=n.n(a),u=n(11),l=function(t,e){return void 0===e&&(e=null),e||(e=new FormData),Object.keys(t).forEach((function(n){e.append(n,t[n])})),e},f=n(6),d=function(t,e,n,i){void 0===e&&(e=100),void 0===n&&(n=null),void 0===i&&(i="block"),t.style.display=i,t.style.transition="opacity "+e+"ms",t.style.opacity="0",setTimeout((function(){t.style.opacity="1"}),100),n&&t.addEventListener("transitionend",(function(){n.call(void 0)}),{once:!0})},p=function(t,e,n,i){void 0===e&&(e=100),void 0===n&&(n=null),void 0===i&&(i="none"),t.style.transition="opacity "+e+"ms",t.style.opacity="1",setTimeout((function(){t.style.opacity="0"}),100),t.addEventListener("transitionend",(function(){t.style.display=i,n&&n.call(void 0)}),{once:!0})},h=function(t,e){void 0===t&&(t=""),void 0===e&&(e=!1);for(var n=(Date.now()/1e3).toString(16).split(".").join("");n.length<14;)n+="0";var i="";return e&&(i=".",i+=Math.round(1e8*Math.random())),t+n+i},m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y="closed",v="open",g="remove",E="clone",b=function(){function t(t,e,n){this.events=new c.a,this.name=e,this.element=t,this.state=y,this.services=n,this.setPropertiesByElement(t),this.init()}return t.prototype.setPropertiesByElement=function(t){return this.type=t.dataset.type,this.original="1"===t.dataset.original,this.disabled=t.classList.contains("disabled"),t.dataset.columnName=this.name,this},t.prototype.getName=function(){return this.name},t.prototype.getType=function(){return this.type},t.prototype.isOriginal=function(){return this.original},t.prototype.getElement=function(){return this.element},t.prototype.isDisabled=function(){return this.element.classList.contains("disabled")},t.prototype.disable=function(){return this.element.classList.add("disabled"),this},t.prototype.setLoading=function(t){return t?this.getElement().classList.add("loading"):this.getElement().classList.remove("loading"),this},t.prototype.enable=function(){return this.element.classList.remove("disabled"),this},t.prototype.init=function(){return this.services.emitEvent(o.a.SETTINGS.COLUMN.INIT,this),this},t.prototype.destroy=function(){this.element.remove()},t.prototype.remove=function(t){var e=this;void 0===t&&(t=350),this.events.emit(g,this),p(this.getElement(),t,(function(){e.destroy()}))},t.prototype.getState=function(){return this.state},t.prototype.toggle=function(t){void 0===t&&(t=150),this.getState()===v?this.close(t):this.open(t)},t.prototype.close=function(t){void 0===t&&(t=0),this.getElement().classList.remove("opened"),s()(this.getElement()).find(".ac-column-body").slideUp(t),this.state=y},t.prototype.open=function(t){void 0===t&&(t=0),this.getElement().classList.add("opened"),s()(this.getElement()).find(".ac-column-body").slideDown(t),this.state=v},t.prototype.isOpen=function(){return this.state===v},t.prototype.showMessage=function(t){var e=this.getElement().querySelector(".ac-column-setting--type .msg");e&&(e.innerHTML=t,e.style.display="block")},t.prototype.getJson=function(){var t,e,n=new FormData(this.getElement());n.set("name",this.getName());var i={};try{for(var o=m(n.entries()),r=o.next();!r.done;r=o.next()){var s=r.value,a=s[0],c=s[1];if(this.fieldSupportsMultipleValues(a)){var u=i.hasOwnProperty(a)?i[a]:[];u.push(c),i[a]=u}else i[a]=c}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i},t.prototype.switchToType=function(t){var e=this;this.setLoading(!0),function(t,e){return void 0===e&&(e=AC.list_screen),u.post(ajaxurl,l({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",current_original_columns:JSON.stringify(AC_SERVICES.getService("Form").getOriginalColumns().map((function(t){return t.getName()}))),id:"select",list_screen:e,type:t}))}(t).then((function(t){if(t.data.success){var n=Object(f.a)(t.data.data.trim()).firstChild;e.name=h(),e.reinitColumnFromElement(n)}else e.showMessage(t.data.data.error)})).catch((function(){e.showMessage(AC.i18n.errors.loading_column)})).finally((function(){return e.setLoading(!1)}))},t.prototype.refresh=function(){var t,e,n,i=this;this.setLoading(!0),(t=this.getName(),e=JSON.stringify(this.getJson()),void 0===n&&(n=AC.list_screen),u.post(ajaxurl,l({_ajax_nonce:AC._ajax_nonce,action:"ac-columns",column_name:t,data:e,id:"refresh",list_screen:n}))).then((function(t){t.data.success?(i.reinitColumnFromElement(Object(f.a)(t.data.data.trim()).firstChild),i.services.emitEvent(o.a.SETTINGS.COLUMN.REFRESHED,i)):i.showMessage(AC.i18n.errors.loading_column)})).finally((function(){return i.setLoading(!1)}))},t.prototype.fieldSupportsMultipleValues=function(t){var e=this.getElement().elements[t];return e&&"SELECT"===e.tagName&&e.hasAttribute("multiple")},t.prototype.reinitColumnFromElement=function(t){this.getElement().parentNode.replaceChild(t,this.getElement()),this.element=t,this.setPropertiesByElement(t).init().open()},t}(),S=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},w=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(S(arguments[e]));return t},A=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(){function t(t,e){this.form=t,this.services=e,this.columns=[],this.services.emitEvent(o.a.SETTINGS.FORM.LOADED,this),this.init()}return t.prototype.init=function(){this.initColumns(),this.isDisabled()&&(this.disableFields(),this.disableColumns()),this.services.emitEvent(o.a.SETTINGS.FORM.READY,this)},t.prototype.getElement=function(){return this.form},t.prototype.getColumns=function(){return this.columns},t.prototype.getSortedColumns=function(){var t=this,e=[];return this.getElement().querySelectorAll("form.ac-column").forEach((function(n){var i=t.columns.find((function(t){return t.getName()===n.dataset.columnName}));i&&e.push(i)})),e},t.prototype.placeColumn=function(t,e){return void 0===e&&(e=null),e?Object(f.b)(t.getElement(),e):this.getElement().querySelector(".ac-columns").append(t.getElement()),setTimeout((function(){!function(t,e,n){void 0===n&&(n={});var i,o=Object.assign({},{offset:0},n),r=t.offsetTop+o.offset,s=window.pageYOffset,a=r-s;window.requestAnimationFrame((function t(n){i||(i=n);var o=n-i,r=Math.min(o/e,1);window.scrollTo(0,s+a*r),o<e&&window.requestAnimationFrame(t)}))}(t.getElement(),300,{offset:-18})}),300),this},t.prototype.createNewColumn=function(){var t=L(this.services);return this.columns.push(t),this.placeColumn(t),this.bindColumnEvents(t),t.open(300),t},t.prototype.isDisabled=function(){return this.form.classList.contains("-disabled")},t.prototype.getOriginalColumns=function(){return this.columns.filter((function(t){return t.isOriginal()}))},t.prototype.disableColumns=function(){this.columns.forEach((function(t){return t.disable()}))},t.prototype.initColumns=function(){var t=this;this.getElement().querySelectorAll(".ac-column").forEach((function(e){var n=new b(e,e.dataset.columnName,t.services);t.columns.push(n),t.bindColumnEvents(n)}))},t.prototype.bindColumnEvents=function(t){var e=this;t.events.addListener(g,(function(){e.removeColumn(t.getName())})),t.events.addListener(E,(function(){var n=new b(t.getElement().cloneNode(!0),h(),e.services);e.columns.push(n),e.placeColumn(n,t.getElement()).bindColumnEvents(n),t.isOpen()?n.open():n.close(),d(n.getElement(),300)}))},t.prototype.resetColumns=function(){this.columns.forEach((function(t){t.destroy()})),this.columns=[]},t.prototype.getFormData=function(){var t={},e=this.getElement().querySelector("input[name=title]");return this.getSortedColumns().forEach((function(e){t[e.getName()]=e.getJson()})),{title:e?e.value:"",list_screen:AC.list_screen,list_screen_id:AC.layout,columns:t,settings:this.getPreferences()}},t.prototype.disableFields=function(){this.getElement().querySelectorAll("input, select, button").forEach((function(t){t.setAttribute("readonly","readonly"),t.setAttribute("disabled","disabled")}))},t.prototype.submitForm=function(){var t,e=this;this.services.emitEvent(o.a.SETTINGS.FORM.SAVING,this),(t=this.getFormData(),u.post(ajaxurl,l({action:"ac-columns",id:"save",_ajax_nonce:AC._ajax_nonce,data:JSON.stringify(t)}))).then((function(t){if(t.data.success)e.showMessage(t.data.data.message,"updated"),AC.layout=t.data.data.list_id;else if(t.data){var n=t.data;e.showMessage(n.data.message,"notice notice-warning")}})).catch((function(){e.showMessage(AC.i18n.error.save_settings)})).finally((function(){e.services.emitEvent(o.a.SETTINGS.FORM.SAVED,e)}))},t.prototype.showMessage=function(t,e){var n;void 0===e&&(e="updated");var i=document.querySelector(".ac-admin__main");i.querySelectorAll(".ac-message").forEach((function(t){return t.remove()}));var o=document.createElement("div");o.classList.add("ac-message"),(n=o.classList).add.apply(n,w(e.split(" "))),o.innerHTML="<p>"+t+"</p>",i.insertAdjacentElement("afterbegin",o),d(o,600)},t.prototype.removeColumn=function(t){var e=this;this.columns.forEach((function(n,i){t===n.getName()&&e.columns.splice(i,1)}))},t.prototype.getPreferences=function(){var t={};return document.querySelectorAll("form[data-form-part=preferences]").forEach((function(e){var n,i,o=new FormData(e);try{for(var r=A(o.entries()),s=r.next();!s.done;s=r.next()){var a=s.value,c=a[0],u=a[1],l=e.elements[c];t[c]="SELECT"===l.tagName&&l.hasAttribute("multiple")?o.getAll(c):t[c]=u}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}})),t},t}(),L=function(t){var e=document.querySelector("#add-new-column-template .ac-column").cloneNode(!0),n=h();return e.querySelectorAll("label[for]").forEach((function(t){var i=t.getAttribute("for");if(i){var o=e.querySelector("#"+i);if(o){var r=i+n;t.setAttribute("for",r),o.id=r}}})),new b(e,n,t)},x=n(13),q=function(t,e){var n=t?"on":"off";e.forEach((function(t){t.value===n&&(t.checked=!0,t.dispatchEvent(new Event("change")),t.dispatchEvent(new Event("click")))}))},C=n(7),T=function(t,e){var n=t.closest(".col-label").querySelector("div.tooltip");n&&(n.style.display=e)},O=function(t,e){e.getElement().querySelector("td.column_label .inner > a.toggle").innerHTML=t.value},k=n(8),N=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),I=function(){function t(t,e){this.column=t,this.setting=e,this.field=this.setting.querySelector(".ac-setting-input_label"),t.getElement().querySelector(".-iconpicker")&&(this.modal=new j(t.getElement().querySelector(".-iconpicker")),this.modal.setIconSelection(this.getDashIconFromValue()),this.initEvents())}return t.prototype.initEvents=function(){var t=this;this.column.getElement().querySelectorAll(".ac-setting-label-icon").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),t.modal.open()}))})),this.modal.onSubmit((function(){t.setLabel(t.modal.getDashIconMarkup()),t.modal.close()}))},t.prototype.getDashIconFromValue=function(){var t=document.createRange().createContextualFragment(this.getValue()).querySelector(".dashicons"),e=null;return t?(t.classList.forEach((function(t){0===t.indexOf("dashicons-")&&(e=t.replace("dashicons-",""))})),e):e},t.prototype.getValue=function(){return this.field.value},t.prototype.setLabel=function(t){this.field&&(this.field.value=t,this.field.dispatchEvent(new Event("change")))},t}(),j=function(t){function e(e){var n=t.call(this,e)||this;return n.events=new c.a,n.dashIcon=null,n}return N(e,t),e.prototype.initEvents=function(){var e=this;t.prototype.initEvents.call(this),this.getElement().querySelectorAll('[data-action="submit"]').forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.events.emit("submit")}))})),this.getIconElements().forEach((function(t){t.addEventListener("click",(function(n){n.preventDefault(),e.setIconSelection(t.dataset.dashicon),e.getIconElements().forEach((function(t){return t.classList.remove("active")})),t.classList.add("active")}))}))},e.prototype.getIconElements=function(){return this.getElement().querySelectorAll(".ac-ipicker__icon")},e.prototype.onSubmit=function(t){this.events.on("submit",t)},e.prototype.getDashIconMarkup=function(){return'<span class="dashicons dashicons-'+this.dashIcon+'"></span>'},e.prototype.setIconSelection=function(t){var e=this.getElement().querySelector(".ac-ipicker__selection");this.dashIcon=t,e.innerHTML=this.getDashIconMarkup(),e.style.visibility="visible"},e}(k.a),R=function(){function t(t,e){this.column=t,this.setting=e,this.field=this.setting.querySelector(".ac-setting-input select"),this.initState(),this.bindEvents()}return t.prototype.getValue=function(){return this.field.value},t.prototype.bindEvents=function(){var t=this;this.field.addEventListener("change",(function(){return t.initState()}))},t.prototype.initState=function(){this.toggleSubSettings("cpac-custom"===this.getValue())},t.prototype.toggleSubSettings=function(t){void 0===t&&(t=!0),this.setting.querySelectorAll(".ac-column-setting").forEach((function(e){return e.style.display=t?"table":"none"}))},t}(),D=n(11),M=function(){function t(t,e){this.column=t,this.setting=e,this.bindEvents()}return t.prototype.bindEvents=function(){var t=this;this.refreshPreview(),this.setting.querySelectorAll("input").forEach((function(e){e.addEventListener("change",(function(){return t.refreshPreview()}))}))},t.prototype.refreshPreview=function(){var t=this;this.getExampleRequest().then((function(e){t.setting.querySelectorAll("[data-preview]").forEach((function(t){return t.textContent=e.data.data}))}))},t.prototype.getValue=function(){var t=this.setting.querySelector(".ac-setting-input_number_decimals"),e=this.setting.querySelector(".ac-setting-input_number_decimal_point"),n=this.setting.querySelector(".ac-setting-input_number_thousands_separator");return{decimals:t?t.value:"",decimal_point:e?e.value:"",thousands_point:n?n.value:""}},t.prototype.getExampleRequest=function(){var t=this.getValue(),e=new FormData;return e.set("action","ac_number_format"),e.set("number","7500"),e.set("decimals",t.decimals),e.set("decimal_point",t.decimal_point),e.set("thousands_sep",t.thousands_point),D.post(ajaxurl,e,{})},t}();function F(t,e){if(""===jQuery.trim(t.term))return e;if(void 0===e.children)return null;var n=[];if(jQuery.each(e.children,(function(e,i){i.text.toUpperCase().indexOf(t.term.toUpperCase())>-1&&n.push(i)})),n.length){var i=jQuery.extend({},e,!0);return i.children=n,i}return null}var P=function(){function t(t,e){this.column=t,this.setting=e,this.bindEvents()}return t.prototype.bindEvents=function(){var t=this.setting.querySelector(".ac-setting-input_type");t&&(t.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((function(t){t.remove()})),s()(t).ac_select2({theme:"acs2",width:"100%",dropdownCssClass:"-type-selector",escapeMarkup:function(t){return t},templateResult:function(t){var e=t.text;return t.hasOwnProperty("id")&&t.id.includes("placeholder-")&&(e+='<span style="background-color:#FE3D6C; color:#fff; font-size: 10px; margin-top: -1px; padding: 1px 5px; border-radius: 2px; text-transform: uppercase;float: right; margin-right 10px;">PRO</span>'),e},matcher:F}))},t}(),U=function(){function t(t,e){this.column=t,this.setting=e,this.events=new c.a,this.indicator=new B(t.getElement().querySelector(".ac-column-header .ac-column-heading-setting--width")),this.widthInput=this.setting.querySelector("[data-width-input]"),this.unitInput=this.setting.querySelectorAll("[data-unit-input] input"),this.init()}return t.prototype.getWidth=function(){var t=this.widthInput.value;return t?parseInt(t):null},t.prototype.setWidth=function(t){this.widthInput.value=t?t.toString():null,this.updateIndicator()},t.prototype.updateUnit=function(){this.setting.querySelector(".description .unit").innerHTML=this.getUnit()},t.prototype.getUnit=function(){var t=this.setting.querySelector("[data-unit-input] input:checked");return t?t.value:null},t.prototype.getValue=function(){return{width:this.getWidth(),unit:this.getUnit()}},t.prototype.validate=function(){var t=this.getWidth();(0===t||t<0)&&this.setWidth(null),"%"===this.getUnit()&&t>100&&this.setWidth(100)},t.prototype.init=function(){var t=this;this.widthInput.addEventListener("keyup",(function(){t.updateIndicator(),t.initSlider(),t.validate()})),this.unitInput.forEach((function(e){e.addEventListener("change",(function(){t.initSlider(),t.updateIndicator(),t.updateUnit(),t.validate()}))})),this.initSlider()},t.prototype.updateIndicator=function(){this.indicator.setValue(this.getWidth(),this.getUnit())},t.prototype.initSlider=function(){var t=this,e=this.column.getElement().querySelector(".width-slider");s()(e).slider({range:"min",min:0,max:"%"===this.getUnit()?100:500,value:this.getWidth(),slide:function(e,n){t.setWidth(n.value)}})},t}(),B=function(){function t(t){this.element=t,this.events=new c.a}return t.prototype.setValue=function(t,e){if(null===t)return this.element.innerText="";this.element.innerText=""+t.toString()+e},t}(),H=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},V=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(H(arguments[e]));return t},G=n(11),z=function(){function t(t,e){this.column=t,this.setting=e,this.options=this.setting.querySelectorAll(".radio-labels input[type=radio]"),this.defaultFormat=this.setting.querySelector(".radio-labels code").textContent,this.valueInput=this.setting.querySelector("[data-value-input]");var n=V(this.options).filter((function(t){return void 0!==t.dataset.custom}));this.customOption=new W(n[0],this.setting.querySelector("[data-custom-date]"),this.setting.querySelector(".ac-setting-input-date__example"),this.valueInput),this.initEvents()}return t.prototype.getOptionsAsArray=function(){return Array.from(this.options)},t.prototype.getSelectionOption=function(){var t=this.getOptionsAsArray().filter((function(t){return t.checked}));return t?t[0]:null},t.prototype.initEvents=function(){var t=this;this.options.forEach((function(e){e.addEventListener("change",(function(){return t.handleUpdate(e)}))})),this.setSelected()},t.prototype.setSelected=function(){var t=this,e=this.getOptionsAsArray().find((function(e){return e.value===t.getCurrentValue()}));e&&(e.checked=!0,e.dispatchEvent(new Event("change")))},t.prototype.handleUpdate=function(t){switch(this.valueInput.value=t.value,this.customOption.toggle(void 0!==t.dataset.custom),this.setHelpText(this.getHelpTextFromType(t.value)),this.valueInput.value){case"custom":break;case"wp_default":case"diff":this.customOption.setExample("");break;default:this.customOption.setExample(this.valueInput.value)}this.customOption.updateExample()},t.prototype.getCurrentValue=function(){return this.valueInput.value},t.prototype.setHelpText=function(t){var e=this.setting.querySelector(".help-msg");e.innerHTML=t,e.style.display="block"},t.prototype.getHelpTextFromType=function(t){var e=this.getOptionsAsArray().filter((function(e){return e.value===t}));if(!e)return"";var n=e[0].closest("label").querySelector("[data-help]");return n?n.innerHTML:null},t}(),W=function(){function t(t,e,n,i){var o=this;this.radio=t,this.input=e,this.example=n,this.valueElement=i,this.timeout=null,this.input.addEventListener("change",(function(){o.updateExample(),t.checked&&(o.valueElement.value=o.input.value)})),this.input.addEventListener("keyup",(function(){t.checked&&(o.valueElement.value=o.input.value),o.timeout&&clearTimeout(o.timeout),o.timeout=setTimeout((function(){return o.updateExample()}),500)}))}return t.prototype.setExample=function(t){this.input.value=t},t.prototype.updateExample=function(){var t=this;this.getExample().then((function(e){t.example.innerHTML=e.data}))},t.prototype.toggle=function(t){void 0===t&&(t=!0),t?this.input.removeAttribute("disabled"):this.input.setAttribute("disabled","disabled")},t.prototype.getExample=function(){var t=new FormData;return t.set("action","date_format"),t.set("date",this.input.value),G.post(ajaxurl,t,{})},t}(),J=n(11),X=function(){function t(t,e){this.column=t,this.setting=e,this.select=e.querySelector(".custom_field"),this.bindEvents()}return t.prototype.bindEvents=function(){var t=this,e=Q(this.select.dataset.type,this.select.dataset.post_type),n=this.column.getElement().querySelectorAll('[data-setting="edit"][data-indicator-toggle]').length>0;this.select.querySelectorAll("optgroup").forEach((function(t){t.remove()})),this.select.removeAttribute("data-select2-id"),this.setting.querySelectorAll(".select2").forEach((function(t){t.remove()})),e.getOptions().then((function(e){s()(t.select).ac_select2({theme:"acs2",width:"100%",tags:n,dropdownCssClass:"-customfields",data:e})}))},t}(),Y=function(){function t(t,e){this.metaType=t,this.postType=e,this.loading=!1,this.data=null,this.events=new c.a}return t.prototype.retrieveOptions=function(){this.loading=!0;var t=new FormData;return t.set("action","ac_custom_field_options"),t.set("post_type",this.postType),t.set("meta_type",this.metaType),t.set("_ajax_nonce",AC._ajax_nonce),J.post(ajaxurl,t)},t.prototype.getOptions=function(){var t=this;return new Promise((function(e,n){t.data?e(t.data):t.loading?t.events.on("loaded",(function(){e(t.data)})):t.retrieveOptions().then((function(i){i.data.success||n(),t.data=i.data.data.results,t.events.emit("loaded"),e(t.data)}))}))},t}(),Q=function(t,e){var n="custom_field_"+t+"_"+e;return void 0===window.AC_Requests&&(window.AC_Requests={}),window.AC_Requests.hasOwnProperty(n)||(window.AC_Requests[n]=new Y(t,e)),window.AC_Requests[n]},$=function(){function t(t){this.element=t,this.inputs=t.querySelectorAll('.ac-setting-input input[type="radio"]'),this.subFields=t.querySelectorAll(".ac-column-setting"),this.initState(),this.initEvents()}return t.prototype.initEvents=function(){var t=this;this.inputs.forEach((function(e){e.addEventListener("change",(function(){return t.initState()}))}))},t.prototype.initState=function(){this.isOptionEnabled()?this.subFields.forEach((function(t){return t.style.display="table"})):this.subFields.forEach((function(t){return t.style.display="none"}))},t.prototype.isOptionEnabled=function(){var t=Array.from(this.inputs).filter((function(t){return t.checked}));return!!t.length&&"on"===t[0].value},t}(),K=function(){function t(t,e){this.column=t,this.select=e,this.bindEvents()}return t.prototype.bindEvents=function(){this.select.removeAttribute("data-select2-id"),this.select.parentElement.querySelectorAll(".select2").forEach((function(t){t.remove()})),s()(this.select).ac_select2({theme:"acs2",width:"100%",escapeMarkup:function(t){return t}})},t}(),Z=function(t){t.addListener(o.a.SETTINGS.COLUMN.INIT,(function(t){!function(t){t.getElement().querySelectorAll('[data-toggle="column"]').forEach((function(e){e.addEventListener("click",(function(e){return t.toggle()})),e.style.cursor="pointer"}))}(t),function(t){t.isDisabled()||t.getElement().querySelectorAll(".ac-column-header [data-indicator-toggle]").forEach((function(e){var n=t.getElement().querySelectorAll(".ac-column-setting[data-setting='"+e.dataset.setting+"'] .col-input .ac-setting-input:first-child input[type=radio]");e.addEventListener("click",(function(){q(!e.classList.contains("on"),n)})),n.forEach((function(t){t.addEventListener("change",(function(){"off"===t.value?e.classList.remove("on"):e.classList.add("on")}))}))}))}(t),function(t){t.getElement().querySelectorAll("select.ac-setting-input_type").forEach((function(e){s()(e).on("change",(function(){return t.switchToType(e.value)}))}))}(t),function(t){t.getElement().querySelectorAll("[data-remove-column]").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),t.remove()}))}))}(t),function(t){t.getElement().querySelectorAll(".clone-button").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),t.isOriginal()||t.events.emit(E)}))}))}(t),function(t){var e=t.getElement().querySelector(".ac-column-setting--label input");e&&Object(C.b)(e,["change","keyup"],(function(){return O(e,t)}))}(t),function(t){t.getElement().querySelectorAll(".col-label .label").forEach((function(t){Object(C.c)(t,(function(){return T(t,"block")}),(function(){return T(t,"none")}))}))}(t),function(t){t.getElement().querySelectorAll('select[data-label="update"]').forEach((function(e){e.addEventListener("change",(function(){var n=t.getElement().querySelector("input.ac-setting-input_label"),i=e.selectedOptions.length>0?e.selectedOptions[0]:null;n&&i&&(n.value=i.innerHTML,n.dispatchEvent(new Event("change")))}))})),setTimeout((function(){var e=t.getElement().querySelector(".column_label .toggle");e&&e.offsetWidth<10&&(e.innerText=t.getType())}),50)}(t),function(t){t.getElement().querySelectorAll('[data-refresh="column"]').forEach((function(e){e.addEventListener("change",(function(){setTimeout((function(){return t.refresh()}),50)}))}))}(t),function(t){t.getElement().querySelectorAll("select[multiple]").forEach((function(e){new K(t,e)}))}(t),function(t){var e=t.getElement().querySelector(".ac-column-setting--label");e&&new I(t,e)}(t),function(t){var e=t.getElement().querySelector(".ac-column-setting--image");e&&new R(t,e)}(t),function(t){t.getElement().querySelectorAll(".ac-column-setting--number_format").forEach((function(e){new M(t,e)}))}(t),function(t){t.getElement().querySelectorAll('[data-setting="type"]').forEach((function(e){new P(t,e)}))}(t),function(t){t.getElement().querySelectorAll('table[data-setting="width"]').forEach((function(e){return new U(t,e)}))}(t),function(t){t.getElement().querySelectorAll("[data-setting=date]").forEach((function(e){return new z(t,e)}))}(t),function(t){t.getElement().querySelectorAll(".ac-column-setting--pro").forEach((function(t){t.querySelectorAll("input").forEach((function(e){e.addEventListener("click",(function(){return s()(t).find("[data-ac-modal]").trigger("click")}))}))}))}(t),function(t){t.getElement().querySelectorAll("[data-setting=custom_field]").forEach((function(e){return new X(t,e)}))}(t),function(t){t.getElement().querySelectorAll(".ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit").forEach((function(t){new $(t)}))}(t)}))},tt=function(){function t(t){this.element=t,this.init()}return t.prototype.init=function(){var t=this;this.element.querySelector("a.no").addEventListener("click",(function(e){e.preventDefault(),p(t.element.querySelector("#feedback-choice"),300,(function(){d(t.element.querySelector("#feedback-support"),300)}))})),this.element.querySelector("a.yes").addEventListener("click",(function(e){e.preventDefault(),p(t.element.querySelector("#feedback-choice"),300,(function(){d(t.element.querySelector("#feedback-rate"),300)}))}))},t}(),et=function(){function t(t,e,n){this.input=t,this.toggleClass=e,this.container=n,this.initEvents()}return t.prototype.initEvents=function(){var t=this;this.input.addEventListener("change",(function(){t.input.checked?t.container.classList.add(t.toggleClass):t.container.classList.remove(t.toggleClass)}))},t}(),nt=n(4),it=n(9),ot=n(11),rt=function(){function t(t){this.listScreens=t,this.processed=[],this.errors=[],this.success=[],this.events=new c.a,this.run()}return t.prototype.doAjaxCall=function(t){return ot.get(t.screen_link)},t.prototype.run=function(){var t=this;Object.values(this.listScreens).forEach((function(e){return t.processListScreen(e)}))},t.prototype.onFinish=function(){this.success.length===Object.keys(this.listScreens).length&&this.events.emit("success"),this.errors.length>0&&this.events.emit("error")},t.prototype.checkFinish=function(){this.processed.length===Object.keys(this.listScreens).length&&this.onFinish()},t.prototype.processListScreen=function(t){var e=this;this.doAjaxCall(t).then((function(n){"ac_success"===n.data?e.success.push(t):e.errors.push(t)})).catch((function(){e.errors.push(t)})).finally((function(){e.processed.push(t),e.checkFinish()}))},t}(),st=(n(45),n(12)),at=Object(x.a)();at.registerService("Modals",new st.a),new Z(at),document.addEventListener("DOMContentLoaded",(function(){ct(),document.querySelectorAll("#listscreen_settings").forEach((function(t){at.registerService("Form",new _(t,at))})),document.querySelectorAll("#ac-modal-pro").forEach((function(t){at.getService("Modals").register(new k.a(t),"pro")})),document.querySelectorAll("#ac_list_screen").forEach((function(t){t.addEventListener("change",(function(){document.querySelectorAll(".view-link").forEach((function(t){return t.style.display="none"})),t.closest("form").submit(),t.disabled=!0,t.nextElementSibling.style.display="inline-block"}))})),document.querySelectorAll("#direct-feedback").forEach((function(t){return new tt(t)})),AC.hasOwnProperty("uninitialized_list_screens")&&function(t){var e;if(Object.keys(t).length>0)if(t.hasOwnProperty(AC.list_screen)){var n=new rt(((e={})[AC.list_screen]=t[AC.list_screen],e));n.events.on("error",(function(){document.querySelectorAll(".ac-loading-msg-wrapper").forEach((function(t){return t.remove()})),document.querySelectorAll(".menu").forEach((function(t){return t.classList.remove("hidden")}))})),n.events.on("success",(function(){window.location.href=location.href+"&t="+Date.now()}))}else new rt(t)}(AC.uninitialized_list_screens),document.querySelectorAll('[data-ac-screen-option="show_column_id"] input').forEach((function(t){return new et(t,"show-column-id",document.querySelector(".ac-boxes"))})),document.querySelectorAll('[data-ac-screen-option="show_column_type"] input').forEach((function(t){return new et(t,"show-column-type",document.querySelector(".ac-boxes"))})),document.querySelectorAll('[data-ac-screen-option="show_list_screen_id"] input').forEach((function(t){return new et(t,"show-list-screen-id",document.querySelector(".ac-admin"))})),document.querySelectorAll('[data-ac-screen-option="show_list_screen_type"] input').forEach((function(t){return new et(t,"show-list-screen-type",document.querySelector(".ac-admin"))}))})),at.addListener(o.a.SETTINGS.FORM.LOADED,(function(t){document.querySelectorAll(".add_column").forEach((function(e){return e.addEventListener("click",(function(){return t.createNewColumn()}))})),document.querySelectorAll("a[data-clear-columns]").forEach((function(e){return e.addEventListener("click",(function(){return t.resetColumns()}))}));var e=s()(t.getElement());e.hasClass("ui-sortable")?e.sortable("refresh"):e.sortable({items:".ac-column",handle:".column_sort"})})),at.addListener(o.a.SETTINGS.FORM.SAVING,(function(){document.querySelector("#cpac .ac-admin").classList.add("saving")})),at.addListener(o.a.SETTINGS.FORM.SAVED,(function(){document.querySelector("#cpac .ac-admin").classList.remove("saving"),document.querySelector("#cpac .ac-admin").classList.add("stored")})),at.addListener(o.a.SETTINGS.COLUMN.INIT,(function(t){Object(nt.b)(),Object(it.a)(t.getElement().querySelectorAll(".ac-pointer"))}));var ct=function(){var t=document.querySelectorAll(".sidebox a.submit, .column-footer a.submit");at.addListener(o.a.SETTINGS.FORM.READY,(function(e){t.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault(),t.forEach((function(t){return t.setAttribute("disabled","disabled")})),e.submitForm()}))}))})),at.addListener(o.a.SETTINGS.FORM.SAVED,(function(){return t.forEach((function(t){return t.removeAttribute("disabled")}))}))}}]);
assets/js/admin-page-columns.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-page-columns.js","webpack:///./js/admin/columns/column.js","webpack:///./js/admin/columns/events/addons.js","webpack:///./js/admin/columns/events/clone.js","webpack:///./js/admin/columns/events/indicator.js","webpack:///./js/admin/columns/events/label.js","webpack:///./js/admin/columns/events/refresh.js","webpack:///./js/admin/columns/events/remove.js","webpack:///./js/admin/columns/events/toggle.js","webpack:///./js/admin/columns/events/type-selector.js","webpack:///./js/admin/columns/feedback.js","webpack:///./js/admin/columns/form.js","webpack:///./js/admin/columns/initiator.js","webpack:///./js/admin/columns/listscreen-initialize.js","webpack:///./js/admin/columns/menu.js","webpack:///./js/admin/columns/settings/custom-field.js","webpack:///./js/admin/columns/settings/date.js","webpack:///./js/admin/columns/settings/image-size.js","webpack:///./js/admin/columns/settings/label.js","webpack:///./js/admin/columns/settings/number-format.js","webpack:///./js/admin/columns/settings/pro.js","webpack:///./js/admin/columns/settings/sub-setting-toggle.js","webpack:///./js/admin/columns/settings/type.js","webpack:///./js/admin/columns/settings/width.js","webpack:///./js/modules/modal.ts","webpack:///./js/modules/screen-option.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./js/select2/excludegroup.matcher.js","webpack:///./node_modules/admin-columns-js/polyfill/customevent.js","webpack:///./node_modules/admin-columns-js/polyfill/nodelist.js","webpack:///./node_modules/nanoassert/index.js","webpack:///./node_modules/nanobus/index.js","webpack:///./node_modules/nanoscheduler/index.js","webpack:///./node_modules/nanotiming/browser.js","webpack:///./node_modules/remove-array-items/index.js","webpack:///(webpack)/buildin/global.js","webpack:///external \"jQuery\""],"names":["require","AC","Column","Initiator","jQuery","document","on","AdminColumns","Tooltips","Tooltip","registerEvent","EventToggle","EventRemove","EventClone","EventRefresh","EventTypeSelector","EventIndicator","EventLabel","EventLabelSettings","EventAddons","registerSetting","SettingDate","SettingImageSize","SettingPro","SettingSubSettingToggle","SettingWidth","SettingCustomField","SettingNumberFormat","SettingTypeSelector","SettingLabel","ready","Form","init","Modals","register","Modal","querySelector","Menu","Feedback","forEach","hook","ac_pointers","e","column","setTimeout","hasOwnProperty","Object","keys","uninitialized_list_screens","length","ListScreenInitializeController","ScreenOptions","querySelectorAll","el","name","dataset","acScreenOption","ScreenOption","showColumnId","addEventListener","checked","classList","add","remove","showColumnType","showListScreenId","showListScreenType","STATES","CLOSED","OPEN","$el","settings","state","_type","data","defineProperty","prototype","get","set","enumerable","configurable","type","isOriginal","isDisabled","hasClass","disable","addClass","enable","removeClass","initNewInstance","temp_column_name","getNewIncementalName","original_column_name","find","each","i","v","$input","attr","replace","incremental_column_name","bindEvents","events","key","isBound","bind","bindSettings","trigger","destroy","duration","self","animate","opacity","height","getState","toggle","close","open","slideUp","slideDown","showMessage","message","html","show","switchToType","ajax","url","ajaxurl","method","dataType","action","id","serialize","current_original_columns","originalColumns","original_columns","_ajax_nonce","success","response","replaceWith","error","refresh","serializeArray","request_data","column_name","value","push","create","clone","$clone","addons","$","$column","inputs","closest","val","label","additional","click","preventDefault","cloneColumn","indicator","$indicator","setting","$setting","unbind","toggleClass","filter","prop","change","$label","field_label","text","column_label","trim","width","hover","parents","hide","always","fail","i18n","errors","loading_column","removeColumn","css","selector","reindexColumns","$box","form","$form","$column_container","$container","columns","_validators","initColumns","bindFormEvents","bindOrdering","disableFields","sortable","items","handle","validateForm","_this","valid","validator","call","addValidator","$buttons","submitForm","removeAttr","addColumn","$boxes","col","resetColumns","elements","readOnly","setAttribute","enableFields","xhr","post","save_settings","attr_class","$msg","stop","prepend","_addColumnToForm","getListScreen","getListScreenID","getTitle","getColumnSettings","$after","insertAfter","append","isInViewport","scrollTop","offset","top","elementTop","elementBottom","outerHeight","viewportTop","window","viewportBottom","incremental_name","k","console","event","oldName","nanobus","ListscreenInitialize","list_screens","processed","doAjaxCall","list_screen","screen_link","run","processListScreen","onFinish","emit","checkFinish","done","r","_a","main_initializer","location","href","Date","now","background_initializer","submit","next","SingleCustomFieldRequestManager","meta_type","post_type","loading","retrieveOptions","getOptions","defer","Deferred","resolve","reject","results","promise","loadSingleRequestManager","AC_Requests","global","CustomField","input","request","editingAvailable","removeAttribute","ac_select2","theme","tags","dropdownCssClass","customfield","date","$radio_custom","$input_custom","$input_value","$example_custom","$selected","$help_msg","$input_container","date_format","description","$custom_value","Image","field","initState","getValue","showSubsettings","hideSubsettings","subsetting","style","display","setValue","setWidth","setHeight","setSize","dispatchEvent","Event","image","Label","iconpicker","_dashicon","modal","initValue","createRange","createContextualFragment","dashicon","cls","indexOf","icon","parentElement","setIconSelection","getIconSelection","setDashicon","icons","selection","innerHTML","visibility","NumberFormat","refreshPreview","getExampleRequest","example","preview","innerText","decimals","decimal_point","thousands_point","number","numberformat","number_format","pro","value_show","subfield","$subfields","$settings","TypeSelector","select","escapeMarkup","templateResult","result","includes","matcher","excludeGroupsMather","typeSelector","fn","column_width_slider","$column_width","input_width","input_unit","unit","slider","range","min","max","slide","ui","$width_indicator","_width","_unit","width_unit_select","width_input","_new_width","isNumeric","substring","dialog","initEvents","keyName","isOpen","dismissButtons","b","target","contains","onClose","onOpen","element","getInput","persist","option_name","option_value","initAcTooltips","content","acTip","tip","createTooltip","acTooltipInit","body","appendChild","bodyOffset","getBoundingClientRect","viewportOffset","left","offsetWidth","offsetHeight","createElement","params","term","children","filteredChildren","idx","child","toUpperCase","modifiedData","extend"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QAC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;;ACrBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC,SAAS;AAClD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;;;;;;;;;;;ACjKA,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACtDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;;AAEb;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AC/CY;;AAEZ;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA;;;;;;;;;;;;AC1BA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;ACnBA,wB","file":"admin-page-columns.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import ListScreenInitializeController from \"./admin/columns/listscreen-initialize\";\n/**\n * AC variables. Defined in DOM.\n * @param AdminColumns {Object}\n * @param AC {Object}\n * @param AC.list_screen {String}\n * @param AC.layout {String}\n * @param AC.i81n {String}\n */\nimport Form from \"./admin/columns/form\";\nimport Initiator from \"./admin/columns/initiator\";\nimport Modal from \"./modules/modal\";\nimport Menu from \"./admin/columns/menu\";\nimport Feedback from \"./admin/columns/feedback\";\nimport Tooltip from \"./modules/tooltips\";\n/** Events */\nimport EventToggle from './admin/columns/events/toggle';\nimport EventRemove from './admin/columns/events/remove';\nimport EventClone from './admin/columns/events/clone';\nimport EventRefresh from './admin/columns/events/refresh';\nimport EventTypeSelector from './admin/columns/events/type-selector';\nimport EventIndicator from './admin/columns/events/indicator';\nimport { EventLabel, EventLabelSettings } from './admin/columns/events/label';\nimport EventAddons from './admin/columns/events/addons';\n/** Settings */\nimport SettingImageSize from './admin/columns/settings/image-size';\nimport SettingSubSettingToggle from './admin/columns/settings/sub-setting-toggle';\nimport SettingDate from './admin/columns/settings/date';\nimport SettingPro from './admin/columns/settings/pro';\nimport SettingWidth from './admin/columns/settings/width';\nimport SettingLabel from './admin/columns/settings/label';\nimport SettingCustomField from './admin/columns/settings/custom-field';\nimport SettingNumberFormat from './admin/columns/settings/number-format';\nimport SettingTypeSelector from \"./admin/columns/settings/type\";\nimport ScreenOption from \"./modules/screen-option\";\nrequire('admin-columns-js/polyfill/customevent');\nrequire('admin-columns-js/polyfill/nodelist');\nAC.Column = new Initiator(); // Todo remove from\njQuery(document).on('AC_Form_Loaded', function () {\n AdminColumns.Column = AC.Column;\n AdminColumns.Tooltips = new Tooltip();\n /** Register Events **/\n AdminColumns.Column\n .registerEvent('toggle', EventToggle)\n .registerEvent('remove', EventRemove)\n .registerEvent('clone', EventClone)\n .registerEvent('refresh', EventRefresh)\n .registerEvent('type_selector', EventTypeSelector)\n .registerEvent('indicator', EventIndicator)\n .registerEvent('label', EventLabel)\n .registerEvent('label_setting', EventLabelSettings)\n .registerEvent('addons', EventAddons)\n /** Register Settings **/\n .registerSetting('date', SettingDate)\n .registerSetting('image_size', SettingImageSize)\n .registerSetting('pro', SettingPro)\n .registerSetting('sub_setting_toggle', SettingSubSettingToggle)\n .registerSetting('width', SettingWidth)\n .registerSetting('customfield', SettingCustomField)\n .registerSetting('number_format', SettingNumberFormat)\n .registerSetting('type_selector', SettingTypeSelector)\n .registerSetting('label', SettingLabel);\n});\njQuery(document).ready(function () {\n AC.Form = new Form('#listscreen_settings');\n AdminColumns.Form = AC.Form;\n AdminColumns.Form.init();\n AdminColumns.Modals.register(new Modal(document.querySelector('#ac-modal-pro')), 'pro');\n new Menu().init();\n new Feedback('.sidebox#direct-feedback');\n ['AC_Column_Change', 'AC_Column_Refresh', 'AC_Column_Refresh'].forEach(function (hook) {\n jQuery(document).on(hook, function () { return ac_pointers(); });\n });\n jQuery(document).on('AC_Column_Created', function (e, column) {\n setTimeout(function () {\n ac_pointers();\n }, 100);\n });\n if (AC.hasOwnProperty('uninitialized_list_screens') && Object.keys(AC.uninitialized_list_screens).length > 0) {\n new ListScreenInitializeController(AC.uninitialized_list_screens);\n }\n AdminColumns.ScreenOptions = {};\n document.querySelectorAll('[data-ac-screen-option]').forEach(function (el) {\n var name = el.dataset.acScreenOption;\n AdminColumns.ScreenOptions[name] = new ScreenOption(el, name);\n });\n var showColumnId = document.querySelector('[data-ac-screen-option=\"show_column_id\"] input');\n if (showColumnId) {\n showColumnId.addEventListener('change', function () {\n showColumnId.checked\n ? document.querySelector('.ac-boxes').classList.add('show-column-id')\n : document.querySelector('.ac-boxes').classList.remove('show-column-id');\n });\n }\n var showColumnType = document.querySelector('[data-ac-screen-option=\"show_column_type\"] input');\n if (showColumnType) {\n showColumnType.addEventListener('change', function () {\n showColumnType.checked\n ? document.querySelector('.ac-boxes').classList.add('show-column-type')\n : document.querySelector('.ac-boxes').classList.remove('show-column-type');\n });\n }\n var showListScreenId = document.querySelector('[data-ac-screen-option=\"show_list_screen_id\"] input');\n if (showListScreenId) {\n showListScreenId.addEventListener('change', function () {\n showListScreenId.checked\n ? document.querySelector('.ac-admin').classList.add('show-list-screen-id')\n : document.querySelector('.ac-admin').classList.remove('show-list-screen-id');\n });\n }\n var showListScreenType = document.querySelector('[data-ac-screen-option=\"show_list_screen_type\"] input');\n if (showListScreenType) {\n showListScreenType.addEventListener('change', function () {\n showListScreenType.checked\n ? document.querySelector('.ac-admin').classList.add('show-list-screen-type')\n : document.querySelector('.ac-admin').classList.remove('show-list-screen-type');\n });\n }\n});\n","var STATES = {\n CLOSED: 'closed',\n OPEN: 'open'\n};\nvar Column = /** @class */ (function () {\n function Column($el) {\n this.$el = $el;\n this.el = $el[0];\n this.settings = [];\n this.state = STATES.CLOSED;\n this._type = this.$el.data('type');\n }\n Object.defineProperty(Column.prototype, \"name\", {\n get: function () {\n return this.$el.data('column-name');\n },\n set: function (name) {\n this.$el.data('column-name', name);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Column.prototype, \"type\", {\n get: function () {\n return this._type;\n },\n set: function (type) {\n this.$el.data('type', type);\n },\n enumerable: false,\n configurable: true\n });\n Column.prototype.isOriginal = function () {\n return (1 === this.$el.data('original'));\n };\n Column.prototype.isDisabled = function () {\n return this.$el.hasClass('disabled');\n };\n Column.prototype.disable = function () {\n this.$el.addClass('disabled');\n return this;\n };\n Column.prototype.enable = function () {\n this.$el.removeClass('disabled');\n return this;\n };\n Column.prototype.initNewInstance = function () {\n var temp_column_name = '_new_column_' + AC.Column.getNewIncementalName();\n var original_column_name = this.name;\n this.$el.find('input, select, label').each(function (i, v) {\n var $input = jQuery(v);\n // name attributes\n if ($input.attr('name')) {\n $input.attr('name', $input.attr('name').replace(\"columns[\" + original_column_name + \"]\", \"columns[\" + temp_column_name + \"]\"));\n }\n // id attributes\n if ($input.attr('id')) {\n $input.attr('id', $input.attr('id').replace(\"-\" + original_column_name + \"-\", \"-\" + temp_column_name + \"-\"));\n }\n });\n this.name = temp_column_name;\n AC.incremental_column_name++;\n return this;\n };\n /**\n *\n * @returns {Column}\n */\n Column.prototype.bindEvents = function () {\n var column = this;\n column.$el.data('column', column);\n Object.keys(AC.Column.events).forEach(function (key) {\n if (!column.isBound(key)) {\n AC.Column.events[key](column);\n column.bind(key);\n }\n });\n this.bindSettings();\n jQuery(document).trigger('AC_Column_InitSettings', [column]);\n return this;\n };\n Column.prototype.bindSettings = function () {\n var column = this;\n Object.keys(AC.Column.settings).forEach(function (key) {\n if (!column.isBound(key)) {\n AC.Column.settings[key](column);\n column.bind(key);\n }\n });\n };\n /**\n *\n * @param key\n * @returns {bool}\n */\n Column.prototype.isBound = function (key) {\n return this.$el.data(key);\n };\n Column.prototype.bind = function (key) {\n this.$el.data(key, true);\n };\n Column.prototype.destroy = function () {\n this.$el.remove();\n };\n Column.prototype.remove = function (duration) {\n if (duration === void 0) { duration = 350; }\n var self = this;\n this.$el.addClass('deleting').animate({ opacity: 0, height: 0 }, duration, function () {\n self.destroy();\n });\n };\n Column.prototype.getState = function () {\n return this.state;\n };\n Column.prototype.toggle = function (duration) {\n if (duration === void 0) { duration = 150; }\n if (this.getState() === STATES.OPEN) {\n this.close(duration);\n }\n else {\n this.open(duration);\n }\n };\n Column.prototype.close = function (duration) {\n if (duration === void 0) { duration = 0; }\n this.$el.removeClass('opened').find('.ac-column-body').slideUp(duration);\n this.state = STATES.CLOSED;\n };\n Column.prototype.open = function (duration) {\n if (duration === void 0) { duration = 0; }\n this.$el.addClass('opened').find('.ac-column-body').slideDown(duration);\n this.state = STATES.OPEN;\n };\n Column.prototype.showMessage = function (message) {\n this.$el.find('.ac-column-setting--type .msg').html(message).show();\n };\n Column.prototype.switchToType = function (type) {\n var self = this;\n return jQuery.ajax({\n url: ajaxurl,\n method: 'post',\n dataType: 'json',\n data: {\n action: 'ac-columns',\n id: 'select',\n type: type,\n data: AdminColumns.Form.serialize(),\n current_original_columns: AdminColumns.Form.originalColumns(),\n original_columns: AC.original_columns,\n _ajax_nonce: AC._ajax_nonce,\n },\n success: function (response) {\n if (true === response.success) {\n var column = jQuery(response.data);\n self.$el.replaceWith(column);\n self.$el = column;\n self.el = column[0];\n self._type = type;\n self.initNewInstance();\n self.bindEvents();\n self.open();\n jQuery(document).trigger('AC_Column_Change', [self]);\n }\n else {\n self.showMessage(response.data.error);\n }\n }\n });\n };\n Column.prototype.refresh = function () {\n var self = this;\n var data = this.$el.find(':input').serializeArray();\n var request_data = {\n action: 'ac-columns',\n id: 'refresh',\n _ajax_nonce: AC._ajax_nonce,\n data: AdminColumns.Form.serialize(),\n column_name: this.name,\n original_columns: AC.original_columns\n };\n jQuery.each(request_data, function (name, value) {\n data.push({\n name: name,\n value: value\n });\n });\n return jQuery.ajax({\n type: 'post',\n url: ajaxurl,\n data: data,\n success: function (response) {\n if (true === response.success) {\n var column = jQuery(response.data);\n self.$el.replaceWith(column);\n self.$el = column;\n self.el = column[0];\n self.bindEvents();\n if (self.getState() === STATES.OPEN) {\n self.open();\n }\n jQuery(document).trigger('AC_Column_Refresh', [self]);\n }\n }\n });\n };\n /**\n * @returns {Column}\n */\n Column.prototype.create = function () {\n this.initNewInstance();\n this.bindEvents();\n jQuery(document).trigger('AC_Column_Created', [this]);\n return this;\n };\n /**\n * @returns {Column}\n */\n Column.prototype.clone = function () {\n var $clone = this.$el.clone();\n $clone.data('column-name', this.$el.data('column-name'));\n var clone = new Column($clone);\n clone.initNewInstance();\n clone.bindEvents();\n return clone;\n };\n return Column;\n}());\nexport default Column;\n","/*\n * Optional Radio Click events\n * TODO: Is not used anymore?\n */\nvar addons = function (column) {\n var $ = jQuery;\n var $column = column.$el;\n var inputs = $column.find('[data-trigger] label');\n inputs.on('click', function () {\n var id = $(this).closest('td.input').data('trigger');\n var state = $('input', this).val();\n // Toggle indicator icon\n var label = $column.find('[data-indicator-id=\"' + id + '\"]').removeClass('on');\n if ('on' === state) {\n label.addClass('on');\n }\n // Toggle additional options\n var additional = $column.find('[data-handle=\"' + id + '\"]').addClass('hide');\n if ('on' === state) {\n additional.removeClass('hide');\n }\n });\n // On load\n $column.find('[data-trigger]').each(function () {\n var trigger = $(this).data('trigger');\n // Hide additional column settings\n var additional = $column.find('[data-handle=\"' + trigger + '\"]').addClass('hide');\n if ('on' === $('input:checked', this).val()) {\n additional.removeClass('hide');\n }\n });\n};\nexport default addons;\n","/*\n* Column: bind clone events\n*\n* @since 2.0\n*/\nvar clone = function (column) {\n column.$el.find('.clone-button').click(function (e) {\n e.preventDefault();\n if (column.isOriginal()) {\n return;\n }\n AdminColumns.Form.cloneColumn(column.$el);\n });\n};\nexport default clone;\n","var indicator = function (column) {\n var $column = column.$el;\n $column.find('.ac-column-header [data-indicator-toggle]').each(function () {\n var $ = jQuery;\n var $indicator = $(this);\n var setting = $(this).data('setting');\n var $setting = $column.find('.ac-column-setting[data-setting=' + setting + ']');\n var $input = $setting.find('.col-input:first .ac-setting-input:first input[type=radio]');\n $indicator.unbind('click').on('click', function (e) {\n e.preventDefault();\n if ($column.hasClass('disabled')) {\n return;\n }\n $indicator.toggleClass('on');\n if ($(this).hasClass('on')) {\n $input.filter('[value=on]').prop('checked', true).trigger('click').trigger('change');\n }\n else {\n $input.filter('[value=off]').prop('checked', true).trigger('click').trigger('change');\n }\n });\n $input.on('change', function () {\n if ($column.hasClass('disabled')) {\n return;\n }\n var value = $input.filter(':checked').val();\n if ('on' === value) {\n $indicator.addClass('on');\n }\n else {\n $indicator.removeClass('on');\n }\n });\n });\n};\nexport default indicator;\n","var EventLabel = function (column) {\n var $column = column.$el;\n /**\n * Populates the main Label with the selected label from the dropdown,\n */\n $column.find('select[data-label=\"update\"]').change(function () {\n var $label = $column.find('input.ac-setting-input_label');\n var field_label = jQuery(this).find('option:selected').text();\n // Set new label\n $label.val(field_label);\n $label.trigger('change');\n });\n /** When an label contains an icon or span, the displayed label can appear empty. In this case we show the \"type\" label. */\n setTimeout(function () {\n var column_label = $column.find('.column_label .toggle');\n if (jQuery.trim(column_label.html()) && column_label.width() < 1) {\n column_label.html($column.find('.column_type .inner').html());\n }\n }, 50);\n};\nvar EventLabelSettings = function (column) {\n var $column = column.$el;\n /** change label */\n $column.find('.ac-column-setting--label input').bind('keyup change', function () {\n var value = jQuery(this).val();\n jQuery(this).closest('.ac-column').find('td.column_label .inner > a.toggle').html(value);\n }).trigger('change');\n /** tooltip */\n $column.find('.ac-column-body .col-label .label').hover(function () {\n jQuery(this).parents('.col-label').find('div.tooltip').show();\n }, function () {\n jQuery(this).parents('.col-label').find('div.tooltip').hide();\n });\n};\nexport { EventLabel, EventLabelSettings };\n","var refresh = function (column) {\n var $ = jQuery;\n column.$el.find('[data-refresh=\"column\"]').on('change', function () {\n // Allow plugins to hook into this event\n $(document).trigger('AC.column.prerefresh', column.$el);\n column.$el.addClass('loading');\n setTimeout(function () {\n column.refresh().always(function () {\n column.$el.removeClass('loading');\n }).fail(function () {\n column.showMessage(AC.i18n.errors.loading_column);\n });\n }, 200);\n });\n};\nexport default refresh;\n","/*\n * Column: bind remove events\n *\n * @since 2.0\n */\nvar remove = function (column) {\n column.$el.find('.remove-button').click(function (e) {\n e.preventDefault();\n AdminColumns.Form.removeColumn(column.name);\n });\n};\nexport default remove;\n","/*\n * Column: bind toggle events\n *\n * For performance we bind all other events after the click event.\n *\n * @since 2.0\n */\nvar toggle = function (column) {\n column.$el.find('[data-toggle=\"column\"]').click(function (e) {\n e.preventDefault();\n column.toggle();\n }).css('cursor', 'pointer');\n};\nexport default toggle;\n","var selector = function (column) {\n var $ = jQuery;\n column.$el.find('select.ac-setting-input_type').change(function () {\n column.$el.addClass('loading');\n column.switchToType($(this).val()).always(function () {\n column.$el.removeClass('loading');\n AdminColumns.Form.reindexColumns();\n }).fail(function () {\n column.showMessage(AC.i18n.errors.loading_column);\n });\n });\n};\nexport default selector;\n","var Feedback = /** @class */ (function () {\n function Feedback($el) {\n this.$el = jQuery($el);\n this.init();\n }\n Feedback.prototype.init = function () {\n var $box = this.$el;\n $box.find('#feedback-choice a.no').click(function (e) {\n e.preventDefault();\n $box.find('#feedback-choice').slideUp();\n $box.find('#feedback-support').slideDown();\n });\n $box.find('#feedback-choice a.yes').click(function (e) {\n e.preventDefault();\n $box.find('#feedback-choice').slideUp();\n $box.find('#feedback-rate').slideDown();\n });\n };\n ;\n return Feedback;\n}());\nexport default Feedback;\n","import Column from \"./column\";\nvar Form = /** @class */ (function () {\n function Form(el) {\n this.form = el;\n this.$form = jQuery(el);\n this.$column_container = this.$form.find('.ac-columns');\n this.$container = jQuery('#cpac .ac-admin');\n this.columns = {};\n this._validators = [];\n jQuery(document).trigger('AC_Form_Loaded');\n }\n Form.prototype.init = function () {\n this.initColumns();\n this.bindFormEvents();\n this.bindOrdering();\n if (this.$form.hasClass('-disabled')) {\n this.disableFields();\n }\n jQuery(document).trigger('AC_Form_Ready', this);\n };\n Form.prototype.bindOrdering = function () {\n if (this.$form.hasClass('ui-sortable')) {\n this.$form.sortable('refresh');\n }\n else {\n this.$form.sortable({\n items: '.ac-column',\n handle: '.column_sort'\n });\n }\n };\n Form.prototype.originalColumns = function () {\n var self = this;\n var columns = [];\n Object.keys(self.columns).forEach(function (key) {\n var column = self.columns[key];\n if (column.isOriginal()) {\n columns.push(column.type);\n }\n });\n return columns;\n };\n Form.prototype.validateForm = function () {\n var _this = this;\n var valid = true;\n this._validators.forEach(function (validator) {\n valid = validator.call(_this, _this);\n });\n return valid;\n };\n Form.prototype.addValidator = function (validator) {\n this._validators.push(validator);\n };\n Form.prototype.bindFormEvents = function () {\n var self = this;\n var $buttons = jQuery('.sidebox a.submit, .column-footer a.submit');\n $buttons.on('click', function () {\n if (!self.validateForm()) {\n return;\n }\n $buttons.attr('disabled', 'disabled');\n self.$container.addClass('saving');\n self.submitForm().always(function () {\n $buttons.removeAttr('disabled', 'disabled');\n self.$container.removeClass('saving');\n });\n });\n self.$container.find('.add_column').on('click', function () {\n self.addColumn();\n });\n var $boxes = jQuery('#cpac .ac-boxes');\n if ($boxes.hasClass('disabled')) {\n $boxes.find('.ac-column').each(function (i, col) {\n jQuery(col).data('column').disable();\n jQuery(col).find('input, select').prop('disabled', true);\n });\n }\n jQuery('a[data-clear-columns]').on('click', function () {\n self.resetColumns();\n });\n };\n Form.prototype.initColumns = function () {\n var self = this;\n self.columns = {};\n this.$form.find('.ac-column').each(function () {\n var $el = jQuery(this);\n var column = new Column($el);\n column.bindEvents();\n $el.data('column', column);\n self.columns[column.name] = column;\n });\n };\n Form.prototype.reindexColumns = function () {\n var self = this;\n self.columns = {};\n this.$form.find('.ac-column').each(function () {\n var column = jQuery(this).data('column');\n self.columns[column.name] = column;\n });\n };\n Form.prototype.resetColumns = function () {\n var _this = this;\n Object.keys(this.columns).forEach(function (key) {\n var column = _this.columns[key];\n column.destroy();\n });\n };\n Form.prototype.serialize = function () {\n return this.$form.serialize();\n };\n Form.prototype.disableFields = function () {\n var form = document.querySelector(this.form);\n if (!form) {\n return;\n }\n var elements = form.elements;\n for (var i = 0; i < elements.length; i++) {\n elements[i].readOnly = true;\n elements[i].setAttribute('disabled', true);\n }\n };\n Form.prototype.enableFields = function () {\n };\n Form.prototype.submitForm = function () {\n var self = this;\n var xhr = jQuery.post(ajaxurl, {\n action: 'ac-columns',\n id: 'save',\n _ajax_nonce: AC._ajax_nonce,\n data: this.serialize(),\n }, function (response) {\n if (response) {\n if (response.success) {\n self.showMessage(response.data, 'updated');\n self.$container.addClass('stored');\n }\n // Error message\n else if (response.data) {\n self.showMessage(response.data.message, 'notice notice-warning');\n }\n }\n }, 'json');\n // No JSON\n xhr.fail(function (error) {\n self.showMessage(AC.i18n.errors.save_settings, 'notice notice-warning');\n });\n jQuery(document).trigger('AC_Form_AfterUpdate', [self.$container]);\n return xhr;\n };\n Form.prototype.showMessage = function (message, attr_class) {\n if (attr_class === void 0) { attr_class = 'updated'; }\n var $msg = jQuery('<div class=\"ac-message hidden ' + attr_class + '\"><p>' + message + '</p></div>');\n this.$container.find('.ac-message').stop().remove();\n this.$container.find('.ac-admin__main').prepend($msg);\n $msg.slideDown();\n };\n Form.prototype.cloneColumn = function ($el) {\n return this._addColumnToForm(new Column($el).clone(), $el.hasClass('opened'), $el);\n };\n Form.prototype.addColumn = function () {\n var $clone = jQuery('#add-new-column-template').find('.ac-column').clone();\n var column = new Column($clone).create();\n return this._addColumnToForm(column);\n };\n Form.prototype.removeColumn = function (name) {\n if (this.columns[name]) {\n this.columns[name].remove();\n delete this.columns[name];\n }\n };\n Form.prototype.getListScreen = function () {\n return this.$form.find('input[name=\"list_screen\"]').val();\n };\n Form.prototype.getListScreenID = function () {\n return this.$form.find('input[name=\"list_screen_id\"]').val();\n };\n Form.prototype.getTitle = function () {\n return this.$form.find('input[name=\"title\"]').val();\n };\n Form.prototype.getColumnSettings = function () {\n return this.$form.find('[name^=\"columns[\"]').serialize();\n };\n Form.prototype._addColumnToForm = function (column, open, $after) {\n if (open === void 0) { open = true; }\n if ($after === void 0) { $after = null; }\n this.columns[column.name] = column;\n if ($after) {\n column.$el.insertAfter($after);\n }\n else {\n this.$column_container.append(column.$el);\n }\n if (open) {\n column.open();\n }\n column.$el.hide().slideDown();\n jQuery(document).trigger('AC_Column_Added', [column]);\n if (!isInViewport(column.$el)) {\n jQuery('html, body').animate({ scrollTop: column.$el.offset().top - 58 }, 300);\n }\n return column;\n };\n return Form;\n}());\nexport default Form;\nvar isInViewport = function ($el) {\n var elementTop = $el.offset().top;\n var elementBottom = elementTop + $el.outerHeight();\n var viewportTop = jQuery(window).scrollTop();\n var viewportBottom = viewportTop + jQuery(window).height();\n return elementBottom > viewportTop && elementTop < viewportBottom;\n};\n","var Initiator = /** @class */ (function () {\n function Initiator() {\n this.events = {};\n this.settings = {};\n this.incremental_name = 0;\n }\n Initiator.prototype.registerSetting = function (k, setting) {\n var key = 's_' + k;\n if (this.settings[key]) {\n console.error('Setting key already exists: ' + k);\n }\n this.settings[key] = setting;\n return this;\n };\n Initiator.prototype.registerEvent = function (k, event) {\n var key = 'e_' + k;\n if (this.settings[key]) {\n console.error('Event key already exists: ' + key);\n }\n this.events[key] = event;\n return this;\n };\n Initiator.prototype.getNewIncementalName = function () {\n var oldName = this.incremental_name;\n this.incremental_name++;\n return oldName;\n };\n return Initiator;\n}());\nexport default Initiator;\n","var nanobus = require('nanobus');\nvar ListscreenInitialize = /** @class */ (function () {\n function ListscreenInitialize(list_screens) {\n this.list_screens = list_screens;\n this.processed = [];\n this.errors = [];\n this.success = [];\n this.events = nanobus();\n }\n ListscreenInitialize.prototype.doAjaxCall = function (list_screen) {\n return jQuery.ajax({\n url: list_screen.screen_link,\n method: 'get',\n });\n };\n ListscreenInitialize.prototype.run = function () {\n var _this = this;\n Object.keys(this.list_screens).forEach(function (key) {\n _this.processListScreen(_this.list_screens[key]);\n });\n };\n ListscreenInitialize.prototype.onFinish = function () {\n if (this.success.length === Object.keys(this.list_screens).length) {\n this.events.emit('success');\n }\n if (this.errors.length > 0) {\n this.events.emit('error');\n }\n };\n ListscreenInitialize.prototype.checkFinish = function () {\n if (this.processed.length === Object.keys(this.list_screens).length) {\n this.onFinish();\n }\n };\n ListscreenInitialize.prototype.processListScreen = function (list_screen) {\n var _this = this;\n return this.doAjaxCall(list_screen)\n .done(function (r) {\n if (r === 'ac_success') {\n _this.success.push(list_screen);\n }\n else {\n _this.errors.push(list_screen);\n }\n })\n .fail(function () {\n _this.errors.push(list_screen);\n })\n .always(function () {\n _this.processed.push(list_screen);\n _this.checkFinish();\n });\n };\n return ListscreenInitialize;\n}());\nvar ListScreenInitializeController = /** @class */ (function () {\n function ListScreenInitializeController(list_screens) {\n this.list_screens = list_screens;\n this.run();\n }\n ListScreenInitializeController.prototype.run = function () {\n var _a;\n if (Object.keys(this.list_screens).length > 0) {\n // Only load main screen first if unitialized, otherwise do the rest in background\n if (this.list_screens.hasOwnProperty(AC.list_screen)) {\n var main_initializer = new ListscreenInitialize((_a = {}, _a[AC.list_screen] = this.list_screens[AC.list_screen], _a));\n main_initializer.run();\n main_initializer.events.on('error', function () {\n document.querySelectorAll('.ac-loading-msg-wrapper').forEach(function (el) { return el.remove(); });\n document.querySelectorAll('.menu').forEach(function (el) { return el.classList.remove('hidden'); });\n });\n main_initializer.events.on('success', function () {\n window.location = location.href + \"&t=\" + Date.now();\n });\n }\n else {\n var background_initializer = new ListscreenInitialize(this.list_screens);\n background_initializer.run();\n }\n }\n };\n return ListScreenInitializeController;\n}());\nexport default ListScreenInitializeController;\n","var Menu = /** @class */ (function () {\n function Menu() {\n }\n Menu.prototype.init = function () {\n var $ = jQuery;\n $('#ac_list_screen').on('change', function () {\n $('.view-link').hide();\n $(this).parents('form').submit();\n $(this).prop('disabled', true).next('.spinner').css('display', 'inline-block');\n });\n };\n return Menu;\n}());\nexport default Menu;\n","var nanobus = require('nanobus');\nvar SingleCustomFieldRequestManager = /** @class */ (function () {\n function SingleCustomFieldRequestManager(meta_type, post_type) {\n this.meta_type = meta_type;\n this.post_type = post_type;\n this.loading = false;\n this.data = false;\n this.events = nanobus();\n }\n SingleCustomFieldRequestManager.prototype.retrieveOptions = function () {\n this.loading = true;\n return jQuery.ajax({\n url: ajaxurl,\n dataType: 'json',\n method: 'post',\n data: {\n action: 'ac_custom_field_options',\n post_type: this.post_type,\n meta_type: this.meta_type,\n _ajax_nonce: AC._ajax_nonce\n }\n });\n };\n SingleCustomFieldRequestManager.prototype.getOptions = function () {\n var _this = this;\n var defer = jQuery.Deferred();\n if (this.data) {\n defer.resolve(this.data);\n }\n else if (this.loading) {\n this.events.on('loaded', function () {\n defer.resolve(_this.data);\n });\n }\n else {\n this.retrieveOptions().done(function (response) {\n if (!response.success) {\n defer.reject();\n }\n _this.data = response.data.results;\n _this.events.emit('loaded');\n defer.resolve(_this.data);\n });\n }\n return defer.promise();\n };\n return SingleCustomFieldRequestManager;\n}());\nvar loadSingleRequestManager = function (meta_type, post_type) {\n var key = \"custom_field_\" + meta_type + \"_\" + post_type;\n if (typeof AC_Requests === 'undefined') {\n global.AC_Requests = {};\n }\n if (!AC_Requests.hasOwnProperty(key)) {\n AC_Requests[key] = new SingleCustomFieldRequestManager(meta_type, post_type);\n }\n return AC_Requests[key];\n};\nvar CustomField = /** @class */ (function () {\n function CustomField(column) {\n this.column = column;\n this.setting = column.$el[0].querySelector('.ac-column-setting--custom_field');\n if (!this.setting || !this.setting.querySelector('.custom_field')) {\n return;\n }\n this.bindEvents();\n }\n CustomField.prototype.bindEvents = function () {\n var input = this.setting.querySelector('.custom_field');\n var request = loadSingleRequestManager(input.dataset.type, input.dataset.post_type);\n var editingAvailable = this.column.el.querySelectorAll('[data-setting=\"edit\"][data-indicator-toggle]').length > 0;\n // Ensure you won't get any duplicates on clone\n input.querySelectorAll('optgroup').forEach(function (el) {\n el.remove();\n });\n input.removeAttribute('data-select2-id');\n this.setting.querySelectorAll('.select2').forEach(function (el) {\n el.remove();\n });\n request.getOptions().done(function (data) {\n jQuery(input).ac_select2({\n theme: 'acs2',\n width: '100%',\n tags: editingAvailable,\n dropdownCssClass: '-customfields',\n data: data\n });\n });\n };\n return CustomField;\n}());\nvar customfield = function (column) {\n column.settings.customfield = new CustomField(column);\n};\nexport default customfield;\n","var date = function (column) {\n var $ = jQuery;\n var $column = column.$el;\n var $setting = $column.find('.ac-column-setting--date');\n $setting.each(function () {\n var $container = $(this);\n // Custom input\n var $radio_custom = $container.find('input.custom');\n var $input_custom = $container.find('.ac-setting-input-date__custom');\n var $input_value = $container.find('.ac-setting-input-date__value');\n var $example_custom = $container.find('.ac-setting-input-date__example');\n var $selected = $container.find('input[type=radio]:checked');\n var $help_msg = $container.find('.help-msg');\n // Click Event\n $container.find('input[type=radio]').on('change', function () {\n var $input = $(this);\n var $input_container = $input.closest('label');\n var date_format = $input_container.find('code').text();\n var description = $input_container.find('.ac-setting-input-date__more').html();\n if (date_format) {\n $input_custom.val(date_format).trigger('change');\n }\n if ($input.hasClass('diff')) {\n $input_custom.val('');\n $example_custom.text('');\n }\n $input_custom.prop('disabled', true);\n // Custom input selected\n if ($input.hasClass('custom')) {\n $input.val($input_custom.val());\n $input_custom.prop('disabled', false);\n $help_msg.show();\n }\n // Show more description\n $help_msg.hide();\n if (description) {\n $help_msg.html(description).show();\n }\n $input_value.val($input.val());\n });\n // Custom input\n $input_custom.on('change', function () {\n $example_custom.html('<span class=\"spinner is-active\"></span>');\n $radio_custom.val($input_custom.val());\n var $custom_value = $(this).val();\n if (!$custom_value) {\n $example_custom.text('');\n return;\n }\n $.ajax({\n url: ajaxurl,\n method: 'post',\n data: {\n action: 'date_format',\n date: $custom_value\n }\n }).done(function (date) {\n $example_custom.text(date);\n });\n $input_value.val($custom_value);\n });\n // Update date example box\n $selected.trigger('change');\n // Select custom input as a default\n if (0 === $selected.length) {\n $radio_custom.trigger('click');\n }\n });\n};\nexport default date;\n","var Image = /** @class */ (function () {\n function Image(column) {\n this.column = column;\n this.setting = column.$el[0].querySelector('.ac-column-setting--image');\n if (!this.setting) {\n return;\n }\n this.field = this.setting.querySelector('.ac-setting-input select');\n this.initState();\n this.bindEvents();\n }\n Image.prototype.getValue = function () {\n return this.field.value;\n };\n Image.prototype.bindEvents = function () {\n var self = this;\n this.field.addEventListener('change', function (e) {\n self.initState();\n });\n };\n Image.prototype.initState = function () {\n if ('cpac-custom' === this.getValue()) {\n this.showSubsettings();\n }\n else {\n this.hideSubsettings();\n }\n };\n Image.prototype.hideSubsettings = function () {\n var subsetting = this.setting.querySelectorAll('.ac-column-setting');\n for (var i = 0; i < subsetting.length; ++i) {\n subsetting[i].style.display = 'none';\n }\n };\n Image.prototype.showSubsettings = function () {\n var subsetting = this.setting.querySelectorAll('.ac-column-setting');\n for (var i = 0; i < subsetting.length; ++i) {\n subsetting[i].style.display = 'table';\n }\n };\n Image.prototype.setValue = function (value) {\n this.field.value = value;\n this.trigger(this.field, 'change');\n return this;\n };\n Image.prototype.setWidth = function (width) {\n var field = this.setting.querySelector('.ac-column-setting [name*=\"image_size_w\"]');\n field.value = width;\n this.trigger(field, 'change');\n return this;\n };\n Image.prototype.setHeight = function (height) {\n var field = this.setting.querySelector('.ac-column-setting [name*=\"image_size_h\"]');\n field.value = height;\n this.trigger(field, 'change');\n return this;\n };\n Image.prototype.setSize = function (width, height) {\n this.setWidth(width);\n this.setHeight(height);\n return this;\n };\n Image.prototype.trigger = function (el, event) {\n el.dispatchEvent(new Event(event));\n return this;\n };\n return Image;\n}());\nvar image = function (column) {\n column.settings.image = new Image(column);\n};\nexport default image;\n","import Modal from \"../../../modules/modal\";\nvar Label = /** @class */ (function () {\n function Label(column) {\n this.column = column;\n this.setting = column.el.querySelector('.ac-column-setting--label');\n this.iconpicker = this.setting.querySelector('.-iconpicker');\n if (!this.iconpicker) {\n return;\n }\n this._dashicon = false;\n this.modal = AdminColumns.Modals.register(new Modal(this.setting.querySelector('.-iconpicker')));\n this.field = this.setting.querySelector('.ac-setting-input_label');\n this.initValue();\n this.bindEvents();\n }\n Label.prototype.initValue = function () {\n var self = this;\n var html = document.createRange().createContextualFragment(this.getValue());\n var dashicon = html.querySelector('.dashicons');\n if (dashicon) {\n var classList = dashicon.classList;\n classList.forEach(function (cls) {\n if (cls.indexOf('dashicons-') !== -1) {\n var selector = '.' + cls;\n var icon = self.iconpicker.querySelector(selector);\n if (icon) {\n icon.parentElement.classList.add('active');\n self.setIconSelection(icon.parentElement.dataset.dashicon);\n }\n }\n });\n }\n else {\n self.setIconSelection(false);\n }\n };\n Label.prototype.bindEvents = function () {\n var self = this;\n this.setting.querySelector('.ac-setting-label-icon').addEventListener('click', function (e) {\n e.preventDefault();\n self.modal.open();\n });\n this.setting.querySelector('[data-action=\"submit\"]').addEventListener('click', function (e) {\n e.preventDefault();\n if (self.getIconSelection()) {\n self.setDashicon(self.getIconSelection());\n }\n self.modal.close();\n });\n var icons = this.iconpicker.querySelectorAll('.ac-ipicker__icon');\n icons.forEach(function (icon) {\n icon.addEventListener('click', function (e) {\n e.preventDefault();\n var dashicon = this.dataset.dashicon;\n if (dashicon) {\n self.setIconSelection(dashicon);\n }\n var icons = self.setting.querySelectorAll('.ac-ipicker__icon');\n icons.forEach(function (icon) {\n icon.classList.remove('active');\n });\n icon.classList.add('active');\n });\n });\n };\n Label.prototype.getValue = function () {\n return this.field.value;\n };\n Label.prototype.setValue = function (value) {\n this.field.value = value;\n var event = new Event('change');\n this.field.dispatchEvent(event);\n };\n Label.prototype.setIconSelection = function (dashicon) {\n var selection = this.setting.querySelector('.ac-ipicker__selection');\n this._dashicon = dashicon;\n selection.innerHTML = \"<span class=\\\"dashicons dashicons-\" + dashicon + \"\\\"></span>\";\n if (!dashicon) {\n selection.style.visibility = 'hidden';\n }\n else {\n selection.style.visibility = 'visible';\n }\n };\n Label.prototype.getIconSelection = function () {\n return this._dashicon;\n };\n Label.prototype.setDashicon = function (dashicon) {\n this.setValue(\"<span class=\\\"dashicons dashicons-\" + dashicon + \"\\\"></span>\");\n };\n return Label;\n}());\nvar label = function (column) {\n column.settings.label = new Label(column);\n};\nexport default label;\n","var NumberFormat = /** @class */ (function () {\n function NumberFormat(column) {\n this.column = column;\n this.setting = column.$el[0].querySelector('.ac-column-setting--number_format');\n if (!this.setting) {\n return;\n }\n this.bindEvents();\n }\n NumberFormat.prototype.bindEvents = function () {\n var _this = this;\n this.refreshPreview();\n this.setting.querySelectorAll('input').forEach(function (el) {\n el.addEventListener('change', function (e) {\n _this.refreshPreview();\n });\n });\n };\n NumberFormat.prototype.refreshPreview = function () {\n var _this = this;\n this.getExampleRequest().done(function (example) {\n var preview = _this.setting.querySelector('[data-preview]');\n if (preview) {\n preview.innerText = example;\n }\n });\n };\n NumberFormat.prototype.getExampleRequest = function () {\n var decimals = this.setting.querySelector('.ac-setting-input_number_decimals');\n var decimal_point = this.setting.querySelector('.ac-setting-input_number_decimal_point');\n var thousands_point = this.setting.querySelector('.ac-setting-input_number_thousands_separator');\n return jQuery.ajax({\n url: ajaxurl,\n method: 'post',\n data: {\n action: 'ac_number_format',\n number: 7500,\n decimals: decimals ? decimals.value : '',\n decimal_point: decimal_point ? decimal_point.value : '',\n thousands_point: thousands_point ? thousands_point.value : '',\n }\n });\n };\n return NumberFormat;\n}());\nvar numberformat = function (column) {\n column.settings.number_format = new NumberFormat(column);\n};\nexport default numberformat;\n","var pro = function (column) {\n var $column = column.$el;\n var $setting = $column.find('.ac-column-setting--pro');\n $setting.each(function () {\n var $container = jQuery(this);\n $container.find('input').on('click', function (e) {\n e.preventDefault();\n $container.find('[data-ac-open-modal]').trigger('click');\n });\n });\n};\nexport default pro;\n","var subsetting = function (column) {\n var $ = jQuery;\n var settings = {\n value_show: \"on\",\n subfield: '.ac-column-setting'\n };\n function initState($setting, $input) {\n var value = $input.filter(':checked').val();\n var $subfields = $setting.find(settings.subfield);\n if (settings.value_show === value) {\n $subfields.show();\n }\n else {\n $subfields.hide();\n }\n }\n var $column = column.$el;\n var $settings = $column.find('.ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit');\n $settings.each(function () {\n var $setting = $(this);\n var $input = $(this).find('.ac-setting-input input[type=\"radio\"]');\n initState($setting, $input);\n $input.on('change', function () {\n initState($setting, $input);\n });\n });\n};\nexport default subsetting;\n","import excludeGroupsMather from \"../../../select2/excludegroup.matcher\";\nvar TypeSelector = /** @class */ (function () {\n function TypeSelector(column) {\n this.column = column;\n this.setting = column.$el[0].querySelector('[data-setting=\"type\"]');\n if (!this.setting) {\n return;\n }\n this.bindEvents();\n }\n TypeSelector.prototype.bindEvents = function () {\n var select = this.setting.querySelector('.ac-setting-input_type');\n if (select) {\n select.removeAttribute('data-select2-id');\n this.setting.querySelectorAll('.select2').forEach(function (el) {\n el.remove();\n });\n jQuery(select).ac_select2({\n theme: 'acs2',\n width: '100%',\n dropdownCssClass: '-type-selector',\n escapeMarkup: function (text) { return text; },\n templateResult: function (result) {\n var text = result.text;\n if (result.hasOwnProperty('id') && result.id.includes('placeholder-')) {\n text += \"<span style=\\\"background-color:#FE3D6C; color:#fff; font-size: 10px; margin-top: -1px; padding: 1px 5px; border-radius: 2px; text-transform: uppercase;float: right; margin-right 10px;\\\">PRO</span>\";\n }\n return text;\n },\n matcher: excludeGroupsMather\n });\n }\n };\n return TypeSelector;\n}());\nvar type = function (column) {\n column.settings.typeSelector = new TypeSelector(column);\n};\nexport default type;\n","// Settings fields: Width\njQuery.fn.column_width_slider = function () {\n var $ = jQuery;\n var $column_width = $(this).find('.ac-setting-input-width');\n var input_width = $column_width.find('.description input'), input_unit = $column_width.find('.unit-select input'), unit = input_unit.filter(':checked').val(), width = input_width.val(), slider = $column_width.find('.width-slider'), indicator = $(this).find('.ac-column-header .ac-column-heading-setting--width');\n // width\n if ('%' === unit && width > 100) {\n width = 100;\n }\n input_width.val(width);\n slider.slider({\n range: 'min',\n min: 0,\n max: '%' === unit ? 100 : 500,\n value: width,\n slide: function (event, ui) {\n input_width.val(ui.value);\n indicator.trigger('update');\n input_width.trigger('validate');\n }\n });\n};\nvar width = function (column) {\n var $ = jQuery;\n var $column = column.$el;\n $column.find('.ac-column-setting--width').each(function () {\n $column.column_width_slider();\n // indicator\n var $width_indicator = $column.find('.ac-column-header .ac-column-heading-setting--width');\n $width_indicator.on('update', function () {\n var _width = $column.find('.ac-setting-input-width .description input').val();\n var _unit = $column.find('.ac-setting-input-width .description .unit').text();\n if (_width > 0) {\n jQuery(this).text(_width + _unit);\n }\n else {\n jQuery(this).text('');\n }\n });\n // unit selector\n var width_unit_select = $column.find('.ac-setting-input-width .unit-select label');\n width_unit_select.on('click', function () {\n $column.find('span.unit').text($(this).find('input').val());\n $column.column_width_slider(); // re-init slider\n $width_indicator.trigger('update'); // update indicator\n });\n // width_input\n var width_input = $column.find('.ac-setting-input-width .description input')\n .on('keyup', function () {\n $column.column_width_slider(); // re-init slider\n jQuery(this).trigger('validate'); // validate input\n $width_indicator.trigger('update'); // update indicator\n })\n // width_input:validate\n .on('validate', function () {\n var _width = width_input.val();\n var _new_width = $.trim(_width);\n if (!jQuery.isNumeric(_new_width)) {\n _new_width = _new_width.replace(/\\D/g, '');\n }\n if (_new_width.length > 3) {\n _new_width = _new_width.substring(0, 3);\n }\n if (_new_width <= 0) {\n _new_width = '';\n }\n if (_new_width !== _width) {\n width_input.val(_new_width);\n }\n });\n });\n};\nexport default width;\n","var Modal = /** @class */ (function () {\n function Modal(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n Modal.prototype.initEvents = function () {\n var _this = this;\n var self = this;\n document.addEventListener('keydown', function (e) {\n var keyName = e.key;\n if (!_this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n _this.close();\n }\n });\n var dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach(function (b) {\n b.addEventListener('click', function (e) {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', function (e) {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n };\n Modal.prototype.isOpen = function () {\n return this.el.classList.contains('-active');\n };\n Modal.prototype.close = function () {\n this.onClose();\n this.el.classList.remove('-active');\n };\n Modal.prototype.open = function () {\n var _this = this;\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(function () {\n _this.onOpen();\n _this.el.removeAttribute('style');\n _this.el.classList.add('-active');\n });\n };\n Modal.prototype.destroy = function () {\n this.el.remove();\n };\n Modal.prototype.onClose = function () {\n };\n Modal.prototype.onOpen = function () {\n };\n return Modal;\n}());\nexport default Modal;\n","var $ = require(\"jquery\");\nvar ScreenOption = /** @class */ (function () {\n function ScreenOption(element, name) {\n this.name = name;\n this.element = element;\n this.init();\n }\n ScreenOption.prototype.getInput = function () {\n return this.element.querySelector('input');\n };\n ScreenOption.prototype.init = function () {\n var _this = this;\n var input = this.getInput();\n if (input) {\n input.addEventListener('change', function () {\n _this.persist();\n });\n }\n };\n ScreenOption.prototype.persist = function () {\n return $.ajax({\n url: ajaxurl,\n method: 'POST',\n data: {\n action: 'ac_admin_screen_options',\n option_name: this.name,\n option_value: this.getInput().checked ? 1 : 0,\n _ajax_nonce: AC._ajax_nonce\n }\n });\n };\n return ScreenOption;\n}());\nexport default ScreenOption;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","export default function excludeGroupsMather(params, data) {\n if (jQuery.trim(params.term) === '') {\n return data;\n }\n if (typeof data.children === 'undefined') {\n return null;\n }\n var filteredChildren = [];\n jQuery.each(data.children, function (idx, child) {\n if (child.text.toUpperCase().indexOf(params.term.toUpperCase()) > -1) {\n filteredChildren.push(child);\n }\n });\n if (filteredChildren.length) {\n var modifiedData = jQuery.extend({}, data, true);\n modifiedData.children = filteredChildren;\n return modifiedData;\n }\n return null;\n}\n","/** CustomEvent Polyfill */\n(function() {\n\n\tif ( typeof window.CustomEvent === \"function\" ) {\n\t\treturn false;\n\t}\n\n\tfunction CustomEvent( event, params ) {\n\t\tparams = params || { bubbles : false, cancelable : false, detail : undefined };\n\t\tlet evt = document.createEvent( 'CustomEvent' );\n\t\tevt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );\n\t\treturn evt;\n\t}\n\n\tCustomEvent.prototype = window.Event.prototype;\n\n\twindow.CustomEvent = CustomEvent;\n})();","if ( window.NodeList && !NodeList.prototype.forEach ) {\n\tNodeList.prototype.forEach = Array.prototype.forEach;\n}","assert.notEqual = notEqual\nassert.notOk = notOk\nassert.equal = equal\nassert.ok = assert\n\nmodule.exports = assert\n\nfunction equal (a, b, m) {\n assert(a == b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notEqual (a, b, m) {\n assert(a != b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notOk (t, m) {\n assert(!t, m)\n}\n\nfunction assert (t, m) {\n if (!t) throw new Error(m || 'AssertionError')\n}\n","var splice = require('remove-array-items')\nvar nanotiming = require('nanotiming')\nvar assert = require('assert')\n\nmodule.exports = Nanobus\n\nfunction Nanobus (name) {\n if (!(this instanceof Nanobus)) return new Nanobus(name)\n\n this._name = name || 'nanobus'\n this._starListeners = []\n this._listeners = {}\n}\n\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol')\n\n var data = []\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i])\n }\n\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\")\n var listeners = this._listeners[eventName]\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data)\n }\n\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid)\n }\n emitTiming()\n\n return this\n}\n\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.push(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].push(listener)\n }\n return this\n}\n\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.unshift(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].unshift(listener)\n }\n return this\n}\n\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function')\n\n var self = this\n this.on(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function')\n\n var self = this\n this.prependListener(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice()\n return remove(this._starListeners, listener)\n } else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice()\n }\n\n return remove(this._listeners[eventName], listener)\n }\n\n function remove (arr, listener) {\n if (!arr) return\n var index = arr.indexOf(listener)\n if (index !== -1) {\n splice(arr, index, 1)\n return true\n }\n }\n}\n\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = []\n } else {\n this._listeners[eventName] = []\n }\n } else {\n this._starListeners = []\n this._listeners = {}\n }\n return this\n}\n\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners\n\n var ret = []\n if (listeners) {\n var ilength = listeners.length\n for (var i = 0; i < ilength; i++) ret.push(listeners[i])\n }\n return ret\n}\n\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined') return\n if (arr.length === 0) return\n if (data === undefined) {\n data = eventName\n eventName = null\n }\n\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid)\n } else {\n data = [eventName].concat(data)\n }\n }\n\n var length = arr.length\n for (var i = 0; i < length; i++) {\n var listener = arr[i]\n listener.apply(listener, data)\n }\n}\n","var assert = require('assert')\n\nvar hasWindow = typeof window !== 'undefined'\n\nfunction createScheduler () {\n var scheduler\n if (hasWindow) {\n if (!window._nanoScheduler) window._nanoScheduler = new NanoScheduler(true)\n scheduler = window._nanoScheduler\n } else {\n scheduler = new NanoScheduler()\n }\n return scheduler\n}\n\nfunction NanoScheduler (hasWindow) {\n this.hasWindow = hasWindow\n this.hasIdle = this.hasWindow && window.requestIdleCallback\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout\n this.scheduled = false\n this.queue = []\n}\n\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function')\n\n this.queue.push(cb)\n this.schedule()\n}\n\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled) return\n\n this.scheduled = true\n var self = this\n this.method(function (idleDeadline) {\n var cb\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift()\n cb(idleDeadline)\n }\n self.scheduled = false\n if (self.queue.length) self.schedule()\n })\n}\n\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1\n }\n })\n}\n\nmodule.exports = createScheduler\n","var scheduler = require('nanoscheduler')()\nvar assert = require('assert')\n\nvar perf\nnanotiming.disabled = true\ntry {\n perf = window.performance\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark\n} catch (e) { }\n\nmodule.exports = nanotiming\n\nfunction nanotiming (name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string')\n\n if (nanotiming.disabled) return noop\n\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER\n var startName = 'start-' + uuid + '-' + name\n perf.mark(startName)\n\n function end (cb) {\n var endName = 'end-' + uuid + '-' + name\n perf.mark(endName)\n\n scheduler.push(function () {\n var err = null\n try {\n var measureName = name + ' [' + uuid + ']'\n perf.measure(measureName, startName, endName)\n perf.clearMarks(startName)\n perf.clearMarks(endName)\n } catch (e) { err = e }\n if (cb) cb(err, name)\n })\n }\n\n end.uuid = uuid\n return end\n}\n\nfunction noop (cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'))\n })\n }\n}\n","'use strict'\n\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems (arr, startIdx, removeCount) {\n var i, length = arr.length\n\n if (startIdx >= length || removeCount === 0) {\n return\n }\n\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount)\n\n var len = length - removeCount\n\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount]\n }\n\n arr.length = len\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = jQuery;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/admin-page-columns.ts","webpack:///./js/admin/columns/ajax.ts","webpack:///./js/admin/columns/column-configurator.ts","webpack:///./js/admin/columns/column.ts","webpack:///./js/admin/columns/events/clone.ts","webpack:///./js/admin/columns/events/indicator.ts","webpack:///./js/admin/columns/events/label.ts","webpack:///./js/admin/columns/events/refresh.ts","webpack:///./js/admin/columns/events/remove.ts","webpack:///./js/admin/columns/events/toggle.ts","webpack:///./js/admin/columns/events/type-selector.ts","webpack:///./js/admin/columns/feedback.ts","webpack:///./js/admin/columns/form.ts","webpack:///./js/admin/columns/listscreen-initialize.ts","webpack:///./js/admin/columns/screen-options.ts","webpack:///./js/admin/columns/settings/custom-field.ts","webpack:///./js/admin/columns/settings/date.ts","webpack:///./js/admin/columns/settings/image-size.ts","webpack:///./js/admin/columns/settings/label.ts","webpack:///./js/admin/columns/settings/multi-select.ts","webpack:///./js/admin/columns/settings/number-format.ts","webpack:///./js/admin/columns/settings/pro.ts","webpack:///./js/admin/columns/settings/sub-setting-toggle.ts","webpack:///./js/admin/columns/settings/type.ts","webpack:///./js/admin/columns/settings/width.ts","webpack:///./js/constants.ts","webpack:///./js/helpers/admin-columns.ts","webpack:///./js/helpers/animations.ts","webpack:///./js/helpers/elements.ts","webpack:///./js/helpers/events.ts","webpack:///./js/helpers/string.ts","webpack:///./js/modules/ac-pointer.ts","webpack:///./js/modules/ac-services.ts","webpack:///./js/modules/modal.ts","webpack:///./js/modules/modals.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./js/select2/excludegroup.matcher.js","webpack:///./node_modules/axios/index.js","webpack:///./node_modules/axios/lib/adapters/xhr.js","webpack:///./node_modules/axios/lib/axios.js","webpack:///./node_modules/axios/lib/cancel/Cancel.js","webpack:///./node_modules/axios/lib/cancel/CancelToken.js","webpack:///./node_modules/axios/lib/cancel/isCancel.js","webpack:///./node_modules/axios/lib/core/Axios.js","webpack:///./node_modules/axios/lib/core/InterceptorManager.js","webpack:///./node_modules/axios/lib/core/buildFullPath.js","webpack:///./node_modules/axios/lib/core/createError.js","webpack:///./node_modules/axios/lib/core/dispatchRequest.js","webpack:///./node_modules/axios/lib/core/enhanceError.js","webpack:///./node_modules/axios/lib/core/mergeConfig.js","webpack:///./node_modules/axios/lib/core/settle.js","webpack:///./node_modules/axios/lib/core/transformData.js","webpack:///./node_modules/axios/lib/defaults.js","webpack:///./node_modules/axios/lib/helpers/bind.js","webpack:///./node_modules/axios/lib/helpers/buildURL.js","webpack:///./node_modules/axios/lib/helpers/combineURLs.js","webpack:///./node_modules/axios/lib/helpers/cookies.js","webpack:///./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///./node_modules/axios/lib/helpers/isAxiosError.js","webpack:///./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack:///./node_modules/axios/lib/helpers/parseHeaders.js","webpack:///./node_modules/axios/lib/helpers/spread.js","webpack:///./node_modules/axios/lib/utils.js","webpack:///./node_modules/nanoassert/index.js","webpack:///./node_modules/nanobus/index.js","webpack:///./node_modules/nanoscheduler/index.js","webpack:///./node_modules/nanotiming/browser.js","webpack:///./node_modules/nodelist-foreach-polyfill/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/remove-array-items/index.js","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sD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ACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACuB;AAC0B;AACnB;AAC2B;AACQ;AACd;AACL;AAC9C;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAc;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,gBAAgB;AAClD;AACA,QAAQ,mEAAO;AACf;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,kCAAkC,gBAAgB;AAClD;AACA;AACA;AACA;AACA;AACA,kCAAkC,cAAc;AAChD;AACA,QAAQ,6CAAC;AACT;AACA;AACA;AACA,kCAAkC,cAAc;AAChD;AACA,QAAQ,6CAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,QAAQ,gBAAgB;AAC/C;AACA;AACA;AACA;AACA,qBAAqB,0BAA0B;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,8DAAgB;AACxB;AACA,8BAA8B,iFAAuB;AACrD,6BAA6B,8DAAM;AACnC;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS,uBAAuB,gCAAgC,EAAE;AAClE;AACA;AACA;AACA;AACA,QAAQ,2DAAa;AACrB;AACA,8CAA8C,iFAAuB;AACrE,yCAAyC,yDAAc;AACvD;AACA;AACA;AACA;AACA,SAAS,uBAAuB,gCAAgC,EAAE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACiB;;;;;;;;;;;;;AC7LlB;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAC0C;AACnC;AACP;AACA;AACA;AACA;AACA,mCAAmC,qDAAa;AAChD;AACA,SAAS;AACT,KAAK;AACL;;;;;;;;;;;;;ACfA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAAA;AAAqE;AAC9D;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA,QAAQ,yEAAiB,+CAA+C,wCAAwC,EAAE;AAClH;AACA;AACO;AACP;AACA,QAAQ,+DAAO,qBAAqB,qCAAqC,EAAE,eAAe,oCAAoC,EAAE;AAChI,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtCA;AAAA;AAAO;AACP;AACA;AACA;AACA,oCAAoC,yBAAyB,EAAE;AAC/D,SAAS;AACT,KAAK;AACL;;;;;;;;;;;;;ACPA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;;;;;;;;;;;;;ACPA;AAAA;AAAO;AACP;AACA,mDAAmD,wBAAwB,EAAE;AAC7E;AACA,KAAK;AACL;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AACuB;AAChB;AACP;AACA,QAAQ,6CAAC,mCAAmC,0CAA0C,EAAE;AACxF,KAAK;AACL;;;;;;;;;;;;;ACNA;AAAA;AAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,mEAAO;AACnB,gBAAgB,kEAAM;AACtB,aAAa;AACb,SAAS;AACT;AACA;AACA,YAAY,mEAAO;AACnB,gBAAgB,kEAAM;AACtB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,CAAC;AACc,uEAAQ,EAAC;;;;;;;;;;;;;ACxBxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAAc,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM,gBAAgB;AACzC;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA,gBAAgB,SAAI,IAAI,SAAI;AAC5B,4BAA4B,sBAAsB;AAClD;AACA;AACA,gBAAgB,SAAI,IAAI,SAAI;AAC5B;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACiD;AACA;AACH;AACqB;AACd;AACP;AAC9C;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAc;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAc;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,kDAAkD,EAAE;AACzG;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,+BAA+B,cAAc;AAC7C;AACA,YAAY,qEAAW;AACvB;AACA;AACA;AACA;AACA;AACA,YAAY,2EAAe,4BAA4B,cAAc;AACrE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,4BAA4B,EAAE;AACpF;AACA;AACA,6CAA6C,sBAAsB,EAAE;AACrE;AACA;AACA;AACA;AACA,6BAA6B,8CAAM;AACnC;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,kCAAkC,qDAAa;AAC/C;AACA,SAAS;AACT,kCAAkC,qDAAa;AAC/C,kCAAkC,8CAAM,sCAAsC,8DAAM;AACpF;AACA;AACA;AACA,YAAY,kEAAM;AAClB,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,gCAAgC,yDAAc;AAC9C,QAAQ,kEAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT,qCAAqC,yDAAc;AACnD,SAAS;AACT;AACA;AACA;AACA,mCAAmC,uBAAuB;AAC1D;AACA,gFAAgF,oBAAoB,EAAE;AACtG;AACA;AACA;AACA;AACA;AACA,QAAQ,kEAAM;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,UAAU;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,QAAQ,gBAAgB;AACnD;AACA;AACA;AACA;AACA,yBAAyB,0BAA0B;AACnD;AACA,SAAS;AACT;AACA;AACA;AACA,CAAC;AACe;AAChB;AACA;AACA,wBAAwB,8DAAM;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,eAAe,8CAAM;AACrB;;;;;;;;;;;;;ACtOA;AAAA;AAAA;AAAA;AAA8B;AAC9B,YAAY,mBAAO,CAAC,4CAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,mCAAmC,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACM;AACP;AACA;AACA;AACA;AACA,qEAAqE;AACrE;AACA,4FAA4F,oBAAoB,EAAE;AAClH,0EAA0E,sCAAsC,EAAE;AAClH,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACc,+EAAgB,EAAC;;;;;;;;;;;;;ACjBhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AAC9B;AACuB;AACvB,YAAY,mBAAO,CAAC,4CAAO;AACpB;AACP,oGAAoG,yCAAyC,EAAE;AAC/I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA,YAAY,6CAAC;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACzFA;AAAA;AAAA,cAAc,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,MAAM,gBAAgB;AACzC;AACA;AACA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA,gBAAgB,SAAI,IAAI,SAAI;AAC5B,4BAA4B,sBAAsB;AAClD;AACA;AACA,YAAY,mBAAO,CAAC,4CAAO;AACpB;AACP,4FAA4F,yCAAyC,EAAE;AACvI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,oDAAoD,EAAE;AAChI;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,uBAAuB,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA,0DAA0D,kCAAkC,EAAE;AAC9F,SAAS;AACT;AACA;AACA;AACA;AACA,wEAAwE,iDAAiD,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE,6BAA6B,EAAE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,8BAA8B,EAAE;AACpF,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,gCAAgC,eAAe;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,CAAC;;;;;;;;;;;;;AC1ID;AAAA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,0BAA0B,EAAE;AACvF;AACA;AACA;AACA;AACA;AACA,8BAA8B,aAAa;AAC3C,wFAAwF,wDAAwD,EAAE;AAClJ;AACA;AACA,CAAC;AAC2B;;;;;;;;;;;;;AC9B5B;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAiB,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AAC0C;AACb;AACvB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,2BAA2B,8CAAO;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,+DAA+D,sCAAsC,EAAE;AACvG;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,sDAAK;;;;;;;;;;;;;AChHP;AAAA;AAAA;AAAA;AAAA;AACuB;AAChB;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ,6CAAC;AACT;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,CAAC;;;;;;;;;;;;;AC5BD;AAAA;AAAA,YAAY,mBAAO,CAAC,4CAAO;AACpB;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,+BAA+B,EAAE;AACxF,SAAS;AACT;AACA;AACA;AACA;AACA,oFAAoF,4CAA4C,EAAE;AAClI,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,CAAC;;;;;;;;;;;;;AC9CD;AAAA;AAAA;AAAA;AAAA;AACuB;AAChB;AACP;AACA;AACA,yDAAyD,QAAQ,6CAAC,mDAAmD,EAAE;AACvH,SAAS;AACT,KAAK;AACL;;;;;;;;;;;;;ACRA;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,0BAA0B,EAAE;AACnF,SAAS;AACT;AACA;AACA;AACA,oDAAoD,mCAAmC,EAAE;AACzF,oDAAoD,kCAAkC,EAAE;AACxF;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC/BD;AAAA;AAAA;AAAA;AAAA;AAAwE;AACxE;AACuB;AAChB;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,YAAY,6CAAC;AACb;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,wEAAwE,YAAY,iBAAiB,kBAAkB,kBAAkB,oBAAoB,2BAA2B,aAAa,mBAAmB;AACxN;AACA;AACA,iBAAiB;AACjB,yBAAyB,qEAAmB;AAC5C,aAAa;AACb;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACxCD;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AAC9B;AACuB;AAChB;AACP,oGAAoG,0CAA0C,EAAE;AAChJ;AACA;AACA;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,6CAAC;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC/FD;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAgD;AACzC;AACP;AACA,iCAAiC,4DAAU;AAC3C;AACA;AACA;;;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAA,YAAY,SAAI;AACT;AACP,wBAAwB,UAAU;AAClC,wBAAwB,WAAW;AACnC,6BAA6B,mBAAmB;AAChD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS,GAAG,aAAa;AACzB;AACA;AACO;AACP,wBAAwB,UAAU;AAClC,wBAAwB,WAAW;AACnC,6BAA6B,kBAAkB;AAC/C;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK,GAAG,aAAa;AACrB;AACO;AACP,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;ACvDA;AAAA;AAAA;AAAA;AAAO;AACP;AACA;AACO;AACP;AACA;AACO;AACP,iCAAiC,qBAAqB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAO;AACP,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACO;AACP,qCAAqC,6CAA6C,EAAE;AACpF;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAO;AACP,4BAA4B,aAAa;AACzC,iCAAiC,qBAAqB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;;;;;;;;;;;;;AChBA;AAAA;AAAA;AAAA;AAAiC;AACjC,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA,uDAAuD,uBAAuB,EAAE;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACM;AACP,8BAA8B,iBAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,QAAQ,iDAAO;AACf;;;;;;;;;;;;;ACzJA;AAAA;AAAA;AAA8B;AAC9B;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,yEAAU,EAAC;;;;;;;;;;;;;ACxB1B;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,oEAAK,EAAC;;;;;;;;;;;;;AChErB;AAAA;AAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA,mBAAmB,8CAAK;AACxB;AACA;AACA;AACA;AACA,6BAA6B,UAAU;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACc,qEAAM,EAAC;;;;;;;;;;;;;ACjDtB;AAAA;AAAmD;AACnD;AACA;AACA;AACA;AACA;AACA,QAAQ,sEAAc;AACtB;AACA;AACA,CAAC;AACc,uEAAQ,EAAC;;;;;;;;;;;;;ACVxB;AAAA;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvCA;AAAA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnBA,iBAAiB,mBAAO,CAAC,sDAAa;;;;;;;;;;;;;ACAzB;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC,aAAa,mBAAO,CAAC,iEAAkB;AACvC,cAAc,mBAAO,CAAC,yEAAsB;AAC5C,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,6EAAuB;AACnD,mBAAmB,mBAAO,CAAC,mFAA2B;AACtD,sBAAsB,mBAAO,CAAC,yFAA8B;AAC5D,kBAAkB,mBAAO,CAAC,yEAAqB;AAC/C;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;ACrJa;AACb,YAAY,mBAAO,CAAC,kDAAS;AAC7B,WAAW,mBAAO,CAAC,gEAAgB;AACnC,YAAY,mBAAO,CAAC,4DAAc;AAClC,kBAAkB,mBAAO,CAAC,wEAAoB;AAC9C,eAAe,mBAAO,CAAC,wDAAY;AACnC;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,kEAAiB;AACxC,oBAAoB,mBAAO,CAAC,4EAAsB;AAClD,iBAAiB,mBAAO,CAAC,sEAAmB;AAC5C;AACA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,oEAAkB;AACzC;AACA,qBAAqB,mBAAO,CAAC,gFAAwB;AACrD;AACA;AACA;;;;;;;;;;;;;AC1Ca;AACb;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACda;AACb,aAAa,mBAAO,CAAC,2DAAU;AAC/B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChDa;AACb;AACA;AACA;;;;;;;;;;;;;ACHa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC,eAAe,mBAAO,CAAC,yEAAqB;AAC5C,yBAAyB,mBAAO,CAAC,iFAAsB;AACvD,sBAAsB,mBAAO,CAAC,2EAAmB;AACjD,kBAAkB,mBAAO,CAAC,mEAAe;AACzC;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA,+BAA+B;AAC/B,SAAS;AACT;AACA,CAAC;AACD;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC;AACD;;;;;;;;;;;;;ACnFa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AC7Ca;AACb,oBAAoB,mBAAO,CAAC,mFAA0B;AACtD,kBAAkB,mBAAO,CAAC,+EAAwB;AAClD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBa;AACb,mBAAmB,mBAAO,CAAC,qEAAgB;AAC3C;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACfa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC,oBAAoB,mBAAO,CAAC,uEAAiB;AAC7C,eAAe,mBAAO,CAAC,uEAAoB;AAC3C,eAAe,mBAAO,CAAC,yDAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,qCAAqC;AACjG;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;AC9Ca;AACb;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACtCa;AACb,YAAY,mBAAO,CAAC,mDAAU;AAC9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;;AC9Ea;AACb,kBAAkB,mBAAO,CAAC,mEAAe;AACzC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AChBA,+CAAa;AACb,YAAY,mBAAO,CAAC,kDAAS;AAC7B,0BAA0B,mBAAO,CAAC,8FAA+B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,mBAAO,CAAC,gEAAgB;AAC1C;AACA;AACA;AACA,kBAAkB,mBAAO,CAAC,iEAAiB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA;AACA;AACA,iEAAiE;AACjE;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;;;;;;;;;;;;;;ACnFa;AACb;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9Da;AACb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACZa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD,aAAa;AACb;AACA,kEAAkE,wBAAwB;AAC1F;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,qCAAqC,EAAE;AACvC,mCAAmC,aAAa,EAAE;AAClD,uCAAuC;AACvC;AACA,KAAK;;;;;;;;;;;;;ACvCQ;AACb;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACZa;AACb;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;;;;;;;;;;;;ACTa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB,kBAAkB,QAAQ;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;;;;;;;;;;;;ACvDQ;AACb,YAAY,mBAAO,CAAC,mDAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;ACTa;AACb,YAAY,mBAAO,CAAC,qDAAY;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AChDa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACzBa;AACb,WAAW,mBAAO,CAAC,gEAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,2BAA2B;AAC3B;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,OAAO;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnUA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACjBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,SAAS;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;;;;;;;;;;;;ACpJA,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;ACjDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;AC5CA;AACA;AACA;AACA,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,WAAW;AAChD;AACA;AACA;AACA,2BAA2B,YAAY;AACvC;AACA;AACA;AACA,6BAA6B,UAAU;;;;;;;;;;;;;AC9K1B;AACb;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACpBA,wB","file":"admin-page-columns.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import { Form } from \"./admin/columns/form\";\nimport { EventConstants } from \"./constants\";\nimport { initAcServices } from \"./helpers/admin-columns\";\nimport $ from 'jquery';\nimport ColumnConfigurator from \"./admin/columns/column-configurator\";\nimport Modal from \"./modules/modal\";\nimport Feedback from \"./admin/columns/feedback\";\nimport InfoScreenOption from \"./admin/columns/screen-options\";\nimport { initAcTooltips } from \"./plugin/tooltip\";\nimport { initPointers } from \"./modules/ac-pointer\";\nimport { initUninitializedListScreens } from \"./admin/columns/listscreen-initialize\";\nimport 'nodelist-foreach-polyfill';\nimport Modals from \"./modules/modals\";\nvar AcServices = initAcServices();\nAcServices.registerService('Modals', new Modals());\nnew ColumnConfigurator(AcServices);\ndocument.addEventListener('DOMContentLoaded', function () {\n initSaveHandlers();\n // Init the form\n document.querySelectorAll('#listscreen_settings').forEach(function (formElement) {\n AcServices.registerService('Form', new Form(formElement, AcServices));\n });\n // Init the Pro promotion Modal\n document.querySelectorAll('#ac-modal-pro').forEach(function (proModal) {\n AcServices.getService('Modals').register(new Modal(proModal), 'pro');\n });\n document.querySelectorAll('#ac_list_screen').forEach(function (select) {\n select.addEventListener('change', function () {\n document.querySelectorAll('.view-link').forEach(function (link) { return link.style.display = 'none'; });\n select.closest('form').submit();\n select.disabled = true;\n select.nextElementSibling.style.display = 'inline-block';\n });\n });\n document.querySelectorAll('#direct-feedback').forEach(function (feedbackElement) { return new Feedback(feedbackElement); });\n if (AC.hasOwnProperty('uninitialized_list_screens')) {\n initUninitializedListScreens(AC.uninitialized_list_screens);\n }\n // Screen Options\n document.querySelectorAll('[data-ac-screen-option=\"show_column_id\"] input').forEach(function (el) { return new InfoScreenOption(el, 'show-column-id', document.querySelector('.ac-boxes')); });\n document.querySelectorAll('[data-ac-screen-option=\"show_column_type\"] input').forEach(function (el) { return new InfoScreenOption(el, 'show-column-type', document.querySelector('.ac-boxes')); });\n document.querySelectorAll('[data-ac-screen-option=\"show_list_screen_id\"] input').forEach(function (el) { return new InfoScreenOption(el, 'show-list-screen-id', document.querySelector('.ac-admin')); });\n document.querySelectorAll('[data-ac-screen-option=\"show_list_screen_type\"] input').forEach(function (el) { return new InfoScreenOption(el, 'show-list-screen-type', document.querySelector('.ac-admin')); });\n});\nAcServices.addListener(EventConstants.SETTINGS.FORM.LOADED, function (form) {\n document.querySelectorAll('.add_column').forEach(function (el) { return el.addEventListener('click', function () { return form.createNewColumn(); }); });\n document.querySelectorAll('a[data-clear-columns]').forEach(function (el) { return el.addEventListener('click', function () { return form.resetColumns(); }); });\n // Make column settings sortable\n var $form = $(form.getElement());\n $form.hasClass('ui-sortable')\n ? $form.sortable('refresh')\n : $form.sortable({ items: '.ac-column', handle: '.column_sort' });\n});\nAcServices.addListener(EventConstants.SETTINGS.FORM.SAVING, function () {\n document.querySelector('#cpac .ac-admin').classList.add('saving');\n});\nAcServices.addListener(EventConstants.SETTINGS.FORM.SAVED, function () {\n document.querySelector('#cpac .ac-admin').classList.remove('saving');\n document.querySelector('#cpac .ac-admin').classList.add('stored');\n});\nAcServices.addListener(EventConstants.SETTINGS.COLUMN.INIT, function (column) {\n initAcTooltips();\n initPointers(column.getElement().querySelectorAll('.ac-pointer'));\n});\nvar initSaveHandlers = function () {\n var elements = document.querySelectorAll('.sidebox a.submit, .column-footer a.submit');\n AcServices.addListener(EventConstants.SETTINGS.FORM.READY, function (form) {\n elements.forEach(function (el) {\n el.addEventListener('click', function (e) {\n e.preventDefault();\n elements.forEach(function (el) { return el.setAttribute('disabled', 'disabled'); });\n form.submitForm();\n });\n });\n });\n AcServices.addListener(EventConstants.SETTINGS.FORM.SAVED, function () { return elements.forEach(function (el) { return el.removeAttribute('disabled'); }); });\n};\n","var axios = require('axios');\nvar mapDataToFormData = function (data, formData) {\n if (formData === void 0) { formData = null; }\n if (!formData) {\n formData = new FormData();\n }\n Object.keys(data).forEach(function (key) {\n formData.append(key, data[key]);\n });\n return formData;\n};\nexport var submitColumnSettings = function (data) {\n return axios.post(ajaxurl, mapDataToFormData({\n action: 'ac-columns',\n id: 'save',\n _ajax_nonce: AC._ajax_nonce,\n data: JSON.stringify(data)\n }));\n};\nexport var switchColumnType = function (type, list_screen) {\n if (list_screen === void 0) { list_screen = AC.list_screen; }\n return axios.post(ajaxurl, mapDataToFormData({\n _ajax_nonce: AC._ajax_nonce,\n action: 'ac-columns',\n current_original_columns: JSON.stringify(AC_SERVICES.getService('Form').getOriginalColumns().map(function (e) { return e.getName(); })),\n id: 'select',\n list_screen: list_screen,\n type: type,\n }));\n};\nexport var refreshColumn = function (name, data, list_screen) {\n if (list_screen === void 0) { list_screen = AC.list_screen; }\n return axios.post(ajaxurl, mapDataToFormData({\n _ajax_nonce: AC._ajax_nonce,\n action: 'ac-columns',\n column_name: name,\n data: data,\n id: 'refresh',\n list_screen: list_screen,\n }));\n};\n","import { EventConstants } from \"../../constants\";\nimport { initToggle } from \"./events/toggle\";\nimport { initIndicator } from \"./events/indicator\";\nimport { initTypeSelector } from \"./events/type-selector\";\nimport { initColumnRefresh } from \"./events/refresh\";\nimport { initRemoveColumn } from \"./events/remove\";\nimport { initClone } from \"./events/clone\";\nimport { initLabel, initLabelSettingEvents, initLabelTooltipsEvent } from \"./events/label\";\nimport { initLabelSetting } from \"./settings/label\";\nimport { initImageSizeSetting } from \"./settings/image-size\";\nimport { initNumberFormatSetting } from \"./settings/number-format\";\nimport { initColumnTypeSelectorSetting } from \"./settings/type\";\nimport { initWidthSetting } from \"./settings/width\";\nimport { initDateSetting } from \"./settings/date\";\nimport { initProSetting } from \"./settings/pro\";\nimport { initCustomFieldSelector } from \"./settings/custom-field\";\nimport { initSubSettings } from \"./settings/sub-setting-toggle\";\nimport { initMultiSelectFields } from \"./settings/multi-select\";\nvar ColumnConfigurator = /** @class */ (function () {\n function ColumnConfigurator(Services) {\n Services.addListener(EventConstants.SETTINGS.COLUMN.INIT, function (column) {\n initToggle(column);\n initIndicator(column);\n initTypeSelector(column);\n initRemoveColumn(column);\n initClone(column);\n initLabelSettingEvents(column);\n initLabelTooltipsEvent(column);\n initLabel(column);\n initColumnRefresh(column);\n initMultiSelectFields(column);\n initLabelSetting(column);\n initImageSizeSetting(column);\n initNumberFormatSetting(column);\n initColumnTypeSelectorSetting(column);\n initWidthSetting(column);\n initDateSetting(column);\n initProSetting(column);\n initCustomFieldSelector(column);\n initSubSettings(column);\n });\n }\n return ColumnConfigurator;\n}());\nexport default ColumnConfigurator;\n","var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n// @ts-ignore\nimport $ from 'jquery';\nimport { EventConstants } from \"../../constants\";\nimport Nanobus from \"nanobus\";\nimport { refreshColumn, switchColumnType } from \"./ajax\";\nimport { createElementFromString } from \"../../helpers/elements\";\nimport { fadeOut } from \"../../helpers/animations\";\nimport { uniqid } from \"../../helpers/string\";\nvar STATES = {\n CLOSED: 'closed',\n OPEN: 'open'\n};\nexport var COLUMN_EVENTS = {\n REMOVE: 'remove',\n CLONE: 'clone',\n};\nvar Column = /** @class */ (function () {\n function Column(element, name, services) {\n this.events = new Nanobus();\n this.name = name;\n this.element = element;\n this.state = STATES.CLOSED;\n this.services = services;\n this.setPropertiesByElement(element);\n this.init();\n }\n Column.prototype.setPropertiesByElement = function (element) {\n this.type = element.dataset.type;\n this.original = element.dataset.original === '1';\n this.disabled = element.classList.contains('disabled');\n element.dataset.columnName = this.name;\n return this;\n };\n Column.prototype.getName = function () {\n return this.name;\n };\n Column.prototype.getType = function () {\n return this.type;\n };\n Column.prototype.isOriginal = function () {\n return this.original;\n };\n Column.prototype.getElement = function () {\n return this.element;\n };\n Column.prototype.isDisabled = function () {\n return this.element.classList.contains('disabled');\n };\n Column.prototype.disable = function () {\n this.element.classList.add('disabled');\n return this;\n };\n Column.prototype.setLoading = function (enabled) {\n enabled\n ? this.getElement().classList.add('loading')\n : this.getElement().classList.remove('loading');\n return this;\n };\n Column.prototype.enable = function () {\n this.element.classList.remove('disabled');\n return this;\n };\n Column.prototype.init = function () {\n this.services.emitEvent(EventConstants.SETTINGS.COLUMN.INIT, this);\n return this;\n };\n Column.prototype.destroy = function () {\n this.element.remove();\n };\n Column.prototype.remove = function (duration) {\n var _this = this;\n if (duration === void 0) { duration = 350; }\n this.events.emit(COLUMN_EVENTS.REMOVE, this);\n fadeOut(this.getElement(), duration, function () {\n _this.destroy();\n });\n };\n Column.prototype.getState = function () {\n return this.state;\n };\n Column.prototype.toggle = function (duration) {\n if (duration === void 0) { duration = 150; }\n this.getState() === STATES.OPEN\n ? this.close(duration)\n : this.open(duration);\n };\n Column.prototype.close = function (duration) {\n if (duration === void 0) { duration = 0; }\n this.getElement().classList.remove('opened');\n $(this.getElement()).find('.ac-column-body').slideUp(duration);\n this.state = STATES.CLOSED;\n };\n Column.prototype.open = function (duration) {\n if (duration === void 0) { duration = 0; }\n this.getElement().classList.add('opened');\n $(this.getElement()).find('.ac-column-body').slideDown(duration);\n this.state = STATES.OPEN;\n };\n Column.prototype.isOpen = function () {\n return this.state === STATES.OPEN;\n };\n Column.prototype.showMessage = function (message) {\n var msgElement = this.getElement().querySelector('.ac-column-setting--type .msg');\n if (msgElement) {\n msgElement.innerHTML = message;\n msgElement.style.display = 'block';\n }\n };\n Column.prototype.getJson = function () {\n var e_1, _a;\n var formData = new FormData(this.getElement());\n formData.set('name', this.getName());\n var obj = {};\n try {\n // @ts-ignore\n for (var _b = __values(formData.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var entry = _c.value;\n var key = entry[0];\n var value = entry[1];\n if (this.fieldSupportsMultipleValues(key)) {\n var _value = obj.hasOwnProperty(key) ? obj[key] : [];\n _value.push(value);\n obj[key] = _value;\n }\n else {\n obj[key] = value;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return obj;\n };\n Column.prototype.switchToType = function (type) {\n var _this = this;\n this.setLoading(true);\n switchColumnType(type).then(function (response) {\n if (response.data.success) {\n var element = createElementFromString(response.data.data.trim()).firstChild;\n _this.name = uniqid();\n _this.reinitColumnFromElement(element);\n }\n else {\n _this.showMessage(response.data.data.error);\n }\n }).catch(function () {\n _this.showMessage(AC.i18n.errors.loading_column);\n }).finally(function () { return _this.setLoading(false); });\n };\n Column.prototype.refresh = function () {\n var _this = this;\n this.setLoading(true);\n refreshColumn(this.getName(), JSON.stringify(this.getJson())).then(function (response) {\n if (response.data.success) {\n _this.reinitColumnFromElement(createElementFromString(response.data.data.trim()).firstChild);\n _this.services.emitEvent(EventConstants.SETTINGS.COLUMN.REFRESHED, _this);\n }\n else {\n _this.showMessage(AC.i18n.errors.loading_column);\n }\n }).finally(function () { return _this.setLoading(false); });\n };\n Column.prototype.fieldSupportsMultipleValues = function (key) {\n var element = this.getElement().elements[key];\n return (element && element.tagName === 'SELECT' && element.hasAttribute('multiple'));\n };\n Column.prototype.reinitColumnFromElement = function (element) {\n this.getElement().parentNode.replaceChild(element, this.getElement());\n this.element = element;\n this.setPropertiesByElement(element).init().open();\n };\n return Column;\n}());\nexport { Column };\n","/*\n* Column: bind clone events\n*\n* @since 2.0\n*/\nimport { COLUMN_EVENTS } from \"../column\";\nexport var initClone = function (column) {\n column.getElement().querySelectorAll('.clone-button').forEach(function (element) {\n element.addEventListener('click', function (e) {\n e.preventDefault();\n if (!column.isOriginal()) {\n column.events.emit(COLUMN_EVENTS.CLONE);\n }\n });\n });\n};\n","export var initIndicator = function (column) {\n if (column.isDisabled())\n return;\n column.getElement().querySelectorAll('.ac-column-header [data-indicator-toggle]').forEach(function (toggleElement) {\n var relatedSettings = column.getElement().querySelectorAll(\".ac-column-setting[data-setting='\" + toggleElement.dataset.setting + \"'] .col-input .ac-setting-input:first-child input[type=radio]\");\n toggleElement.addEventListener('click', function () {\n switchTo(!toggleElement.classList.contains('on'), relatedSettings);\n });\n relatedSettings.forEach(function (element) {\n element.addEventListener('change', function () {\n element.value === 'off'\n ? toggleElement.classList.remove('on')\n : toggleElement.classList.add('on');\n });\n });\n });\n};\nvar switchTo = function (checked, elements) {\n var checkvalue = checked ? 'on' : 'off';\n elements.forEach(function (el) {\n if (el.value === checkvalue) {\n el.checked = true;\n el.dispatchEvent(new Event('change'));\n el.dispatchEvent(new Event('click'));\n }\n });\n};\n","import { addEventListeners, onHover } from \"../../../helpers/events\";\nexport var initLabel = function (column) {\n column.getElement().querySelectorAll('select[data-label=\"update\"]').forEach(function (select) {\n select.addEventListener('change', function () {\n var labelSetting = column.getElement().querySelector('input.ac-setting-input_label');\n var option = select.selectedOptions.length > 0 ? select.selectedOptions[0] : null;\n if (labelSetting && option) {\n labelSetting.value = option.innerHTML;\n labelSetting.dispatchEvent(new Event('change'));\n }\n });\n });\n setTimeout(function () {\n var label = column.getElement().querySelector('.column_label .toggle');\n if (label && label.offsetWidth < 10) {\n label.innerText = column.getType();\n }\n }, 50);\n};\nexport var initLabelSettingEvents = function (column) {\n var labelInput = column.getElement().querySelector('.ac-column-setting--label input');\n if (labelInput) {\n addEventListeners(labelInput, ['change', 'keyup'], function () { return changeLabel(labelInput, column); });\n }\n};\nexport var initLabelTooltipsEvent = function (column) {\n column.getElement().querySelectorAll('.col-label .label').forEach(function (label) {\n onHover(label, function () { return hoverTooltip(label, 'block'); }, function () { return hoverTooltip(label, 'none'); });\n });\n};\nvar hoverTooltip = function (label, display) {\n var related = label.closest('.col-label').querySelector('div.tooltip');\n if (related) {\n related.style.display = display;\n }\n};\nvar changeLabel = function (labelInput, column) {\n column.getElement().querySelector('td.column_label .inner > a.toggle').innerHTML = labelInput.value;\n};\n","export var initColumnRefresh = function (column) {\n column.getElement().querySelectorAll('[data-refresh=\"column\"]').forEach(function (element) {\n element.addEventListener('change', function () {\n // Allow other settings to do their thing first so all changes are refreshed correctly\n setTimeout(function () { return column.refresh(); }, 50);\n });\n });\n};\n","export var initRemoveColumn = function (column) {\n column.getElement().querySelectorAll('[data-remove-column]').forEach(function (element) {\n element.addEventListener('click', function (e) {\n e.preventDefault();\n column.remove();\n });\n });\n};\n","export var initToggle = function (column) {\n column.getElement().querySelectorAll('[data-toggle=\"column\"]').forEach(function (el) {\n el.addEventListener('click', function (e) { return column.toggle(); });\n el.style.cursor = 'pointer';\n });\n};\n","// @ts-ignore\nimport $ from 'jquery';\nexport var initTypeSelector = function (column) {\n column.getElement().querySelectorAll('select.ac-setting-input_type').forEach(function (select) {\n $(select).on('change', function () { return column.switchToType(select.value); });\n });\n};\n","import { fadeIn, fadeOut } from \"../../helpers/animations\";\nvar Feedback = /** @class */ (function () {\n function Feedback(element) {\n this.element = element;\n this.init();\n }\n Feedback.prototype.init = function () {\n var _this = this;\n this.element.querySelector('a.no').addEventListener('click', function (e) {\n e.preventDefault();\n fadeOut(_this.element.querySelector('#feedback-choice'), 300, function () {\n fadeIn(_this.element.querySelector('#feedback-support'), 300);\n });\n });\n this.element.querySelector('a.yes').addEventListener('click', function (e) {\n e.preventDefault();\n fadeOut(_this.element.querySelector('#feedback-choice'), 300, function () {\n fadeIn(_this.element.querySelector('#feedback-rate'), 300);\n });\n });\n };\n ;\n return Feedback;\n}());\nexport default Feedback;\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nimport { EventConstants } from \"../../constants\";\nimport { Column, COLUMN_EVENTS } from \"./column\";\nimport { submitColumnSettings } from \"./ajax\";\nimport { fadeIn, scrollToElement } from \"../../helpers/animations\";\nimport { insertAfter } from \"../../helpers/elements\";\nimport { uniqid } from \"../../helpers/string\";\nvar Form = /** @class */ (function () {\n function Form(element, services) {\n this.form = element;\n this.services = services;\n this.columns = [];\n this.services.emitEvent(EventConstants.SETTINGS.FORM.LOADED, this);\n this.init();\n }\n Form.prototype.init = function () {\n this.initColumns();\n if (this.isDisabled()) {\n this.disableFields();\n this.disableColumns();\n }\n this.services.emitEvent(EventConstants.SETTINGS.FORM.READY, this);\n };\n Form.prototype.getElement = function () {\n return this.form;\n };\n Form.prototype.getColumns = function () {\n return this.columns;\n };\n Form.prototype.getSortedColumns = function () {\n var _this = this;\n var result = [];\n this.getElement().querySelectorAll('form.ac-column').forEach(function (column) {\n var c = _this.columns.find(function (c) { return c.getName() === column.dataset.columnName; });\n if (c) {\n result.push(c);\n }\n });\n return result;\n };\n Form.prototype.placeColumn = function (column, after) {\n if (after === void 0) { after = null; }\n if (after) {\n insertAfter(column.getElement(), after);\n }\n else {\n this.getElement().querySelector('.ac-columns').append(column.getElement());\n }\n setTimeout(function () {\n scrollToElement(column.getElement(), 300, { offset: -18 });\n }, 300);\n return this;\n };\n Form.prototype.createNewColumn = function () {\n var column = createColumnFromTemplate(this.services);\n this.columns.push(column);\n this.placeColumn(column);\n this.bindColumnEvents(column);\n column.open(300);\n return column;\n };\n Form.prototype.isDisabled = function () {\n return this.form.classList.contains('-disabled');\n };\n Form.prototype.getOriginalColumns = function () {\n return this.columns.filter(function (column) { return column.isOriginal(); });\n };\n Form.prototype.disableColumns = function () {\n this.columns.forEach(function (col) { return col.disable(); });\n };\n Form.prototype.initColumns = function () {\n var _this = this;\n this.getElement().querySelectorAll('.ac-column').forEach(function (element) {\n var column = new Column(element, element.dataset.columnName, _this.services);\n _this.columns.push(column);\n _this.bindColumnEvents(column);\n });\n };\n Form.prototype.bindColumnEvents = function (column) {\n var _this = this;\n column.events.addListener(COLUMN_EVENTS.REMOVE, function () {\n _this.removeColumn(column.getName());\n });\n column.events.addListener(COLUMN_EVENTS.CLONE, function () {\n var cloneColumn = new Column(column.getElement().cloneNode(true), uniqid(), _this.services);\n _this.columns.push(cloneColumn);\n _this.placeColumn(cloneColumn, column.getElement()).bindColumnEvents(cloneColumn);\n column.isOpen() ? cloneColumn.open() : cloneColumn.close();\n fadeIn(cloneColumn.getElement(), 300);\n });\n };\n Form.prototype.resetColumns = function () {\n this.columns.forEach(function (column) {\n column.destroy();\n });\n this.columns = [];\n };\n Form.prototype.getFormData = function () {\n var columnData = {};\n var titleElement = this.getElement().querySelector('input[name=title]');\n this.getSortedColumns().forEach(function (column) {\n columnData[column.getName()] = column.getJson();\n });\n return {\n title: titleElement ? titleElement.value : '',\n list_screen: AC.list_screen,\n list_screen_id: AC.layout,\n columns: columnData,\n settings: this.getPreferences()\n };\n };\n Form.prototype.disableFields = function () {\n this.getElement().querySelectorAll('input, select, button').forEach(function (el) {\n el.setAttribute('readonly', 'readonly');\n el.setAttribute('disabled', 'disabled');\n });\n };\n Form.prototype.submitForm = function () {\n var _this = this;\n this.services.emitEvent(EventConstants.SETTINGS.FORM.SAVING, this);\n submitColumnSettings(this.getFormData()).then(function (response) {\n if (response.data.success) {\n _this.showMessage(response.data.data.message, 'updated');\n AC.layout = response.data.data.list_id;\n }\n else if (response.data) {\n var error = response.data;\n _this.showMessage(error.data.message, 'notice notice-warning');\n }\n }).catch(function () {\n _this.showMessage(AC.i18n.error.save_settings);\n }).finally(function () {\n _this.services.emitEvent(EventConstants.SETTINGS.FORM.SAVED, _this);\n });\n };\n Form.prototype.showMessage = function (message, className) {\n var _a;\n if (className === void 0) { className = 'updated'; }\n var messageContainer = document.querySelector('.ac-admin__main');\n messageContainer.querySelectorAll('.ac-message').forEach(function (el) { return el.remove(); });\n var element = document.createElement('div');\n element.classList.add('ac-message');\n (_a = element.classList).add.apply(_a, __spread(className.split(' ')));\n element.innerHTML = \"<p>\" + message + \"</p>\";\n messageContainer.insertAdjacentElement('afterbegin', element);\n fadeIn(element, 600);\n };\n Form.prototype.removeColumn = function (name) {\n var _this = this;\n this.columns.forEach(function (c, i) {\n if (name === c.getName()) {\n _this.columns.splice(i, 1);\n }\n });\n };\n Form.prototype.getPreferences = function () {\n var data = {};\n document.querySelectorAll('form[data-form-part=preferences]').forEach(function (el) {\n var e_1, _a;\n var fData = new FormData(el);\n try {\n // @ts-ignore\n for (var _b = __values(fData.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var entry = _c.value;\n var key = entry[0];\n var value = entry[1];\n var element = el.elements[key];\n data[key] = element.tagName === 'SELECT' && element.hasAttribute('multiple')\n ? fData.getAll(key)\n : data[key] = value;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n });\n return data;\n };\n return Form;\n}());\nexport { Form };\nvar createColumnFromTemplate = function (services) {\n var columnElement = document.querySelector('#add-new-column-template .ac-column').cloneNode(true);\n var newColumnName = uniqid();\n columnElement.querySelectorAll('label[for]').forEach(function (label) {\n var relatedId = label.getAttribute('for');\n if (relatedId) {\n var relatedElement = columnElement.querySelector(\"#\" + relatedId);\n if (relatedElement) {\n var newID = relatedId + newColumnName;\n label.setAttribute('for', newID);\n relatedElement.id = newID;\n }\n }\n });\n return new Column(columnElement, newColumnName, services);\n};\n","import Nanobus from \"nanobus\";\nvar axios = require('axios');\nvar ListScreenInitializer = /** @class */ (function () {\n function ListScreenInitializer(list_screens) {\n this.listScreens = list_screens;\n this.processed = [];\n this.errors = [];\n this.success = [];\n this.events = new Nanobus();\n this.run();\n }\n ListScreenInitializer.prototype.doAjaxCall = function (listScreen) {\n return axios.get(listScreen.screen_link);\n };\n ListScreenInitializer.prototype.run = function () {\n var _this = this;\n Object.values(this.listScreens).forEach(function (l) { return _this.processListScreen(l); });\n };\n ListScreenInitializer.prototype.onFinish = function () {\n if (this.success.length === Object.keys(this.listScreens).length) {\n this.events.emit('success');\n }\n if (this.errors.length > 0) {\n this.events.emit('error');\n }\n };\n ListScreenInitializer.prototype.checkFinish = function () {\n if (this.processed.length === Object.keys(this.listScreens).length) {\n this.onFinish();\n }\n };\n ListScreenInitializer.prototype.processListScreen = function (listScreen) {\n var _this = this;\n this.doAjaxCall(listScreen).then(function (response) {\n response.data === 'ac_success'\n ? _this.success.push(listScreen)\n : _this.errors.push(listScreen);\n }).catch(function () {\n _this.errors.push(listScreen);\n }).finally(function () {\n _this.processed.push(listScreen);\n _this.checkFinish();\n });\n };\n return ListScreenInitializer;\n}());\nexport var initUninitializedListScreens = function (listScreens) {\n var _a;\n if (Object.keys(listScreens).length > 0) {\n // Only load main screen first if unitialized, otherwise do the rest in background\n if (listScreens.hasOwnProperty(AC.list_screen)) {\n var main_initializer = new ListScreenInitializer((_a = {}, _a[AC.list_screen] = listScreens[AC.list_screen], _a));\n main_initializer.events.on('error', function () {\n document.querySelectorAll('.ac-loading-msg-wrapper').forEach(function (el) { return el.remove(); });\n document.querySelectorAll('.menu').forEach(function (el) { return el.classList.remove('hidden'); });\n });\n main_initializer.events.on('success', function () {\n window.location.href = location.href + \"&t=\" + Date.now();\n });\n }\n else {\n new ListScreenInitializer(listScreens);\n }\n }\n};\n","var InfoScreenOption = /** @class */ (function () {\n function InfoScreenOption(input, toggleClass, container) {\n this.input = input;\n this.toggleClass = toggleClass;\n this.container = container;\n this.initEvents();\n }\n InfoScreenOption.prototype.initEvents = function () {\n var _this = this;\n this.input.addEventListener('change', function () {\n _this.input.checked\n ? _this.container.classList.add(_this.toggleClass)\n : _this.container.classList.remove(_this.toggleClass);\n });\n };\n return InfoScreenOption;\n}());\nexport default InfoScreenOption;\n","import Nanobus from \"nanobus\";\n// @ts-ignore\nimport $ from 'jquery';\nvar axios = require('axios');\nexport var initCustomFieldSelector = function (column) {\n column.getElement().querySelectorAll('[data-setting=custom_field]').forEach(function (setting) { return new CustomField(column, setting); });\n};\nvar CustomField = /** @class */ (function () {\n function CustomField(column, setting) {\n this.column = column;\n this.setting = setting;\n this.select = setting.querySelector('.custom_field');\n this.bindEvents();\n }\n CustomField.prototype.bindEvents = function () {\n var _this = this;\n var request = loadSingleRequestManager(this.select.dataset.type, this.select.dataset.post_type);\n var editingAvailable = this.column.getElement().querySelectorAll('[data-setting=\"edit\"][data-indicator-toggle]').length > 0;\n // Ensure you won't get any duplicates on clone\n this.select.querySelectorAll('optgroup').forEach(function (el) {\n el.remove();\n });\n this.select.removeAttribute('data-select2-id');\n this.setting.querySelectorAll('.select2').forEach(function (el) {\n el.remove();\n });\n request.getOptions().then(function (data) {\n $(_this.select).ac_select2({\n theme: 'acs2',\n width: '100%',\n tags: editingAvailable,\n dropdownCssClass: '-customfields',\n data: data\n });\n });\n };\n return CustomField;\n}());\nvar SingleCustomFieldRequestManager = /** @class */ (function () {\n function SingleCustomFieldRequestManager(metaType, postType) {\n this.metaType = metaType;\n this.postType = postType;\n this.loading = false;\n this.data = null;\n this.events = new Nanobus();\n }\n SingleCustomFieldRequestManager.prototype.retrieveOptions = function () {\n this.loading = true;\n var formData = new FormData();\n formData.set('action', 'ac_custom_field_options');\n formData.set('post_type', this.postType);\n formData.set('meta_type', this.metaType);\n formData.set('_ajax_nonce', AC._ajax_nonce);\n return axios.post(ajaxurl, formData);\n };\n SingleCustomFieldRequestManager.prototype.getOptions = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n if (_this.data) {\n resolve(_this.data);\n }\n else if (_this.loading) {\n _this.events.on('loaded', function () {\n resolve(_this.data);\n });\n }\n else {\n _this.retrieveOptions().then(function (response) {\n if (!response.data.success) {\n reject();\n }\n _this.data = response.data.data.results;\n _this.events.emit('loaded');\n resolve(_this.data);\n });\n }\n });\n };\n return SingleCustomFieldRequestManager;\n}());\nvar loadSingleRequestManager = function (metaType, postType) {\n var key = \"custom_field_\" + metaType + \"_\" + postType;\n if (typeof window.AC_Requests === 'undefined') {\n window.AC_Requests = {};\n }\n if (!window.AC_Requests.hasOwnProperty(key)) {\n window.AC_Requests[key] = new SingleCustomFieldRequestManager(metaType, postType);\n }\n return window.AC_Requests[key];\n};\n","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n};\nvar axios = require('axios');\nexport var initDateSetting = function (column) {\n column.getElement().querySelectorAll('[data-setting=date]').forEach(function (setting) { return new DateSetting(column, setting); });\n};\nvar DateSetting = /** @class */ (function () {\n function DateSetting(column, setting) {\n this.column = column;\n this.setting = setting;\n this.options = this.setting.querySelectorAll('.radio-labels input[type=radio]');\n this.defaultFormat = this.setting.querySelector('.radio-labels code').textContent;\n this.valueInput = this.setting.querySelector('[data-value-input]');\n // @ts-ignore\n var customInput = __spread(this.options).filter(function (radio) { return typeof radio.dataset.custom !== 'undefined'; });\n this.customOption = new CustomOption(customInput[0], this.setting.querySelector('[data-custom-date]'), this.setting.querySelector('.ac-setting-input-date__example'), this.valueInput);\n this.initEvents();\n }\n DateSetting.prototype.getOptionsAsArray = function () {\n return Array.from(this.options);\n };\n DateSetting.prototype.getSelectionOption = function () {\n var selected = this.getOptionsAsArray().filter(function (option) { return option.checked; });\n return selected ? selected[0] : null;\n };\n DateSetting.prototype.initEvents = function () {\n var _this = this;\n this.options.forEach(function (radio) {\n radio.addEventListener('change', function () { return _this.handleUpdate(radio); });\n });\n this.setSelected();\n };\n DateSetting.prototype.setSelected = function () {\n var _this = this;\n var selected = this.getOptionsAsArray().find(function (option) { return option.value === _this.getCurrentValue(); });\n if (selected) {\n selected.checked = true;\n selected.dispatchEvent(new Event('change'));\n }\n };\n DateSetting.prototype.handleUpdate = function (input) {\n this.valueInput.value = input.value;\n this.customOption.toggle(typeof input.dataset.custom !== 'undefined');\n this.setHelpText(this.getHelpTextFromType(input.value));\n switch (this.valueInput.value) {\n case 'custom':\n break;\n case 'wp_default':\n case 'diff':\n this.customOption.setExample('');\n break;\n default:\n this.customOption.setExample(this.valueInput.value);\n }\n this.customOption.updateExample();\n };\n DateSetting.prototype.getCurrentValue = function () {\n return this.valueInput.value;\n };\n DateSetting.prototype.setHelpText = function (text) {\n var element = this.setting.querySelector('.help-msg');\n element.innerHTML = text;\n element.style.display = 'block';\n };\n DateSetting.prototype.getHelpTextFromType = function (type) {\n var input = this.getOptionsAsArray().filter(function (radio) { return radio.value === type; });\n if (!input) {\n return '';\n }\n var helpText = input[0].closest('label').querySelector('[data-help]');\n return helpText ? helpText.innerHTML : null;\n };\n return DateSetting;\n}());\nvar CustomOption = /** @class */ (function () {\n function CustomOption(radio, input, example, valueElement) {\n var _this = this;\n this.radio = radio;\n this.input = input;\n this.example = example;\n this.valueElement = valueElement;\n this.timeout = null;\n this.input.addEventListener('change', function () {\n _this.updateExample();\n if (radio.checked) {\n _this.valueElement.value = _this.input.value;\n }\n });\n this.input.addEventListener('keyup', function () {\n if (radio.checked) {\n _this.valueElement.value = _this.input.value;\n }\n if (_this.timeout) {\n clearTimeout(_this.timeout);\n }\n _this.timeout = setTimeout(function () { return _this.updateExample(); }, 500);\n });\n }\n CustomOption.prototype.setExample = function (example) {\n this.input.value = example;\n };\n CustomOption.prototype.updateExample = function () {\n var _this = this;\n this.getExample().then(function (response) {\n _this.example.innerHTML = response.data;\n });\n };\n CustomOption.prototype.toggle = function (enable) {\n if (enable === void 0) { enable = true; }\n enable\n ? this.input.removeAttribute('disabled')\n : this.input.setAttribute('disabled', 'disabled');\n };\n CustomOption.prototype.getExample = function () {\n var data = new FormData();\n data.set('action', 'date_format');\n data.set('date', this.input.value);\n return axios.post(ajaxurl, data, {});\n };\n return CustomOption;\n}());\n","export var initImageSizeSetting = function (column) {\n var setting = column.getElement().querySelector('.ac-column-setting--image');\n if (setting) {\n new ImageSizeSetting(column, setting);\n }\n};\nvar ImageSizeSetting = /** @class */ (function () {\n function ImageSizeSetting(column, setting) {\n this.column = column;\n this.setting = setting;\n this.field = this.setting.querySelector('.ac-setting-input select');\n this.initState();\n this.bindEvents();\n }\n ImageSizeSetting.prototype.getValue = function () {\n return this.field.value;\n };\n ImageSizeSetting.prototype.bindEvents = function () {\n var _this = this;\n this.field.addEventListener('change', function () { return _this.initState(); });\n };\n ImageSizeSetting.prototype.initState = function () {\n this.toggleSubSettings('cpac-custom' === this.getValue());\n };\n ImageSizeSetting.prototype.toggleSubSettings = function (show) {\n if (show === void 0) { show = true; }\n this.setting.querySelectorAll('.ac-column-setting').forEach(function (setting) { return setting.style.display = show ? 'table' : 'none'; });\n };\n return ImageSizeSetting;\n}());\nexport { ImageSizeSetting };\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport Modal from \"../../../modules/modal\";\nimport Nanobus from \"nanobus\";\nexport var initLabelSetting = function (column) {\n var setting = column.getElement().querySelector('.ac-column-setting--label');\n if (setting) {\n new LabelSetting(column, setting);\n }\n};\nvar LabelSetting = /** @class */ (function () {\n function LabelSetting(column, setting) {\n this.column = column;\n this.setting = setting;\n this.field = this.setting.querySelector('.ac-setting-input_label');\n if (column.getElement().querySelector('.-iconpicker')) {\n this.modal = new IconPickerModal(column.getElement().querySelector('.-iconpicker'));\n this.modal.setIconSelection(this.getDashIconFromValue());\n this.initEvents();\n }\n }\n LabelSetting.prototype.initEvents = function () {\n var _this = this;\n this.column.getElement().querySelectorAll('.ac-setting-label-icon').forEach(function (el) {\n el.addEventListener('click', function (e) {\n e.preventDefault();\n _this.modal.open();\n });\n });\n this.modal.onSubmit(function () {\n _this.setLabel(_this.modal.getDashIconMarkup());\n _this.modal.close();\n });\n };\n LabelSetting.prototype.getDashIconFromValue = function () {\n var html = document.createRange().createContextualFragment(this.getValue());\n var dashicon = html.querySelector('.dashicons');\n var value = null;\n if (!dashicon) {\n return value;\n }\n dashicon.classList.forEach(function (cls) {\n if (cls.indexOf('dashicons-') === 0) {\n value = cls.replace('dashicons-', '');\n }\n });\n return value;\n };\n LabelSetting.prototype.getValue = function () {\n return this.field.value;\n };\n LabelSetting.prototype.setLabel = function (label) {\n if (this.field) {\n this.field.value = label;\n this.field.dispatchEvent(new Event('change'));\n }\n };\n return LabelSetting;\n}());\nvar IconPickerModal = /** @class */ (function (_super) {\n __extends(IconPickerModal, _super);\n function IconPickerModal(element) {\n var _this = _super.call(this, element) || this;\n _this.events = new Nanobus();\n _this.dashIcon = null;\n return _this;\n }\n IconPickerModal.prototype.initEvents = function () {\n var _this = this;\n _super.prototype.initEvents.call(this);\n this.getElement().querySelectorAll('[data-action=\"submit\"]').forEach(function (element) {\n element.addEventListener('click', function (e) {\n e.preventDefault();\n _this.events.emit('submit');\n });\n });\n this.getIconElements().forEach(function (icon) {\n icon.addEventListener('click', function (e) {\n e.preventDefault();\n _this.setIconSelection(icon.dataset.dashicon);\n _this.getIconElements().forEach(function (el) { return el.classList.remove('active'); });\n icon.classList.add('active');\n });\n });\n };\n IconPickerModal.prototype.getIconElements = function () {\n return this.getElement().querySelectorAll('.ac-ipicker__icon');\n };\n IconPickerModal.prototype.onSubmit = function (cb) {\n this.events.on('submit', cb);\n };\n IconPickerModal.prototype.getDashIconMarkup = function () {\n return \"<span class=\\\"dashicons dashicons-\" + this.dashIcon + \"\\\"></span>\";\n };\n IconPickerModal.prototype.setIconSelection = function (dashicon) {\n var selection = this.getElement().querySelector('.ac-ipicker__selection');\n this.dashIcon = dashicon;\n selection.innerHTML = this.getDashIconMarkup();\n selection.style.visibility = 'visible';\n };\n return IconPickerModal;\n}(Modal));\n","// @ts-ignore\nimport $ from 'jquery';\nexport var initMultiSelectFields = function (column) {\n column.getElement().querySelectorAll('select[multiple]').forEach(function (select) {\n new MultiSelect(column, select);\n });\n};\nvar MultiSelect = /** @class */ (function () {\n function MultiSelect(column, select) {\n this.column = column;\n this.select = select;\n this.bindEvents();\n }\n MultiSelect.prototype.bindEvents = function () {\n // First remove all cloned Select2 elements\n this.select.removeAttribute('data-select2-id');\n this.select.parentElement.querySelectorAll('.select2').forEach(function (el) {\n el.remove();\n });\n $(this.select).ac_select2({\n theme: 'acs2',\n width: '100%',\n escapeMarkup: function (text) {\n return text;\n },\n });\n };\n return MultiSelect;\n}());\n","var axios = require('axios');\nexport var initNumberFormatSetting = function (column) {\n column.getElement().querySelectorAll('.ac-column-setting--number_format').forEach(function (setting) {\n new NumberFormat(column, setting);\n });\n};\nvar NumberFormat = /** @class */ (function () {\n function NumberFormat(column, setting) {\n this.column = column;\n this.setting = setting;\n this.bindEvents();\n }\n NumberFormat.prototype.bindEvents = function () {\n var _this = this;\n this.refreshPreview();\n this.setting.querySelectorAll('input').forEach(function (el) {\n el.addEventListener('change', function () { return _this.refreshPreview(); });\n });\n };\n NumberFormat.prototype.refreshPreview = function () {\n var _this = this;\n this.getExampleRequest().then(function (response) {\n _this.setting.querySelectorAll('[data-preview]').forEach(function (el) { return el.textContent = response.data.data; });\n });\n };\n NumberFormat.prototype.getValue = function () {\n var decimals = this.setting.querySelector('.ac-setting-input_number_decimals');\n var decimal_point = this.setting.querySelector('.ac-setting-input_number_decimal_point');\n var thousands_point = this.setting.querySelector('.ac-setting-input_number_thousands_separator');\n return {\n decimals: decimals ? decimals.value : '',\n decimal_point: decimal_point ? decimal_point.value : '',\n thousands_point: thousands_point ? thousands_point.value : '',\n };\n };\n NumberFormat.prototype.getExampleRequest = function () {\n var value = this.getValue();\n var data = new FormData();\n data.set('action', 'ac_number_format');\n data.set('number', '7500');\n data.set('decimals', value.decimals);\n data.set('decimal_point', value.decimal_point);\n data.set('thousands_sep', value.thousands_point);\n return axios.post(ajaxurl, data, {});\n };\n return NumberFormat;\n}());\n","// @ts-ignore\nimport $ from 'jquery';\nexport var initProSetting = function (column) {\n column.getElement().querySelectorAll('.ac-column-setting--pro').forEach(function (setting) {\n setting.querySelectorAll('input').forEach(function (input) {\n input.addEventListener('click', function () { return $(setting).find('[data-ac-modal]').trigger('click'); });\n });\n });\n};\n","export var initSubSettings = function (column) {\n column.getElement().querySelectorAll('.ac-column-setting--filter,.ac-column-setting--sort,.ac-column-setting--edit').forEach(function (setting) {\n new SubsettingSetting(setting);\n });\n};\nvar SubsettingSetting = /** @class */ (function () {\n function SubsettingSetting(element) {\n this.element = element;\n this.inputs = element.querySelectorAll('.ac-setting-input input[type=\"radio\"]');\n this.subFields = element.querySelectorAll('.ac-column-setting');\n this.initState();\n this.initEvents();\n }\n SubsettingSetting.prototype.initEvents = function () {\n var _this = this;\n this.inputs.forEach(function (el) {\n el.addEventListener('change', function () { return _this.initState(); });\n });\n };\n SubsettingSetting.prototype.initState = function () {\n this.isOptionEnabled()\n ? this.subFields.forEach(function (el) { return el.style.display = 'table'; })\n : this.subFields.forEach(function (el) { return el.style.display = 'none'; });\n };\n SubsettingSetting.prototype.isOptionEnabled = function () {\n var checked = Array.from(this.inputs).filter(function (input) {\n return input.checked;\n });\n return checked.length ? checked[0].value === 'on' : false;\n };\n return SubsettingSetting;\n}());\n","import excludeGroupsMather from \"../../../select2/excludegroup.matcher\";\n// @ts-ignore\nimport $ from 'jquery';\nexport var initColumnTypeSelectorSetting = function (column) {\n column.getElement().querySelectorAll('[data-setting=\"type\"]').forEach(function (setting) {\n new TypeSelector(column, setting);\n });\n};\nvar TypeSelector = /** @class */ (function () {\n function TypeSelector(column, setting) {\n this.column = column;\n this.setting = setting;\n this.bindEvents();\n }\n TypeSelector.prototype.bindEvents = function () {\n var select = this.setting.querySelector('.ac-setting-input_type');\n if (select) {\n select.removeAttribute('data-select2-id');\n this.setting.querySelectorAll('.select2').forEach(function (el) {\n el.remove();\n });\n $(select).ac_select2({\n theme: 'acs2',\n width: '100%',\n dropdownCssClass: '-type-selector',\n escapeMarkup: function (text) {\n return text;\n },\n templateResult: function (result) {\n var text = result.text;\n if (result.hasOwnProperty('id') && result.id.includes('placeholder-')) {\n text += \"<span style=\\\"background-color:#FE3D6C; color:#fff; font-size: 10px; margin-top: -1px; padding: 1px 5px; border-radius: 2px; text-transform: uppercase;float: right; margin-right 10px;\\\">PRO</span>\";\n }\n return text;\n },\n matcher: excludeGroupsMather\n });\n }\n };\n return TypeSelector;\n}());\n","import Nanobus from \"nanobus\";\n// @ts-ignore\nimport $ from 'jquery';\nexport var initWidthSetting = function (column) {\n column.getElement().querySelectorAll('table[data-setting=\"width\"]').forEach(function (setting) { return new WidthSetting(column, setting); });\n};\nvar WidthSetting = /** @class */ (function () {\n function WidthSetting(column, setting) {\n this.column = column;\n this.setting = setting;\n this.events = new Nanobus();\n this.indicator = new WidthIndicator(column.getElement().querySelector('.ac-column-header .ac-column-heading-setting--width'));\n this.widthInput = this.setting.querySelector('[data-width-input]');\n this.unitInput = this.setting.querySelectorAll('[data-unit-input] input');\n this.init();\n }\n WidthSetting.prototype.getWidth = function () {\n var widthValue = this.widthInput.value;\n return widthValue ? parseInt(widthValue) : null;\n };\n WidthSetting.prototype.setWidth = function (width) {\n this.widthInput.value = width ? width.toString() : null;\n this.updateIndicator();\n };\n WidthSetting.prototype.updateUnit = function () {\n this.setting.querySelector('.description .unit').innerHTML = this.getUnit();\n };\n WidthSetting.prototype.getUnit = function () {\n var input = this.setting.querySelector('[data-unit-input] input:checked');\n return input ? input.value : null;\n };\n WidthSetting.prototype.getValue = function () {\n return {\n width: this.getWidth(),\n unit: this.getUnit()\n };\n };\n WidthSetting.prototype.validate = function () {\n var width = this.getWidth();\n if (width === 0 || width < 0) {\n this.setWidth(null);\n }\n if (this.getUnit() === '%') {\n if (width > 100) {\n this.setWidth(100);\n }\n }\n };\n WidthSetting.prototype.init = function () {\n var _this = this;\n this.widthInput.addEventListener('keyup', function () {\n _this.updateIndicator();\n _this.initSlider();\n _this.validate();\n });\n this.unitInput.forEach(function (el) {\n el.addEventListener('change', function () {\n _this.initSlider();\n _this.updateIndicator();\n _this.updateUnit();\n _this.validate();\n });\n });\n this.initSlider();\n };\n WidthSetting.prototype.updateIndicator = function () {\n this.indicator.setValue(this.getWidth(), this.getUnit());\n };\n WidthSetting.prototype.initSlider = function () {\n var _this = this;\n var sliderElement = this.column.getElement().querySelector('.width-slider');\n $(sliderElement).slider({\n range: 'min',\n min: 0,\n max: '%' === this.getUnit() ? 100 : 500,\n value: this.getWidth(),\n slide: function (event, ui) {\n _this.setWidth(ui.value);\n }\n });\n };\n return WidthSetting;\n}());\nvar WidthIndicator = /** @class */ (function () {\n function WidthIndicator(element) {\n this.element = element;\n this.events = new Nanobus();\n }\n WidthIndicator.prototype.setValue = function (width, unit) {\n if (width === null) {\n return this.element.innerText = '';\n }\n this.element.innerText = \"\" + width.toString() + unit;\n };\n return WidthIndicator;\n}());\n","export var EventConstants = {\n TABLE: {\n READY: 'Table.Ready'\n },\n SETTINGS: {\n FORM: {\n LOADED: 'Settings.Form.Loaded',\n READY: 'Settings.Form.Ready',\n SAVING: 'Settings.Form.Saving',\n SAVED: 'Settings.Form.Saved'\n },\n COLUMN: {\n INIT: 'Settings.Column.Init',\n SWITCH: 'Settings.Column.SwitchToType',\n REFRESHED: 'Settings.Column.Refreshed'\n }\n }\n};\n","import AcServices from \"../modules/ac-services\";\nexport var initAcServices = function () {\n if (!window.AC_SERVICES) {\n window.AC_SERVICES = new AcServices();\n }\n return window.AC_SERVICES;\n};\n","var _this = this;\nexport var fadeIn = function (element, ms, cb, display) {\n if (ms === void 0) { ms = 100; }\n if (cb === void 0) { cb = null; }\n if (display === void 0) { display = 'block'; }\n element.style.display = display;\n element.style.transition = \"opacity \" + ms + \"ms\";\n element.style.opacity = '0';\n setTimeout(function () {\n element.style.opacity = '1';\n }, 100);\n if (cb) {\n element.addEventListener('transitionend', function () {\n cb.call(_this);\n }, { once: true });\n }\n};\nexport var fadeOut = function (element, ms, cb, display) {\n if (ms === void 0) { ms = 100; }\n if (cb === void 0) { cb = null; }\n if (display === void 0) { display = 'none'; }\n element.style.transition = \"opacity \" + ms + \"ms\";\n element.style.opacity = '1';\n setTimeout(function () {\n element.style.opacity = '0';\n }, 100);\n element.addEventListener('transitionend', function () {\n element.style.display = display;\n if (cb) {\n cb.call(_this);\n }\n }, { once: true });\n};\nexport var scrollToElement = function (element, ms, options) {\n if (options === void 0) { options = {}; }\n var defaults = {\n offset: 0\n };\n var settings = Object.assign({}, defaults, options);\n var elementY = element.offsetTop + settings.offset;\n var startingY = window.pageYOffset;\n var diff = elementY - startingY;\n var start;\n // Bootstrap our animation - it will get called right before next frame shall be rendered.\n window.requestAnimationFrame(function step(timestamp) {\n if (!start) {\n start = timestamp;\n }\n var time = timestamp - start;\n var percent = Math.min(time / ms, 1);\n window.scrollTo(0, startingY + diff * percent);\n if (time < ms) {\n window.requestAnimationFrame(step);\n }\n });\n};\n","export var insertAfter = function (newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n};\nexport var insertBefore = function (newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode);\n};\nexport var createElementFromString = function (content, baseElement) {\n if (baseElement === void 0) { baseElement = 'div'; }\n var element = document.createElement(baseElement);\n element.innerHTML = content;\n return element;\n};\nfunction isInViewport(element) {\n var rect = element.getBoundingClientRect();\n return (rect.top >= 0 && rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth));\n}\n","export var addEventListenerLive = function (eventType, elementQuerySelector, cb, rootElement) {\n if (rootElement === void 0) { rootElement = null; }\n var element = rootElement ? rootElement : document;\n element.addEventListener(eventType, function (event) {\n var qs = document.querySelectorAll(elementQuerySelector);\n if (qs) {\n var element = event.target, index = -1;\n while (element && ((index = Array.prototype.indexOf.call(qs, element)) === -1)) {\n element = element.parentElement;\n }\n if (index > -1) {\n cb.call(element, event);\n }\n }\n });\n};\nexport var onHover = function (el, cbOver, cbLeave) {\n el.addEventListener('mouseenter', cbOver);\n el.addEventListener('mouseleave', cbLeave);\n};\nexport var addEventListeners = function (el, events, callback) {\n events.forEach(function (event) { return el.addEventListener(event, callback); });\n};\n","export var uniqid = function (prefix, moreEntropy) {\n if (prefix === void 0) { prefix = \"\"; }\n if (moreEntropy === void 0) { moreEntropy = false; }\n var c = Date.now() / 1000;\n var d = c.toString(16).split(\".\").join(\"\");\n while (d.length < 14)\n d += \"0\";\n var e = \"\";\n if (moreEntropy) {\n e = \".\";\n e += Math.round(Math.random() * 100000000);\n }\n return prefix + d + e;\n};\nexport var stripHtml = function (originalString) {\n return originalString ? originalString.replace(/(<([^>]+)>)/gi, \"\") : '';\n};\n","import Tooltip from \"./tooltips\";\nvar $ = require(\"jquery\");\nvar Pointer = /** @class */ (function () {\n function Pointer(el) {\n this.element = el;\n this.settings = this.getDefaults();\n this.init();\n this.setInitialized();\n }\n Pointer.prototype.setInitialized = function () {\n AcPointers.add(this.element);\n };\n Pointer.prototype.getDefaults = function () {\n return {\n width: this.element.getAttribute('data-width') ? this.element.getAttribute('data-width') : 250,\n noclick: this.element.getAttribute('data-noclick') ? this.element.getAttribute('data-noclick') : false,\n position: this.getPosition()\n };\n };\n Pointer.prototype.isInitialized = function () {\n return AcPointers.isInitialized(this.element);\n };\n Pointer.prototype.init = function () {\n if (this.isInitialized()) {\n return;\n }\n // create pointer\n $(this.element).pointer({\n content: this.getRelatedHTML(),\n position: this.settings.position,\n pointerWidth: this.settings.width,\n pointerClass: this.getPointerClass()\n });\n this.initEvents();\n };\n Pointer.prototype.getPosition = function () {\n var position = {\n at: 'left top',\n my: 'right top',\n edge: 'right',\n };\n var pos = this.element.getAttribute('data-pos');\n var edge = this.element.getAttribute('data-pos_edge');\n if ('right' === pos) {\n position = {\n at: 'right middle',\n my: 'left middle',\n edge: 'left'\n };\n }\n if ('right_bottom' === pos) {\n position = {\n at: 'right middle',\n my: 'left bottom',\n edge: 'none'\n };\n }\n if ('left' === pos) {\n position = {\n at: 'left middle',\n my: 'right middle',\n edge: 'right'\n };\n }\n if (edge) {\n position.edge = edge;\n }\n return position;\n };\n Pointer.prototype.getPointerClass = function () {\n var classes = [\n 'ac-wp-pointer',\n 'wp-pointer',\n 'wp-pointer-' + this.settings.position.edge\n ];\n if (this.settings.noclick) {\n classes.push('noclick');\n }\n return classes.join(' ');\n };\n Pointer.prototype.getRelatedHTML = function () {\n var related_element = document.getElementById(this.element.getAttribute('rel'));\n return related_element ? related_element.innerHTML : '';\n };\n Pointer.prototype.initEvents = function () {\n var el = $(this.element);\n // click\n if (!this.settings.noclick) {\n el.click(function () {\n if (el.hasClass('open')) {\n el.removeClass('open');\n }\n else {\n el.addClass('open');\n }\n });\n }\n el.click(function () {\n el.pointer('open');\n });\n el.mouseenter(function () {\n el.pointer('open');\n setTimeout(function () {\n el.pointer('open');\n }, 2);\n });\n el.mouseleave(function () {\n setTimeout(function () {\n if (!el.hasClass('open') && $('.ac-wp-pointer.hover').length === 0) {\n el.pointer('close');\n }\n }, 1);\n });\n el.on('close', function () {\n setTimeout(function () {\n if (!el.hasClass('open')) {\n el.pointer('close');\n }\n });\n });\n };\n return Pointer;\n}());\nexport { Pointer };\nvar AcPointers = /** @class */ (function () {\n function AcPointers() {\n }\n AcPointers.isInitialized = function (element) {\n return this.initElements.filter(function (el) { return el === element; }).length > 0;\n };\n AcPointers.add = function (element) {\n this.initElements.push(element);\n };\n AcPointers.initElements = [];\n return AcPointers;\n}());\nexport var initPointers = function (elements) {\n if (elements === void 0) { elements = null; }\n if (!elements) {\n elements = document.querySelectorAll('.ac-pointer');\n }\n elements.forEach(function (element) {\n new Pointer(element);\n });\n $('.ac-wp-pointer').hover(function () {\n $(this).addClass('hover');\n }, function () {\n $(this).removeClass('hover');\n $('.ac-pointer').trigger('close');\n }).on('click', '.close', function () {\n $('.ac-pointer').removeClass('open');\n });\n new Tooltip();\n};\n","import Nanobus from \"nanobus\";\nvar AcServices = /** @class */ (function () {\n function AcServices() {\n this.services = {};\n this.events = new Nanobus();\n }\n AcServices.prototype.registerService = function (name, service) {\n this.services[name] = service;\n return this;\n };\n AcServices.prototype.getService = function (name) {\n return this.hasService(name) ? this.services[name] : null;\n };\n AcServices.prototype.hasService = function (name) {\n return this.services.hasOwnProperty(name);\n };\n AcServices.prototype.addListener = function (name, callback) {\n this.events.addListener(name, callback);\n };\n AcServices.prototype.emitEvent = function (name, args) {\n this.events.emit(name, args);\n };\n return AcServices;\n}());\nexport default AcServices;\n","var Modal = /** @class */ (function () {\n function Modal(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n Modal.prototype.getElement = function () {\n return this.el;\n };\n Modal.prototype.initEvents = function () {\n var _this = this;\n var self = this;\n document.addEventListener('keydown', function (e) {\n var keyName = e.key;\n if (!_this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n _this.close();\n }\n });\n var dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach(function (b) {\n b.addEventListener('click', function (e) {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', function (e) {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n };\n Modal.prototype.isOpen = function () {\n return this.el.classList.contains('-active');\n };\n Modal.prototype.close = function () {\n this.onClose();\n this.el.classList.remove('-active');\n };\n Modal.prototype.open = function () {\n var _this = this;\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(function () {\n _this.onOpen();\n _this.el.removeAttribute('style');\n _this.el.classList.add('-active');\n });\n };\n Modal.prototype.destroy = function () {\n this.el.remove();\n };\n Modal.prototype.onClose = function () {\n };\n Modal.prototype.onOpen = function () {\n };\n return Modal;\n}());\nexport default Modal;\n","import Modal from './modal';\nvar Modals = /** @class */ (function () {\n function Modals() {\n this.modals = {};\n this.number = 0;\n this.defaults = {\n modal: Modal\n };\n this.initGlobalEvents();\n }\n Modals.prototype.register = function (modal, key) {\n if (key === void 0) { key = ''; }\n if (!key) {\n key = 'm' + this.number;\n }\n this.modals[key] = modal;\n this.number++;\n return modal;\n };\n Modals.prototype.get = function (key) {\n return this.modals.hasOwnProperty(key) ? this.modals[key] : null;\n };\n Modals.prototype.open = function (key) {\n if (this.get(key)) {\n this.get(key).open();\n }\n };\n Modals.prototype.close = function (key) {\n if (this.get(key)) {\n this.get(key).close();\n }\n };\n Modals.prototype.closeAll = function () {\n for (var key in this.modals) {\n this.close(key);\n }\n };\n Modals.prototype.initGlobalEvents = function () {\n var _this = this;\n document.addEventListener('click', function (e) {\n var target = e.target;\n if (target.dataset.acModal) {\n e.preventDefault();\n _this.open(target.dataset.acModal);\n }\n });\n };\n return Modals;\n}());\nexport default Modals;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","export default function excludeGroupsMather(params, data) {\n if (jQuery.trim(params.term) === '') {\n return data;\n }\n if (typeof data.children === 'undefined') {\n return null;\n }\n var filteredChildren = [];\n jQuery.each(data.children, function (idx, child) {\n if (child.text.toUpperCase().indexOf(params.term.toUpperCase()) > -1) {\n filteredChildren.push(child);\n }\n });\n if (filteredChildren.length) {\n var modifiedData = jQuery.extend({}, data, true);\n modifiedData.children = filteredChildren;\n return modifiedData;\n }\n return null;\n}\n","module.exports = require('./lib/axios');\n","'use strict';\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n var request = new XMLHttpRequest();\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n // Set the request timeout in MS\n request.timeout = config.timeout;\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n settle(resolve, reject, response);\n // Clean up request\n request = null;\n };\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n // Clean up request\n request = null;\n };\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n // Clean up request\n request = null;\n };\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request));\n // Clean up request\n request = null;\n };\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n }\n else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n }\n catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n if (!requestData) {\n requestData = null;\n }\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n // Copy context to instance\n utils.extend(instance, context);\n return instance;\n}\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\nmodule.exports = axios;\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\nCancel.prototype.__CANCEL__ = true;\nmodule.exports = Cancel;\n","'use strict';\nvar Cancel = require('./Cancel');\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\nmodule.exports = CancelToken;\n","'use strict';\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n }\n else {\n config = config || {};\n }\n config = mergeConfig(this.defaults, config);\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n }\n else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n }\n else {\n config.method = 'get';\n }\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n return promise;\n};\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function (url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function (url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\nmodule.exports = Axios;\n","'use strict';\nvar utils = require('./../utils');\nfunction InterceptorManager() {\n this.handlers = [];\n}\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\nmodule.exports = InterceptorManager;\n","'use strict';\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\nvar enhanceError = require('./enhanceError');\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n // Ensure headers exist\n config.headers = config.headers || {};\n // Transform request data\n config.data = transformData(config.data, config.headers, config.transformRequest);\n // Flatten headers\n config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);\n utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {\n delete config.headers[method];\n });\n var adapter = config.adapter || defaults.adapter;\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n // Transform response data\n response.data = transformData(response.data, response.headers, config.transformResponse);\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(reason.response.data, reason.response.headers, config.transformResponse);\n }\n }\n return Promise.reject(reason);\n });\n};\n","'use strict';\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\nvar utils = require('../utils');\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n }\n else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n }\n else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n }\n else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n }\n else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n utils.forEach(otherKeys, mergeDeepProperties);\n return config;\n};\n","'use strict';\nvar createError = require('./createError');\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n }\n else {\n reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));\n }\n};\n","'use strict';\nvar utils = require('./../utils');\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n return data;\n};\n","'use strict';\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n }\n else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\nvar defaults = {\n adapter: getDefaultAdapter(),\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n }\n catch (e) { /* Ignore */ }\n }\n return data;\n }],\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n maxBodyLength: -1,\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\nmodule.exports = defaults;\n","'use strict';\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\nvar utils = require('./../utils');\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n }\n else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n }\n else {\n var parts = [];\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n if (utils.isArray(val)) {\n key = key + '[]';\n }\n else {\n val = [val];\n }\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n }\n else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n serializedParams = parts.join('&');\n }\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n return url;\n};\n","'use strict';\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\nvar utils = require('./../utils');\nmodule.exports = (utils.isStandardBrowserEnv() ?\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n if (secure === true) {\n cookie.push('secure');\n }\n document.cookie = cookie.join('; ');\n },\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() { },\n read: function read() { return null; },\n remove: function remove() { }\n };\n })());\n","'use strict';\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\nvar utils = require('./../utils');\nmodule.exports = (utils.isStandardBrowserEnv() ?\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n urlParsingNode.setAttribute('href', href);\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n originURL = resolveURL(window.location.href);\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })());\n","'use strict';\nvar utils = require('../utils');\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\nvar utils = require('./../utils');\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n if (!headers) {\n return parsed;\n }\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n }\n else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n return parsed;\n};\n","'use strict';\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\nvar bind = require('./helpers/bind');\n/*global toString:true*/\n// utils is a library of generic helper functions non-specific to axios\nvar toString = Object.prototype.toString;\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n }\n else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (typeof window !== 'undefined' &&\n typeof document !== 'undefined');\n}\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n }\n else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge( /* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n }\n else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n }\n else if (isArray(val)) {\n result[key] = val.slice();\n }\n else {\n result[key] = val;\n }\n }\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n }\n else {\n a[key] = val;\n }\n });\n return a;\n}\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","assert.notEqual = notEqual;\nassert.notOk = notOk;\nassert.equal = equal;\nassert.ok = assert;\nmodule.exports = assert;\nfunction equal(a, b, m) {\n assert(a == b, m); // eslint-disable-line eqeqeq\n}\nfunction notEqual(a, b, m) {\n assert(a != b, m); // eslint-disable-line eqeqeq\n}\nfunction notOk(t, m) {\n assert(!t, m);\n}\nfunction assert(t, m) {\n if (!t)\n throw new Error(m || 'AssertionError');\n}\n","var splice = require('remove-array-items');\nvar nanotiming = require('nanotiming');\nvar assert = require('assert');\nmodule.exports = Nanobus;\nfunction Nanobus(name) {\n if (!(this instanceof Nanobus))\n return new Nanobus(name);\n this._name = name || 'nanobus';\n this._starListeners = [];\n this._listeners = {};\n}\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol');\n var data = [];\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i]);\n }\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\");\n var listeners = this._listeners[eventName];\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data);\n }\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid);\n }\n emitTiming();\n return this;\n};\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function');\n if (eventName === '*') {\n this._starListeners.push(listener);\n }\n else {\n if (!this._listeners[eventName])\n this._listeners[eventName] = [];\n this._listeners[eventName].push(listener);\n }\n return this;\n};\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function');\n if (eventName === '*') {\n this._starListeners.unshift(listener);\n }\n else {\n if (!this._listeners[eventName])\n this._listeners[eventName] = [];\n this._listeners[eventName].unshift(listener);\n }\n return this;\n};\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function');\n var self = this;\n this.on(eventName, once);\n function once() {\n listener.apply(self, arguments);\n self.removeListener(eventName, once);\n }\n return this;\n};\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function');\n var self = this;\n this.prependListener(eventName, once);\n function once() {\n listener.apply(self, arguments);\n self.removeListener(eventName, once);\n }\n return this;\n};\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function');\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice();\n return remove(this._starListeners, listener);\n }\n else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice();\n }\n return remove(this._listeners[eventName], listener);\n }\n function remove(arr, listener) {\n if (!arr)\n return;\n var index = arr.indexOf(listener);\n if (index !== -1) {\n splice(arr, index, 1);\n return true;\n }\n }\n};\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = [];\n }\n else {\n this._listeners[eventName] = [];\n }\n }\n else {\n this._starListeners = [];\n this._listeners = {};\n }\n return this;\n};\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners;\n var ret = [];\n if (listeners) {\n var ilength = listeners.length;\n for (var i = 0; i < ilength; i++)\n ret.push(listeners[i]);\n }\n return ret;\n};\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined')\n return;\n if (arr.length === 0)\n return;\n if (data === undefined) {\n data = eventName;\n eventName = null;\n }\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid);\n }\n else {\n data = [eventName].concat(data);\n }\n }\n var length = arr.length;\n for (var i = 0; i < length; i++) {\n var listener = arr[i];\n listener.apply(listener, data);\n }\n};\n","var assert = require('assert');\nvar hasWindow = typeof window !== 'undefined';\nfunction createScheduler() {\n var scheduler;\n if (hasWindow) {\n if (!window._nanoScheduler)\n window._nanoScheduler = new NanoScheduler(true);\n scheduler = window._nanoScheduler;\n }\n else {\n scheduler = new NanoScheduler();\n }\n return scheduler;\n}\nfunction NanoScheduler(hasWindow) {\n this.hasWindow = hasWindow;\n this.hasIdle = this.hasWindow && window.requestIdleCallback;\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout;\n this.scheduled = false;\n this.queue = [];\n}\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function');\n this.queue.push(cb);\n this.schedule();\n};\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled)\n return;\n this.scheduled = true;\n var self = this;\n this.method(function (idleDeadline) {\n var cb;\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift();\n cb(idleDeadline);\n }\n self.scheduled = false;\n if (self.queue.length)\n self.schedule();\n });\n};\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1;\n }\n });\n};\nmodule.exports = createScheduler;\n","var scheduler = require('nanoscheduler')();\nvar assert = require('assert');\nvar perf;\nnanotiming.disabled = true;\ntry {\n perf = window.performance;\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark;\n}\ncatch (e) { }\nmodule.exports = nanotiming;\nfunction nanotiming(name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string');\n if (nanotiming.disabled)\n return noop;\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER;\n var startName = 'start-' + uuid + '-' + name;\n perf.mark(startName);\n function end(cb) {\n var endName = 'end-' + uuid + '-' + name;\n perf.mark(endName);\n scheduler.push(function () {\n var err = null;\n try {\n var measureName = name + ' [' + uuid + ']';\n perf.measure(measureName, startName, endName);\n perf.clearMarks(startName);\n perf.clearMarks(endName);\n }\n catch (e) {\n err = e;\n }\n if (cb)\n cb(err, name);\n });\n }\n end.uuid = uuid;\n return end;\n}\nfunction noop(cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'));\n });\n }\n}\n","if (window.NodeList && !NodeList.prototype.forEach) {\n NodeList.prototype.forEach = function (callback, thisArg) {\n thisArg = thisArg || window;\n for (var i = 0; i < this.length; i++) {\n callback.call(thisArg, this[i], i, this);\n }\n };\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\nvar cachedSetTimeout;\nvar cachedClearTimeout;\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n }\n else {\n cachedSetTimeout = defaultSetTimout;\n }\n }\n catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n }\n else {\n cachedClearTimeout = defaultClearTimeout;\n }\n }\n catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n}());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n }\n catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n }\n catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n }\n catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n }\n catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n }\n else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n while (len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\nfunction noop() { }\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\nprocess.listeners = function (name) { return []; };\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\nprocess.cwd = function () { return '/'; };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function () { return 0; };\n","'use strict';\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems(arr, startIdx, removeCount) {\n var i, length = arr.length;\n if (startIdx >= length || removeCount === 0) {\n return;\n }\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount);\n var len = length - removeCount;\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount];\n }\n arr.length = len;\n};\n","module.exports = jQuery;"],"sourceRoot":""}
assets/js/message-review.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}({0:function(e,t){e.exports=jQuery},21:function(e,t,n){"use strict";n.r(t);var r=function(e,t,n,r){void 0===r&&(r=null),(r||document).addEventListener(e,(function(e){var r=document.querySelectorAll(t);if(r){for(var o=e.target,i=-1;o&&-1===(i=Array.prototype.indexOf.call(r,o));)o=o.parentElement;i>-1&&n.call(o,e)}}))},o=n(0);document.addEventListener("DOMContentLoaded",(function(){r("click","a.hide-review-notice-soft",(function(e){e.preventDefault();var t=e.target.closest(".ac-notice");t.querySelector(".info").remove(),t.querySelector(".help").style.display="block",o.post(ajaxurl,JSON.parse(t.dataset.dismissibleCallback))})),r("click","a.hide-review-notice",(function(e){e.preventDefault(),e.target.closest(".ac-notice").querySelector(".notice-dismiss").dispatchEvent(new Event("click"))}))}))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}({0:function(e,t){e.exports=jQuery},46:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(0);document.addEventListener("DOMContentLoaded",(function(){Object(r.a)("click","a.hide-review-notice-soft",(function(e){e.preventDefault();var t=e.target.closest(".ac-notice");t.querySelector(".info").remove(),t.querySelector(".help").style.display="block",o.post(ajaxurl,JSON.parse(t.dataset.dismissibleCallback))})),Object(r.a)("click","a.hide-review-notice",(function(e){e.preventDefault(),e.target.closest(".ac-notice").querySelector(".notice-dismiss").dispatchEvent(new Event("click"))}))}))},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i}));var r=function(e,t,n,r){void 0===r&&(r=null),(r||document).addEventListener(e,(function(e){var r=document.querySelectorAll(t);if(r){for(var o=e.target,i=-1;o&&-1===(i=Array.prototype.indexOf.call(r,o));)o=o.parentElement;i>-1&&n.call(o,e)}}))},o=function(e,t,n){e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n)},i=function(e,t,n){t.forEach((function(t){return e.addEventListener(t,n)}))}}});
assets/js/message-review.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/helpers/events.ts","webpack:///./js/message-review.ts","webpack:///external \"jQuery\""],"names":["addEventListenerLive","eventType","elementQuerySelector","cb","rootElement","element","document","addEventListener","event","qs","querySelectorAll","target","index","Array","prototype","indexOf","call","parentElement","$","require","e","preventDefault","notice","closest","querySelector","remove","style","display","post","ajaxurl","JSON","parse","dataset","dismissibleCallback","dispatchEvent","Event"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAO,IAAIA,oBAAoB,GAAG,UAAUC,SAAV,EAAqBC,oBAArB,EAA2CC,EAA3C,EAA+CC,WAA/C,EAA4D;AAC1F,MAAIA,WAAW,KAAK,KAAK,CAAzB,EAA4B;AAAEA,eAAW,GAAG,IAAd;AAAqB;;AACnD,MAAIC,OAAO,GAAGD,WAAW,GAAGA,WAAH,GAAiBE,QAA1C;AACAD,SAAO,CAACE,gBAAR,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AF;AACAD,KAAC,CAACT,MAAF,CAASY,OAAT,CAAiB,YAAjB,EAA+BC,aAA/B,CAA6C,iBAA7C,EAAgEU,aAAhE,CAA8E,IAAIC,KAAJ,CAAU,OAAV,CAA9E;AACH,GAHmB,CAApB;AAIH,CAZD,E;;;;;;;;;;;ACFA,wB","file":"message-review.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/message-review.ts\");\n","export var addEventListenerLive = function (eventType, elementQuerySelector, cb, rootElement) {\n if (rootElement === void 0) { rootElement = null; }\n var element = rootElement ? rootElement : document;\n element.addEventListener(eventType, function (event) {\n var qs = document.querySelectorAll(elementQuerySelector);\n if (qs) {\n var element = event.target, index = -1;\n while (element && ((index = Array.prototype.indexOf.call(qs, element)) === -1)) {\n element = element.parentElement;\n }\n if (index > -1) {\n cb.call(element, event);\n }\n }\n });\n};\n","import { addEventListenerLive } from \"./helpers/events\";\nvar $ = require(\"jquery\");\ndocument.addEventListener('DOMContentLoaded', function () {\n addEventListenerLive('click', 'a.hide-review-notice-soft', function (e) {\n e.preventDefault();\n var notice = e.target.closest('.ac-notice');\n notice.querySelector('.info').remove();\n notice.querySelector('.help').style.display = 'block';\n $.post(ajaxurl, JSON.parse(notice.dataset.dismissibleCallback));\n });\n addEventListenerLive('click', 'a.hide-review-notice', function (e) {\n e.preventDefault();\n e.target.closest('.ac-notice').querySelector('.notice-dismiss').dispatchEvent(new Event('click'));\n });\n});\n","module.exports = jQuery;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/helpers/events.ts","webpack:///./js/message-review.ts","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAO;AACP,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACO;AACP,qCAAqC,6CAA6C,EAAE;AACpF;;;;;;;;;;;;;ACtBA;AAAA;AAAwD;AACxD,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA,IAAI,4EAAoB;AACxB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI,4EAAoB;AACxB;AACA;AACA,KAAK;AACL,CAAC;;;;;;;;;;;;ACdD,wB","file":"message-review.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/message-review.ts\");\n","export var addEventListenerLive = function (eventType, elementQuerySelector, cb, rootElement) {\n if (rootElement === void 0) { rootElement = null; }\n var element = rootElement ? rootElement : document;\n element.addEventListener(eventType, function (event) {\n var qs = document.querySelectorAll(elementQuerySelector);\n if (qs) {\n var element = event.target, index = -1;\n while (element && ((index = Array.prototype.indexOf.call(qs, element)) === -1)) {\n element = element.parentElement;\n }\n if (index > -1) {\n cb.call(element, event);\n }\n }\n });\n};\nexport var onHover = function (el, cbOver, cbLeave) {\n el.addEventListener('mouseenter', cbOver);\n el.addEventListener('mouseleave', cbLeave);\n};\nexport var addEventListeners = function (el, events, callback) {\n events.forEach(function (event) { return el.addEventListener(event, callback); });\n};\n","import { addEventListenerLive } from \"./helpers/events\";\nvar $ = require(\"jquery\");\ndocument.addEventListener('DOMContentLoaded', function () {\n addEventListenerLive('click', 'a.hide-review-notice-soft', function (e) {\n e.preventDefault();\n var notice = e.target.closest('.ac-notice');\n notice.querySelector('.info').remove();\n notice.querySelector('.help').style.display = 'block';\n $.post(ajaxurl, JSON.parse(notice.dataset.dismissibleCallback));\n });\n addEventListenerLive('click', 'a.hide-review-notice', function (e) {\n e.preventDefault();\n e.target.closest('.ac-notice').querySelector('.notice-dismiss').dispatchEvent(new Event('click'));\n });\n});\n","module.exports = jQuery;"],"sourceRoot":""}
assets/js/notice-dismissible.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}({16:function(e,t){jQuery((function(e){e(".ac-notice").on("click",".ac-notice__dismiss, [data-dismiss], .notice-dismiss",(function(t){t.preventDefault();var n=e(this).closest(".ac-notice").data("dismissible-callback");n&&e.post(ajaxurl,n)}))}))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=51)}({0:function(e,t){e.exports=jQuery},51:function(e,t,n){"use strict";n.r(t);var r=n(7),o=n(0),u=function(){var e;e=".ac-notice",document.querySelectorAll(e).forEach((function(e){Object(r.a)("click",".ac-notice__dismiss, [data-dismiss], .notice-dismiss",(function(t){t.preventDefault();var n=e.dataset.dismissibleCallback?JSON.parse(e.dataset.dismissibleCallback):null;n&&o.post(ajaxurl,n)}),e)}))};document.addEventListener("DOMContentLoaded",(function(){u()}))},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return u}));var r=function(e,t,n,r){void 0===r&&(r=null),(r||document).addEventListener(e,(function(e){var r=document.querySelectorAll(t);if(r){for(var o=e.target,u=-1;o&&-1===(u=Array.prototype.indexOf.call(r,o));)o=o.parentElement;u>-1&&n.call(o,e)}}))},o=function(e,t,n){e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n)},u=function(e,t,n){t.forEach((function(t){return e.addEventListener(t,n)}))}}});
assets/js/notice-dismissible.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/notice-dismissible.js"],"names":["jQuery","$","on","e","preventDefault","dismissible_callback","closest","data","post","ajaxurl"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFAA,MAAM,CAAC,UAAUC,CAAV,EAAa;AAChBA,GAAC,CAAC,YAAD,CAAD,CAAgBC,EAAhB,CAAmB,OAAnB,EAA4B,sDAA5B,EAAoF,UAAUC,CAAV,EAAa;AAC7FA,KAAC,CAACC,cAAF;AACA,QAAIC,oBAAoB,GAAGJ,CAAC,CAAC,IAAD,CAAD,CAAQK,OAAR,CAAgB,YAAhB,EAA8BC,IAA9B,CAAmC,sBAAnC,CAA3B;;AACA,QAAIF,oBAAJ,EAA0B;AACtBJ,OAAC,CAACO,IAAF,CAAOC,OAAP,EAAgBJ,oBAAhB;AACH;AACJ,GAND;AAOH,CARK,CAAN,C","file":"notice-dismissible.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/notice-dismissible.js\");\n","jQuery(function ($) {\n $('.ac-notice').on('click', '.ac-notice__dismiss, [data-dismiss], .notice-dismiss', function (e) {\n e.preventDefault();\n var dismissible_callback = $(this).closest('.ac-notice').data('dismissible-callback');\n if (dismissible_callback) {\n $.post(ajaxurl, dismissible_callback);\n }\n });\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/helpers/events.ts","webpack:///./js/notice-dismissible.ts","webpack:///./js/plugin/dismissible-notice.ts","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAO;AACP,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACO;AACP,qCAAqC,6CAA6C,EAAE;AACpF;;;;;;;;;;;;;ACtBA;AAAA;AAAqE;AACrE;AACA,IAAI,yFAAsB;AAC1B,CAAC;;;;;;;;;;;;;ACHD;AAAA;AAAA;AAAA;AAAyD;AACzD,QAAQ,mBAAO,CAAC,sBAAQ;AACjB;AACP;AACA,QAAQ,4EAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACO;AACP;AACA;;;;;;;;;;;;ACfA,wB","file":"notice-dismissible.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/notice-dismissible.ts\");\n","export var addEventListenerLive = function (eventType, elementQuerySelector, cb, rootElement) {\n if (rootElement === void 0) { rootElement = null; }\n var element = rootElement ? rootElement : document;\n element.addEventListener(eventType, function (event) {\n var qs = document.querySelectorAll(elementQuerySelector);\n if (qs) {\n var element = event.target, index = -1;\n while (element && ((index = Array.prototype.indexOf.call(qs, element)) === -1)) {\n element = element.parentElement;\n }\n if (index > -1) {\n cb.call(element, event);\n }\n }\n });\n};\nexport var onHover = function (el, cbOver, cbLeave) {\n el.addEventListener('mouseenter', cbOver);\n el.addEventListener('mouseleave', cbLeave);\n};\nexport var addEventListeners = function (el, events, callback) {\n events.forEach(function (event) { return el.addEventListener(event, callback); });\n};\n","import { initDismissibleNotices } from \"./plugin/dismissible-notice\";\ndocument.addEventListener('DOMContentLoaded', function () {\n initDismissibleNotices();\n});\n","import { addEventListenerLive } from \"../helpers/events\";\nvar $ = require(\"jquery\");\nexport var dismissNotice = function (selector) {\n document.querySelectorAll(selector).forEach(function (el) {\n addEventListenerLive('click', '.ac-notice__dismiss, [data-dismiss], .notice-dismiss', function (e) {\n e.preventDefault();\n var data = el.dataset.dismissibleCallback ? JSON.parse(el.dataset.dismissibleCallback) : null;\n if (data) {\n $.post(ajaxurl, data);\n }\n }, el);\n });\n};\nexport var initDismissibleNotices = function () {\n dismissNotice('.ac-notice');\n};\n","module.exports = jQuery;"],"sourceRoot":""}
assets/js/select2.js CHANGED
File without changes
assets/js/table.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=18)}([function(t,e){t.exports=jQuery},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,o){n(t!=e,o)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,o){n(t==e,o)},n.ok=n,t.exports=n},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var o=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new i(t)}))},i=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=s(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),s=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var o=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();e.a=o},function(t,e,n){"use strict";var o=n(2),i=function(){function t(){this.init()}return t.prototype.init=function(){Object(o.b)()},t}();e.a=i},function(t,e,n){var o=n(6),i=n(7),s=n(1);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,o=arguments.length;n<o;n++)e.push(arguments[n]);var r=i(this._name+"('"+t.toString()+"')"),l=this._listeners[t];return l&&l.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},r.prototype.prependListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},r.prototype.once=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function o(){e.apply(n,arguments),n.removeListener(t,o)})),this},r.prototype.prependOnceListener=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function o(){e.apply(n,arguments),n.removeListener(t,o)})),this},r.prototype.removeListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(o(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var o=e.length,i=0;i<o;i++)n.push(e[i]);return n},r.prototype._emit=function(t,e,n,o){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==o?[e].concat(n,o):[e].concat(n));for(var i=t.length,s=0;s<i;s++){var r=t[s];r.apply(r,n)}}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var o,i=t.length;if(!(e>=i||0===n)){var s=i-(n=e+n>i?i-e:n);for(o=e;o<s;++o)t[o]=t[o+n];t.length=s}}},function(t,e,n){var o,i=n(8)(),s=n(1);r.disabled=!0;try{o=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!o.mark}catch(t){}function r(t){if(s.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return l;var e=(1e4*o.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function a(s){var r="end-"+e+"-"+t;o.mark(r),i.push((function(){var i=null;try{var l=t+" ["+e+"]";o.measure(l,n,r),o.clearMarks(n),o.clearMarks(r)}catch(t){i=t}s&&s(i,t)}))}return o.mark(n),a.uuid=e,a}function l(t){t&&i.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},function(t,e,n){var o=n(1),i="undefined"!=typeof window;function s(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}s.prototype.push=function(t){o.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},s.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},s.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return i?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),t=window._nanoScheduler):t=new s,t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(3),i=function(){function t(){this.modals={},this.number=0,this.defaults={modal:o.a},this.initGlobalEvents()}return t.prototype.register=function(t,e){return void 0===e&&(e=""),e||(e="m"+this.number),this.modals[e]=t,this.number++,t},t.prototype.get=function(t){return this.modals.hasOwnProperty(t)?this.modals[t]:null},t.prototype.open=function(t){this.get(t)&&this.get(t).open()},t.prototype.close=function(t){this.get(t)&&this.get(t).close()},t.prototype.closeAll=function(){for(var t in this.modals)this.close(t)},t.prototype.initGlobalEvents=function(){var t=this;document.addEventListener("click",(function(e){var n=e.target;n.dataset.acModal&&(e.preventDefault(),t.open(n.dataset.acModal))}))},t}(),s=n(5),r=function(){return window.AdminColumns||(window.AdminColumns=window.AdminColumns||{},AdminColumns.events=s(),AdminColumns.Modals=new i),window.AdminColumns}},,,,,,,,,function(t,e,n){"use strict";function o(t,e){e.parentNode.insertBefore(t,e.nextSibling)}n.r(e);var i=n(5),s=function(){function t(t){this.container=t,this.events=i(),this.init()}return t.prototype.init=function(){var t=this;this.container.addEventListener("update",(function(){t.refresh()}));var e=document.querySelectorAll(".tablenav.top .actions");e&&(o(this.container,e[e.length-1]),this.container.classList.add("-init"),this.container.dispatchEvent(new CustomEvent("update")))},t.prototype.refresh=function(){this.container.querySelectorAll(".ac-table-actions-buttons > a").forEach((function(t){t.classList.remove("last")}));var t=[].slice.call(this.container.querySelectorAll(".ac-table-actions-buttons > a"),0);t.reverse();for(var e=0;e<t.length;e++)if(t[e].offsetParent){t[e].classList.add("last");break}},t}(),r=function(){function t(){this.cells={}}return t.prototype.add=function(t,e){this.cells.hasOwnProperty(t)||(this.cells[t]={}),this.cells[t][e.getName()]=e},t.prototype.getByID=function(t){var e=[];if(!this.cells.hasOwnProperty(t.toString()))return e;var n=this.cells[t.toString()];return Object.keys(n).forEach((function(t){return e.push(n[t])})),e},t.prototype.getAll=function(){var t=this,e=[];return Object.keys(this.cells).forEach((function(n){var o=t.cells[n];Object.keys(o).forEach((function(t){return e.push(o[t])}))})),e},t.prototype.getByName=function(t){var e=this,n=[];return Object.keys(this.cells).forEach((function(o){var i=e.cells[o];Object.keys(i).forEach((function(e){t===e&&n.push(i[e])}))})),n},t.prototype.get=function(t,e){return this.cells.hasOwnProperty(t.toString())?this.cells[t][e]:null},t}(),l=function(){function t(t){this.table=t,this.columns={},this.init()}return t.prototype.init=function(){for(var t=this.table.querySelector("thead").querySelectorAll("th"),e=0;e<t.length;e++){var n=t[e].id;this.columns[t[e].id]={name:n,type:AC.column_types[n],label:this.sanitizeLabel(t[e])}}},t.prototype.getColumns=function(){return this.columns},t.prototype.getColumnsMap=function(){var t=new Map,e=this.getColumns();return Object.keys(e).forEach((function(n){t.set(n,e[n])})),t},t.prototype.getColumnNames=function(){return Object.keys(this.columns)},t.prototype.get=function(t){return this.columns.hasOwnProperty(t)?this.columns[t]:null},t.prototype.sanitizeLabel=function(t){var e=t.querySelector("a"),n=t.innerHTML;if(e){var o=e.getElementsByTagName("span");o.length>0&&(n=o[0].innerHTML)}return n},t}(),a=function(){function t(t,e,n){this.object_id=t,this.column_name=e,this.original_value=n.innerHTML,this.el=n}return t.prototype.getObjectID=function(){return this.object_id},t.prototype.getName=function(){return this.column_name},t.prototype.getElement=function(){return this.el},t.prototype.getRow=function(){return this.el.parentElement},t.prototype.getSettings=function(){return AdminColumns.Table.Columns.get(this.getName())},t.prototype.hasChanged=function(t){return this.original_value!==t},t.prototype.setValue=function(t){return this.original_value=t,this.el.innerHTML=t,this},t}(),u=function(){function t(t){this.Table=t}return t.prototype.getIDs=function(){var t=[],e=this.Table.getElement().querySelectorAll("tbody th.check-column input[type=checkbox]:checked");if(0===e.length)return t;for(var n=0;n<e.length;n++)t.push(parseInt(e[n].value));return t},t.prototype.getSelectedCells=function(t){var e=this,n=this.getIDs();if(0===n.length)return null;var o=[];return n.forEach((function(n){var i=e.Table.Cells.get(n,t);i&&o.push(i)})),o},t.prototype.getCount=function(){return this.getIDs().length},t.prototype.isAllSelected=function(){return!!this.Table.getElement().querySelector("thead #cb input:checked")},t}(),c=function(t){if(t.classList.contains("no-items"))return 0;var e=h(t.id);if(!e){var n=t.querySelector(".check-column input[type=checkbox]");n&&(e=h(n.id))}if(!e){var o=t.parentElement.querySelector(".edit a");if(o){var i=o.getAttribute("href");i&&(e=parseInt(function(t,e){t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("id",i)))}}return t.dataset.id=e.toString(),e},h=function(t){var e=t.split(/[_,\-]+/);return parseInt(e[e.length-1])},p={READY:"Table.Ready"},f=function(){function t(t){this.el=t,this.Columns=new l(t),this.Cells=new r,this.Actions=document.getElementById("ac-table-actions")?new s(document.getElementById("ac-table-actions")):null,this.Selection=new u(this),this._ids=[]}return t.prototype.getElement=function(){return this.el},t.prototype.init=function(){this.initTable(),this.addCellClasses(),document.dispatchEvent(new CustomEvent("AC_Table_Ready",{detail:{table:this}})),AdminColumns.events.emit(p.READY,{table:this})},t.prototype.addCellClasses=function(){var t=this;this.Columns.getColumnNames().forEach((function(e){var n=t.Columns.get(e).type;t.Cells.getByName(e).forEach((function(t){t.getElement().classList.add(n)}))}))},t.prototype.initTable=function(){for(var t=this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr"),e=0;e<t.length;e++)this._ids.push(c(t[e])),this.updateRow(t[e])},t.prototype.updateRow=function(t){var e=c(t);t.dataset.id=e.toString(),this.setCellsForRow(t)},t.prototype.setCellsForRow=function(t){var e=this,n=c(t);this.Columns.getColumnNames().forEach((function(o){var i=o.replace(/\./g,"\\."),s=t.querySelector("td.column-"+i);if(s){var r=new a(n,o,s);e.Cells.add(n,r)}}))},t.prototype._getIDFromRow=function(t){return c(t)},t.prototype.getRowCellByName=function(t,e){return function(t,e){return t.querySelector("td.column-"+e)}(t,e)},t}(),d=n(4),m=function(){function t(e){this.columns=e,e.getColumnNames().forEach((function(n){var o=e.get(n),i=t.getInputByName(o.name);if(i&&0===i.parentElement.textContent.length){var s=document.createElement("span");s.innerHTML=o.label,i.parentElement.appendChild(s)}}))}return t.getInputByName=function(t){var e=document.querySelector("input[name='"+t+"-hide']");return e||!1},t}(),y=n(0),g=function(){function t(t){this.element=t,this.initEvents(),this.contentBox=this.element.parentElement.querySelector(".ac-toggle-box-contents"),this.contentBox||this.createContenBox()}return t.prototype.isAjax=function(){return 1===parseInt(this.element.dataset.ajaxPopulate)},t.prototype.isInited=function(){return this.element.dataset.toggleBoxInit},t.prototype.createContenBox=function(){var t=document.createElement("div");return t.classList.add("ac-toggle-box-contents"),o(t,this.element),this.contentBox=t,this.contentBox},t.prototype.initEvents=function(){var t=this;this.isInited()||(this.element.addEventListener("click",(function(e){e.preventDefault(),t.isAjax()&&!t.hasContent()&&t.manageAjaxValue(),t.toggleContentBox()})),this.element.dataset.toggleBoxInit="true")},t.prototype.hasContent=function(){return this.getContentBox().innerHTML.length>0},t.prototype.setContent=function(t){this.getContentBox().innerHTML=t},t.prototype.getContentBox=function(){return this.contentBox?this.contentBox:this.createContenBox()},t.prototype.setLabel=function(t){var e=this.element.dataset.label;t&&this.element.dataset.labelClose&&(e=this.element.dataset.labelClose),this.element.innerHTML=e+'<span class="spinner"></span>'},t.prototype.toggleContentBox=function(){this.getContentBox().classList.contains("-open")?(this.getContentBox().classList.remove("-open"),this.setLabel(!1)):(this.getContentBox().classList.add("-open"),this.setLabel(!0))},t.prototype.manageAjaxValue=function(){var t=this;this.element.classList.add("loading"),this.retrieveAjaxValue().done((function(e){t.setContent(e),y(t.element.parentElement).trigger("ajax_column_value_ready"),AdminColumns.Tooltips.init()})).always((function(){t.element.classList.remove("loading")}))},t.prototype.retrieveAjaxValue=function(){return y.ajax({url:ajaxurl,method:"POST",data:{action:"ac_get_column_value",list_screen:AC.list_screen,layout:AC.layout,column:this.element.dataset.column,pk:this.element.dataset.itemId,_ajax_nonce:AC.ajax_nonce}})},t}(),v=n(0),b=n.n(v),_=function(){document.querySelectorAll(".ac-show-more").forEach((function(t){new w(t)}))},w=function(){function t(t){this.element=t,this.initEvents()}return t.prototype.initEvents=function(){var t=this;this.isInited()||(this.getToggler()&&this.getToggler().addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})),this.element.dataset.showMoreInit="true")},t.prototype.getToggler=function(){return this.element.querySelector(".ac-show-more__toggle")},t.prototype.isInited=function(){return"true"===this.element.dataset.showMoreInit},t.prototype.toggle=function(){this.element.classList.contains("-on")?this.hide():this.show()},t.prototype.show=function(){this.element.classList.add("-on"),this.getToggler().innerHTML=this.getToggler().dataset.less},t.prototype.hide=function(){this.element.classList.remove("-on"),this.getToggler().innerHTML=this.getToggler().dataset.more},t}(),E=n(2),L=n(9),C=Object(L.a)();b()(document).ready((function(){var t=function(t){var e=document.querySelector(t);return e?"TABLE"===e.tagName?e:"TBODY"===e.tagName?e.closest("table"):e.querySelector("table.wp-list-table")?e.querySelector("table.wp-list-table"):null:null}(AC.table_id);t&&(C.Table=new f(t),C.Table.init(),C.ScreenOptionsColumns=new m(C.Table.Columns)),C.Tooltips=new d.a,document.querySelectorAll(".ac-toggle-box-link").forEach((function(t){new g(t)})),b()(".wp-list-table").on("updated","tr",(function(){C.Table.addCellClasses(),_()})),b()(".wp-list-table td").on("ACP_InlineEditing_After_SetValue",(function(){_()}))})),C.events.addListener(p.READY,(function(t){_(),document.querySelectorAll(".cpac_use_icons").forEach((function(t){t.parentElement.querySelectorAll(".row-actions a").forEach((function(t){new E.a(t,t.innerText)}))})),t.table.getElement().addEventListener("DOMNodeInserted",(function(t){var e=t.target;"TR"===e.tagName&&e.classList.contains("iedit")&&b()(e).trigger("updated",{id:c(e),row:e})}))})),window.ac_load_table=function(t){C.Table=new f(t)}}]);
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=48)}([function(t,e){t.exports=jQuery},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={TABLE:{READY:"Table.Ready"},SETTINGS:{FORM:{LOADED:"Settings.Form.Loaded",READY:"Settings.Form.Ready",SAVING:"Settings.Form.Saving",SAVED:"Settings.Form.Saved"},COLUMN:{INIT:"Settings.Column.Init",SWITCH:"Settings.Column.SwitchToType",REFRESHED:"Settings.Column.Refreshed"}}}},function(t,e,n){var i=n(14),o=n(15),s=n(10);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);var r=o(this._name+"('"+t.toString()+"')"),u=this._listeners[t];return u&&u.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},r.prototype.prependListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},r.prototype.once=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.prependOnceListener=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.removeListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(i(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var i=e.length,o=0;o<i;o++)n.push(e[o]);return n},r.prototype._emit=function(t,e,n,i){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==i?[e].concat(n,i):[e].concat(n));for(var o=t.length,s=0;s<o;s++){var r=t[s];r.apply(r,n)}}}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=s(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),s=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var i=n(4),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},o=function(t,e){void 0===e&&(e="div");var n=document.createElement(e);return n.innerHTML=t,n}},,function(t,e,n){"use strict";var i=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.getElement=function(){return this.el},t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n(5),o=n(0),s=function(){function t(t){this.element=t,this.settings=this.getDefaults(),this.init(),this.setInitialized()}return t.prototype.setInitialized=function(){r.add(this.element)},t.prototype.getDefaults=function(){return{width:this.element.getAttribute("data-width")?this.element.getAttribute("data-width"):250,noclick:!!this.element.getAttribute("data-noclick")&&this.element.getAttribute("data-noclick"),position:this.getPosition()}},t.prototype.isInitialized=function(){return r.isInitialized(this.element)},t.prototype.init=function(){this.isInitialized()||(o(this.element).pointer({content:this.getRelatedHTML(),position:this.settings.position,pointerWidth:this.settings.width,pointerClass:this.getPointerClass()}),this.initEvents())},t.prototype.getPosition=function(){var t={at:"left top",my:"right top",edge:"right"},e=this.element.getAttribute("data-pos"),n=this.element.getAttribute("data-pos_edge");return"right"===e&&(t={at:"right middle",my:"left middle",edge:"left"}),"right_bottom"===e&&(t={at:"right middle",my:"left bottom",edge:"none"}),"left"===e&&(t={at:"left middle",my:"right middle",edge:"right"}),n&&(t.edge=n),t},t.prototype.getPointerClass=function(){var t=["ac-wp-pointer","wp-pointer","wp-pointer-"+this.settings.position.edge];return this.settings.noclick&&t.push("noclick"),t.join(" ")},t.prototype.getRelatedHTML=function(){var t=document.getElementById(this.element.getAttribute("rel"));return t?t.innerHTML:""},t.prototype.initEvents=function(){var t=o(this.element);this.settings.noclick||t.click((function(){t.hasClass("open")?t.removeClass("open"):t.addClass("open")})),t.click((function(){t.pointer("open")})),t.mouseenter((function(){t.pointer("open"),setTimeout((function(){t.pointer("open")}),2)})),t.mouseleave((function(){setTimeout((function(){t.hasClass("open")||0!==o(".ac-wp-pointer.hover").length||t.pointer("close")}),1)})),t.on("close",(function(){setTimeout((function(){t.hasClass("open")||t.pointer("close")}))}))},t}(),r=function(){function t(){}return t.isInitialized=function(t){return this.initElements.filter((function(e){return e===t})).length>0},t.add=function(t){this.initElements.push(t)},t.initElements=[],t}(),u=function(t){void 0===t&&(t=null),t||(t=document.querySelectorAll(".ac-pointer")),t.forEach((function(t){new s(t)})),o(".ac-wp-pointer").hover((function(){o(this).addClass("hover")}),(function(){o(this).removeClass("hover"),o(".ac-pointer").trigger("close")})).on("click",".close",(function(){o(".ac-pointer").removeClass("open")})),new i.a}},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,i){n(t!=e,i)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,i){n(t==e,i)},n.ok=n,t.exports=n},,function(t,e,n){"use strict";var i=n(8),o=function(){function t(){this.modals={},this.number=0,this.defaults={modal:i.a},this.initGlobalEvents()}return t.prototype.register=function(t,e){return void 0===e&&(e=""),e||(e="m"+this.number),this.modals[e]=t,this.number++,t},t.prototype.get=function(t){return this.modals.hasOwnProperty(t)?this.modals[t]:null},t.prototype.open=function(t){this.get(t)&&this.get(t).open()},t.prototype.close=function(t){this.get(t)&&this.get(t).close()},t.prototype.closeAll=function(){for(var t in this.modals)this.close(t)},t.prototype.initGlobalEvents=function(){var t=this;document.addEventListener("click",(function(e){var n=e.target;n.dataset.acModal&&(e.preventDefault(),t.open(n.dataset.acModal))}))},t}();e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(2),o=n.n(i),s=function(){function t(){this.services={},this.events=new o.a}return t.prototype.registerService=function(t,e){return this.services[t]=e,this},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t.prototype.addListener=function(t,e){this.events.addListener(t,e)},t.prototype.emitEvent=function(t,e){this.events.emit(t,e)},t}(),r=function(){return window.AC_SERVICES||(window.AC_SERVICES=new s),window.AC_SERVICES}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o=t.length;if(!(e>=o||0===n)){var s=o-(n=e+n>o?o-e:n);for(i=e;i<s;++i)t[i]=t[i+n];t.length=s}}},function(t,e,n){var i,o=n(16)(),s=n(10);r.disabled=!0;try{i=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!i.mark}catch(t){}function r(t){if(s.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return u;var e=(1e4*i.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function a(s){var r="end-"+e+"-"+t;i.mark(r),o.push((function(){var o=null;try{var u=t+" ["+e+"]";i.measure(u,n,r),i.clearMarks(n),i.clearMarks(r)}catch(t){o=t}s&&s(o,t)}))}return i.mark(n),a.uuid=e,a}function u(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},function(t,e,n){var i=n(10),o="undefined"!=typeof window;function s(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}s.prototype.push=function(t){i.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},s.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},s.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),t=window._nanoScheduler):t=new s,t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var i=n(6),o=n(2),s=function(){function t(t){this.container=t,this.events=o(),this.init()}return t.prototype.init=function(){var t=this;this.container.addEventListener("update",(function(){t.refresh()}));var e=document.querySelectorAll(".tablenav.top .actions");e&&(Object(i.b)(this.container,e[e.length-1]),this.container.classList.add("-init"),this.container.dispatchEvent(new CustomEvent("update")))},t.prototype.refresh=function(){this.container.querySelectorAll(".ac-table-actions-buttons > a").forEach((function(t){t.classList.remove("last")}));var t=[].slice.call(this.container.querySelectorAll(".ac-table-actions-buttons > a"),0);t.reverse();for(var e=0;e<t.length;e++)if(t[e].offsetParent){t[e].classList.add("last");break}},t}(),r=function(){function t(){this.cells={}}return t.prototype.add=function(t,e){this.cells.hasOwnProperty(t)||(this.cells[t]={}),this.cells[t][e.getName()]=e},t.prototype.getByID=function(t){var e=[];if(!this.cells.hasOwnProperty(t.toString()))return e;var n=this.cells[t.toString()];return Object.keys(n).forEach((function(t){return e.push(n[t])})),e},t.prototype.getAll=function(){var t=this,e=[];return Object.keys(this.cells).forEach((function(n){var i=t.cells[n];Object.keys(i).forEach((function(t){return e.push(i[t])}))})),e},t.prototype.getByName=function(t){var e=this,n=[];return Object.keys(this.cells).forEach((function(i){var o=e.cells[i];Object.keys(o).forEach((function(e){t===e&&n.push(o[e])}))})),n},t.prototype.get=function(t,e){return this.cells.hasOwnProperty(t.toString())?this.cells[t][e]:null},t}(),u=function(){function t(t){this.table=t,this.columns={},this.init()}return t.prototype.init=function(){for(var t=this.table.querySelector("thead").querySelectorAll("th"),e=0;e<t.length;e++){var n=t[e].id;this.columns[t[e].id]=new a(n,AC.column_types[n],this.sanitizeLabel(t[e]))}},t.prototype.getColumns=function(){return this.columns},t.prototype.getColumnsMap=function(){var t=new Map,e=this.getColumns();return Object.keys(e).forEach((function(n){t.set(n,e[n])})),t},t.prototype.getColumnNames=function(){return Object.keys(this.columns)},t.prototype.get=function(t){return this.columns.hasOwnProperty(t)?this.columns[t]:null},t.prototype.sanitizeLabel=function(t){var e=t.querySelector("a"),n=t.innerHTML;if(e){var i=e.getElementsByTagName("span");i.length>0&&(n=i[0].innerHTML)}return n},t}(),a=function(){function t(t,e,n){this.name=t,this.type=e,this.label=n,this.services={}}return t.prototype.setService=function(t,e){this.services[t]=e},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t}(),l=function(){function t(t,e,n){this.object_id=t,this.column_name=e,this.original_value=n.innerHTML,this.el=n,this.services={}}return t.prototype.getObjectID=function(){return this.object_id},t.prototype.getName=function(){return this.column_name},t.prototype.getElement=function(){return this.el},t.prototype.setElement=function(t){this.el=t},t.prototype.getRow=function(){return this.el.parentElement},t.prototype.getSettings=function(){return AC_SERVICES.getService("Table").Columns.get(this.getName())},t.prototype.hasChanged=function(t){return this.original_value!==t},t.prototype.setValue=function(t){return this.original_value=t,this.el.innerHTML=t,this},t.prototype.setService=function(t,e){this.services[t]=e},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t}(),c=function(){function t(t){this.Table=t}return t.prototype.getIDs=function(){var t=[],e=this.Table.getElement().querySelectorAll("tbody th.check-column input[type=checkbox]:checked");if(0===e.length)return t;for(var n=0;n<e.length;n++)t.push(parseInt(e[n].value));return t},t.prototype.getSelectedCells=function(t){var e=this,n=this.getIDs();if(0===n.length)return null;var i=[];return n.forEach((function(n){var o=e.Table.Cells.get(n,t);o&&i.push(o)})),i},t.prototype.getCount=function(){return this.getIDs().length},t.prototype.isAllSelected=function(){return!!this.Table.getElement().querySelector("thead #cb input:checked")},t}(),h=function(t){if(t.classList.contains("no-items"))return 0;var e,n,i=p(t.id);if(!i){var o=t.querySelector(".check-column input[type=checkbox]");o&&(i=p(o.id))}if(!i){var s=t.parentElement.querySelector(".edit a");if(s){var r=s.getAttribute("href");r&&(i=parseInt((e="id",(n=r).includes("?")?new URLSearchParams(n.split("?")[1]).get(e):null)))}}return t.dataset.id=i.toString(),i},p=function(t){var e=t.split(/[_,\-]+/);return parseInt(e[e.length-1])},f=n(1),d=function(){function t(t,e){this.el=t,this.Services=e,this.Columns=new u(t),this.Cells=new r,this.Actions=document.getElementById("ac-table-actions")?new s(document.getElementById("ac-table-actions")):null,this.Selection=new c(this)}return t.prototype.getElement=function(){return this.el},t.prototype.getIdsFromTable=function(){var t=[];return this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((function(e){t.push(h(e))})),t},t.prototype.init=function(){return this.initTable(),this.addCellClasses(),document.dispatchEvent(new CustomEvent("AC_Table_Ready",{detail:{table:this}})),this.Services.emitEvent(f.a.TABLE.READY,{table:this}),this},t.prototype.addCellClasses=function(){var t=this;this.Columns.getColumnNames().forEach((function(e){var n=t.Columns.get(e).type;t.Cells.getByName(e).forEach((function(t){t.getElement().classList.add(n)}))}))},t.prototype.initTable=function(){var t=this;this.el.getElementsByTagName("tbody")[0].querySelectorAll("tr").forEach((function(e){t.updateRow(e)}))},t.prototype.updateRow=function(t){var e=h(t);t.dataset.id=e.toString(),this.setCellsForRow(t)},t.prototype.setCellsForRow=function(t){var e=this,n=h(t);this.Columns.getColumnNames().forEach((function(i){var o=i.replace(/\./g,"\\."),s=t.querySelector("td.column-"+o);if(s){var r=new l(n,i,s);e.Cells.add(n,r)}}))},t.prototype.getRowCellByName=function(t,e){return function(t,e){return t.querySelector("td.column-"+e)}(t,e)},t}(),m=n(5),g=function(){function t(e){this.columns=e,e.getColumnNames().forEach((function(n){var i=e.get(n),o=t.getInputByName(i.name);if(o&&0===o.parentElement.textContent.length){var s=document.createElement("span");s.innerHTML=i.label,o.parentElement.appendChild(s)}}))}return t.getInputByName=function(t){var e=document.querySelector("input[name='"+t+"-hide']");return e||!1},t}(),y=n(0),v=function(){function t(t){this.element=t,this.initEvents(),this.contentBox=this.element.parentElement.querySelector(".ac-toggle-box-contents"),this.contentBox||this.createContenBox()}return t.prototype.isAjax=function(){return 1===parseInt(this.element.dataset.ajaxPopulate)},t.prototype.isInited=function(){return this.element.dataset.toggleBoxInit},t.prototype.createContenBox=function(){var t=document.createElement("div");return t.classList.add("ac-toggle-box-contents"),Object(i.b)(t,this.element),this.contentBox=t,this.contentBox},t.prototype.initEvents=function(){var t=this;this.isInited()||(this.element.addEventListener("click",(function(e){e.preventDefault(),t.isAjax()&&!t.hasContent()&&t.manageAjaxValue(),t.toggleContentBox()})),this.element.dataset.toggleBoxInit="true")},t.prototype.hasContent=function(){return this.getContentBox().innerHTML.length>0},t.prototype.setContent=function(t){this.getContentBox().innerHTML=t},t.prototype.getContentBox=function(){return this.contentBox?this.contentBox:this.createContenBox()},t.prototype.setLabel=function(t){var e=this.element.dataset.label;t&&this.element.dataset.labelClose&&(e=this.element.dataset.labelClose),this.element.innerHTML=e+'<span class="spinner"></span>'},t.prototype.toggleContentBox=function(){this.getContentBox().classList.contains("-open")?(this.getContentBox().classList.remove("-open"),this.setLabel(!1)):(this.getContentBox().classList.add("-open"),this.setLabel(!0))},t.prototype.manageAjaxValue=function(){var t=this;this.element.classList.add("loading"),this.retrieveAjaxValue().done((function(e){t.setContent(e),y(t.element.parentElement).trigger("ajax_column_value_ready"),AC_SERVICES.getService("Tooltips").init()})).always((function(){t.element.classList.remove("loading")}))},t.prototype.retrieveAjaxValue=function(){return y.ajax({url:ajaxurl,method:"POST",data:{action:"ac_get_column_value",list_screen:AC.list_screen,layout:AC.layout,column:this.element.dataset.column,pk:this.element.dataset.itemId,_ajax_nonce:AC.ajax_nonce}})},t}(),b=n(0),E=n.n(b),S=function(){document.querySelectorAll(".ac-show-more").forEach((function(t){new w(t)}))},w=function(){function t(t){this.element=t,this.initEvents()}return t.prototype.initEvents=function(){var t=this;this.isInited()||(this.getToggler()&&this.getToggler().addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})),this.element.dataset.showMoreInit="true")},t.prototype.getToggler=function(){return this.element.querySelector(".ac-show-more__toggle")},t.prototype.isInited=function(){return"true"===this.element.dataset.showMoreInit},t.prototype.toggle=function(){this.element.classList.contains("-on")?this.hide():this.show()},t.prototype.show=function(){this.element.classList.add("-on"),this.getToggler().innerHTML=this.getToggler().dataset.less},t.prototype.hide=function(){this.element.classList.remove("-on"),this.getToggler().innerHTML=this.getToggler().dataset.more},t}(),C=n(4),L=n(13),_=n(12),T=n(9),A=Object(L.a)();A.registerService("Modals",new _.a),E()(document).ready((function(){var t=function(t){var e=document.querySelector(t);return e?"TABLE"===e.tagName?e:"TBODY"===e.tagName?e.closest("table"):e.querySelector("table.wp-list-table")?e.querySelector("table.wp-list-table"):null:null}(AC.table_id);if(Object(T.a)(),t){var e=new d(t,A).init();A.registerService("Table",e),A.registerService("ScreenOptionsColumns",new g(e.Columns))}A.registerService("Tooltips",new m.a),document.querySelectorAll(".ac-toggle-box-link").forEach((function(t){new v(t)})),E()(".wp-list-table").on("updated","tr",(function(){A.getService("Table").addCellClasses(),S()})),E()(".wp-list-table td").on("ACP_InlineEditing_After_SetValue",(function(){S()}))})),A.addListener(f.a.TABLE.READY,(function(t){S(),document.querySelectorAll(".cpac_use_icons").forEach((function(t){t.parentElement.querySelectorAll(".row-actions a").forEach((function(t){new C.a(t,t.innerText)}))})),new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"TR"===t.tagName&&t.classList.contains("iedit")&&E()(t).trigger("updated",{id:h(t),row:t})}))}))})).observe(t.table.getElement(),{childList:!0,subtree:!0})}))}]);
assets/js/table.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/constants.ts","webpack:///./js/helpers/admin-columns.ts","webpack:///./js/helpers/elements.ts","webpack:///./js/helpers/global.ts","webpack:///./js/helpers/table.ts","webpack:///./js/modules/modal.ts","webpack:///./js/modules/modals.ts","webpack:///./js/modules/toggle-box-link.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/show-more.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./js/table.ts","webpack:///./js/table/actions.ts","webpack:///./js/table/cell.ts","webpack:///./js/table/cells.ts","webpack:///./js/table/columns.ts","webpack:///./js/table/functions.ts","webpack:///./js/table/row-selection.ts","webpack:///./js/table/screen-options-columns.ts","webpack:///./js/table/table.ts","webpack:///./node_modules/nanoassert/index.js","webpack:///./node_modules/nanobus/index.js","webpack:///./node_modules/nanoscheduler/index.js","webpack:///./node_modules/nanotiming/browser.js","webpack:///./node_modules/remove-array-items/index.js","webpack:///external \"jQuery\""],"names":["EventConstants","TABLE","READY","nanobus","require","initAdminColumnsGlobalBootstrap","window","AdminColumns","events","Modals","insertAfter","newNode","referenceNode","parentNode","insertBefore","nextSibling","getParamFromUrl","param","url","replace","regex","RegExp","results","exec","decodeURIComponent","getIdFromTableRow","row","classList","contains","item_id","getIdFromString","id","input","querySelector","link","parentElement","href","getAttribute","parseInt","dataset","toString","value","id_parts","split","length","getRowCellByName","column_name","resolveTableBySelector","selector","table","document","tagName","closest","Modal","el","dialog","initEvents","prototype","_this","self","addEventListener","e","keyName","key","isOpen","close","dismissButtons","querySelectorAll","forEach","b","preventDefault","target","onClose","remove","open","setTimeout","onOpen","removeAttribute","add","destroy","modals","number","defaults","modal","initGlobalEvents","register","get","hasOwnProperty","closeAll","acModal","$","ToggleBoxLink","element","contentBox","createContenBox","isAjax","ajaxPopulate","isInited","toggleBoxInit","createElement","hasContent","manageAjaxValue","toggleContentBox","getContentBox","innerHTML","setContent","content","setLabel","label","labelClose","retrieveAjaxValue","done","response","trigger","Tooltips","init","always","ajax","ajaxurl","method","data","action","list_screen","AC","layout","column","pk","itemId","_ajax_nonce","ajax_nonce","initAcTooltips","auto_init_show_more","ShowMore","getToggler","event","stopPropagation","toggle","showMoreInit","hide","show","less","more","Tooltip","acTip","tip","createTooltip","acTooltipInit","body","appendChild","bodyOffset","getBoundingClientRect","viewportOffset","style","left","offsetWidth","top","offsetHeight","ready","table_id","Table","ScreenOptionsColumns","Columns","on","addCellClasses","addListener","init_actions_tooltips","getElement","ac_load_table","Actions","container","refresh","reference","dispatchEvent","CustomEvent","buttons","slice","call","reverse","i","offsetParent","Cell","name","object_id","original_value","getObjectID","getName","getRow","getSettings","hasChanged","setValue","Cells","cells","cell","getByID","result","Object","keys","push","getAll","getByName","columns","thead","headers","headerName","type","column_types","sanitizeLabel","getColumns","getColumnsMap","map","Map","k","set","getColumnNames","header","elements","getElementsByTagName","innerText","RowSelection","getIDs","ids","checked","getSelectedCells","getCount","isAllSelected","getInputByName","textContent","getElementById","Selection","_ids","initTable","detail","emit","rows","updateRow","setCellsForRow","td","_getIDFromRow"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAO,IAAIA,cAAc,GAAG;AACxBC,OAAK,EAAE;AACHC,SAAK,EAAE;AADJ;AADiB,CAAr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iB,CAACC,GAAD,CAAxB;AACH,GAFD;AAGA;;;;;;AAIAqI,OAAK,CAACtG,SAAN,CAAgBZ,gBAAhB,GAAmC,UAAUnB,GAAV,EAAeoB,WAAf,EAA4B;AAC3D,WAAOD,uEAAgB,CAACnB,GAAD,EAAMoB,WAAN,CAAvB;AACH,GAFD;;AAGA,SAAOiH,KAAP;AACH,CArE0B,EAA3B;;AAsEeA,oEAAf,E;;;;;;;;;;;AC7EA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACrBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,yCAAyC,SAAS;AAClD;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,aAAa;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;;;;;;;;;;;ACjKA,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACtDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;;AAE7B;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;;AAEb;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;AC/CY;;AAEZ;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA;;;;;;;;;;;;AC1BA,wB","file":"table.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/table.ts\");\n","export var EventConstants = {\n TABLE: {\n READY: 'Table.Ready'\n }\n};\n","import Modals from \"../modules/modals\";\nvar nanobus = require('nanobus');\nexport var initAdminColumnsGlobalBootstrap = function () {\n if (!window.AdminColumns) {\n window.AdminColumns = window.AdminColumns || {};\n AdminColumns.events = nanobus();\n AdminColumns.Modals = new Modals();\n }\n return window.AdminColumns;\n};\n","export function insertAfter(newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n}\nexport function insertBefore(newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode);\n}\n","export var getParamFromUrl = function (param, url) {\n param = param.replace(/[\\[\\]]/g, \"\\\\$&\");\n var regex = new RegExp(\"[?&]\" + param + \"(=([^&#]*)|&|#|$)\"), results = regex.exec(url);\n if (!results) {\n return null;\n }\n if (!results[2]) {\n return '';\n }\n return decodeURIComponent(results[2].replace(/\\+/g, \" \"));\n};\n","import { getParamFromUrl } from \"./global\";\nexport var getIdFromTableRow = function (row) {\n if (row.classList.contains('no-items')) {\n return 0;\n }\n var item_id = getIdFromString(row.id);\n if (!item_id) {\n var input = row.querySelector('.check-column input[type=checkbox]');\n if (input) {\n item_id = getIdFromString(input.id);\n }\n }\n // Try to get the ID from the edit URL (MS Sites)\n if (!item_id) {\n var link = row.parentElement.querySelector('.edit a');\n if (link) {\n var href = link.getAttribute('href');\n if (href) {\n item_id = parseInt(getParamFromUrl('id', href));\n }\n }\n }\n row.dataset.id = item_id.toString();\n return item_id;\n};\nexport var getIdFromString = function (value) {\n var id_parts = value.split(/[_,\\-]+/);\n return parseInt(id_parts[id_parts.length - 1]);\n};\nexport var getRowCellByName = function (row, column_name) {\n return row.querySelector(\"td.column-\" + column_name);\n};\nexport var resolveTableBySelector = function (selector) {\n var table = document.querySelector(selector);\n if (!table) {\n return null;\n }\n if (table.tagName === 'TABLE') {\n return table;\n }\n if (table.tagName === 'TBODY') {\n return table.closest('table');\n }\n if (table.querySelector('table.wp-list-table')) {\n return table.querySelector('table.wp-list-table');\n }\n return null;\n};\n","var Modal = /** @class */ (function () {\n function Modal(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n Modal.prototype.initEvents = function () {\n var _this = this;\n var self = this;\n document.addEventListener('keydown', function (e) {\n var keyName = e.key;\n if (!_this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n _this.close();\n }\n });\n var dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach(function (b) {\n b.addEventListener('click', function (e) {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', function (e) {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n };\n Modal.prototype.isOpen = function () {\n return this.el.classList.contains('-active');\n };\n Modal.prototype.close = function () {\n this.onClose();\n this.el.classList.remove('-active');\n };\n Modal.prototype.open = function () {\n var _this = this;\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(function () {\n _this.onOpen();\n _this.el.removeAttribute('style');\n _this.el.classList.add('-active');\n });\n };\n Modal.prototype.destroy = function () {\n this.el.remove();\n };\n Modal.prototype.onClose = function () {\n };\n Modal.prototype.onOpen = function () {\n };\n return Modal;\n}());\nexport default Modal;\n","import Modal from './modal';\nvar Modals = /** @class */ (function () {\n function Modals() {\n this.modals = {};\n this.number = 0;\n this.defaults = {\n modal: Modal\n };\n this.initGlobalEvents();\n }\n Modals.prototype.register = function (modal, key) {\n if (key === void 0) { key = ''; }\n if (!key) {\n key = 'm' + this.number;\n }\n this.modals[key] = modal;\n this.number++;\n return modal;\n };\n Modals.prototype.get = function (key) {\n return this.modals.hasOwnProperty(key) ? this.modals[key] : null;\n };\n Modals.prototype.open = function (key) {\n if (this.get(key)) {\n this.get(key).open();\n }\n };\n Modals.prototype.close = function (key) {\n if (this.get(key)) {\n this.get(key).close();\n }\n };\n Modals.prototype.closeAll = function () {\n for (var key in this.modals) {\n this.close(key);\n }\n };\n Modals.prototype.initGlobalEvents = function () {\n var _this = this;\n document.addEventListener('click', function (e) {\n var target = e.target;\n if (target.dataset.acModal) {\n e.preventDefault();\n _this.open(target.dataset.acModal);\n }\n });\n };\n return Modals;\n}());\nexport default Modals;\n","import { insertAfter } from \"../helpers/elements\";\nvar $ = require(\"jquery\");\nvar ToggleBoxLink = /** @class */ (function () {\n function ToggleBoxLink(element) {\n this.element = element;\n this.initEvents();\n this.contentBox = this.element.parentElement.querySelector('.ac-toggle-box-contents');\n if (!this.contentBox) {\n this.createContenBox();\n }\n }\n ToggleBoxLink.prototype.isAjax = function () {\n return parseInt(this.element.dataset.ajaxPopulate) === 1;\n };\n ToggleBoxLink.prototype.isInited = function () {\n return this.element.dataset.toggleBoxInit;\n };\n ToggleBoxLink.prototype.createContenBox = function () {\n var contentBox = document.createElement('div');\n contentBox.classList.add('ac-toggle-box-contents');\n insertAfter(contentBox, this.element);\n this.contentBox = contentBox;\n return this.contentBox;\n };\n ToggleBoxLink.prototype.initEvents = function () {\n var _this = this;\n if (this.isInited()) {\n return;\n }\n this.element.addEventListener('click', function (e) {\n e.preventDefault();\n if (_this.isAjax() && !_this.hasContent()) {\n _this.manageAjaxValue();\n }\n _this.toggleContentBox();\n });\n this.element.dataset.toggleBoxInit = 'true';\n };\n ToggleBoxLink.prototype.hasContent = function () {\n return this.getContentBox().innerHTML.length > 0;\n };\n ToggleBoxLink.prototype.setContent = function (content) {\n this.getContentBox().innerHTML = content;\n };\n ToggleBoxLink.prototype.getContentBox = function () {\n if (!this.contentBox) {\n return this.createContenBox();\n }\n return this.contentBox;\n };\n ToggleBoxLink.prototype.setLabel = function (open) {\n var label = this.element.dataset.label;\n if (open && this.element.dataset.labelClose) {\n label = this.element.dataset.labelClose;\n }\n this.element.innerHTML = label + '<span class=\"spinner\"></span>';\n };\n ToggleBoxLink.prototype.toggleContentBox = function () {\n if (this.getContentBox().classList.contains('-open')) {\n this.getContentBox().classList.remove('-open');\n this.setLabel(false);\n }\n else {\n this.getContentBox().classList.add('-open');\n this.setLabel(true);\n }\n };\n ToggleBoxLink.prototype.manageAjaxValue = function () {\n var _this = this;\n this.element.classList.add('loading');\n this.retrieveAjaxValue().done(function (response) {\n _this.setContent(response);\n $(_this.element.parentElement).trigger('ajax_column_value_ready');\n AdminColumns.Tooltips.init();\n }).always(function () {\n _this.element.classList.remove('loading');\n });\n };\n ToggleBoxLink.prototype.retrieveAjaxValue = function () {\n return $.ajax({\n url: ajaxurl,\n method: 'POST',\n data: {\n action: 'ac_get_column_value',\n list_screen: AC.list_screen,\n layout: AC.layout,\n column: this.element.dataset.column,\n pk: this.element.dataset.itemId,\n _ajax_nonce: AC.ajax_nonce\n }\n });\n };\n return ToggleBoxLink;\n}());\nexport default ToggleBoxLink;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var auto_init_show_more = function () {\n document.querySelectorAll('.ac-show-more').forEach(function (el) {\n new ShowMore(el);\n });\n};\nvar ShowMore = /** @class */ (function () {\n function ShowMore(el) {\n this.element = el;\n this.initEvents();\n }\n ShowMore.prototype.initEvents = function () {\n var _this = this;\n if (this.isInited()) {\n return;\n }\n if (this.getToggler()) {\n this.getToggler().addEventListener('click', function (event) {\n event.preventDefault();\n event.stopPropagation();\n _this.toggle();\n });\n }\n this.element.dataset.showMoreInit = 'true';\n };\n ShowMore.prototype.getToggler = function () {\n return this.element.querySelector('.ac-show-more__toggle');\n };\n ShowMore.prototype.isInited = function () {\n return this.element.dataset.showMoreInit === 'true';\n };\n ShowMore.prototype.toggle = function () {\n if (this.element.classList.contains('-on')) {\n this.hide();\n }\n else {\n this.show();\n }\n };\n ShowMore.prototype.show = function () {\n this.element.classList.add('-on');\n this.getToggler().innerHTML = this.getToggler().dataset.less;\n };\n ShowMore.prototype.hide = function () {\n this.element.classList.remove('-on');\n this.getToggler().innerHTML = this.getToggler().dataset.more;\n };\n return ShowMore;\n}());\nexport default ShowMore;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","import Table from \"./table/table\";\nimport Tooltip from \"./modules/tooltips\";\nimport ScreenOptionsColumns from \"./table/screen-options-columns\";\nimport ToggleBoxLink from \"./modules/toggle-box-link\";\n// @ts-ignore\nimport $ from 'jquery';\nimport { auto_init_show_more } from \"./plugin/show-more\";\nimport { init_actions_tooltips } from \"./table/functions\";\nimport { EventConstants } from \"./constants\";\nimport { getIdFromTableRow, resolveTableBySelector } from \"./helpers/table\";\nimport { initAdminColumnsGlobalBootstrap } from \"./helpers/admin-columns\";\nvar AdminColumns = initAdminColumnsGlobalBootstrap();\n$(document).ready(function () {\n var table = resolveTableBySelector(AC.table_id);\n if (table) {\n AdminColumns.Table = new Table(table);\n AdminColumns.Table.init();\n AdminColumns.ScreenOptionsColumns = new ScreenOptionsColumns(AdminColumns.Table.Columns);\n }\n AdminColumns.Tooltips = new Tooltip();\n document.querySelectorAll('.ac-toggle-box-link').forEach(function (el) {\n new ToggleBoxLink(el);\n });\n $('.wp-list-table').on('updated', 'tr', function () {\n AdminColumns.Table.addCellClasses();\n auto_init_show_more();\n });\n // TODO use more global event name instead of IE\n $('.wp-list-table td').on('ACP_InlineEditing_After_SetValue', function () {\n auto_init_show_more();\n });\n});\nAdminColumns.events.addListener(EventConstants.TABLE.READY, function (e) {\n auto_init_show_more();\n init_actions_tooltips();\n e.table.getElement().addEventListener('DOMNodeInserted', function (e) {\n var element = e.target;\n if (element.tagName !== 'TR' || !element.classList.contains('iedit')) {\n return;\n }\n $(element).trigger('updated', { id: getIdFromTableRow(element), row: element });\n });\n});\nwindow.ac_load_table = function (el) {\n AdminColumns.Table = new Table(el);\n};\n","import { insertAfter } from \"../helpers/elements\";\nvar nanobus = require('nanobus');\nvar Actions = /** @class */ (function () {\n function Actions(element) {\n this.container = element;\n this.events = nanobus();\n this.init();\n }\n Actions.prototype.init = function () {\n var _this = this;\n this.container.addEventListener('update', function () {\n _this.refresh();\n });\n var reference = document.querySelectorAll('.tablenav.top .actions');\n if (reference) {\n insertAfter(this.container, reference[reference.length - 1]);\n this.container.classList.add('-init');\n this.container.dispatchEvent(new CustomEvent('update'));\n }\n };\n Actions.prototype.refresh = function () {\n this.container.querySelectorAll('.ac-table-actions-buttons > a').forEach(function (element) {\n element.classList.remove('last');\n });\n var buttons = [].slice.call(this.container.querySelectorAll('.ac-table-actions-buttons > a'), 0);\n buttons.reverse();\n for (var i = 0; i < buttons.length; i++) {\n if (buttons[i].offsetParent) {\n buttons[i].classList.add('last');\n break;\n }\n }\n };\n return Actions;\n}());\nexport default Actions;\n","var Cell = /** @class */ (function () {\n function Cell(id, name, el) {\n this.object_id = id;\n this.column_name = name;\n this.original_value = el.innerHTML;\n this.el = el;\n }\n Cell.prototype.getObjectID = function () {\n return this.object_id;\n };\n Cell.prototype.getName = function () {\n return this.column_name;\n };\n Cell.prototype.getElement = function () {\n return this.el;\n };\n Cell.prototype.getRow = function () {\n return this.el.parentElement;\n };\n Cell.prototype.getSettings = function () {\n return AdminColumns.Table.Columns.get(this.getName());\n };\n Cell.prototype.hasChanged = function (content) {\n return this.original_value !== content;\n };\n Cell.prototype.setValue = function (value) {\n this.original_value = value;\n this.el.innerHTML = value;\n return this;\n };\n return Cell;\n}());\nexport default Cell;\n","var Cells = /** @class */ (function () {\n function Cells() {\n this.cells = {};\n }\n Cells.prototype.add = function (id, cell) {\n if (!this.cells.hasOwnProperty(id)) {\n this.cells[id] = {};\n }\n this.cells[id][cell.getName()] = cell;\n };\n Cells.prototype.getByID = function (id) {\n var result = [];\n if (!this.cells.hasOwnProperty(id.toString())) {\n return result;\n }\n var cells = this.cells[id.toString()];\n Object.keys(cells).forEach(function (name) { return result.push(cells[name]); });\n return result;\n };\n Cells.prototype.getAll = function () {\n var _this = this;\n var results = [];\n Object.keys(this.cells).forEach(function (id) {\n var cells = _this.cells[id];\n Object.keys(cells).forEach(function (name) { return results.push(cells[name]); });\n });\n return results;\n };\n Cells.prototype.getByName = function (name) {\n var _this = this;\n var results = [];\n Object.keys(this.cells).forEach(function (id) {\n var cells = _this.cells[id];\n Object.keys(cells).forEach(function (column_name) {\n if (name === column_name) {\n results.push(cells[column_name]);\n }\n });\n });\n return results;\n };\n Cells.prototype.get = function (id, name) {\n return this.cells.hasOwnProperty(id.toString()) ? this.cells[id][name] : null;\n };\n return Cells;\n}());\nexport default Cells;\n","var Columns = /** @class */ (function () {\n function Columns(table) {\n this.table = table;\n this.columns = {};\n this.init();\n }\n Columns.prototype.init = function () {\n var self = this;\n var thead = this.table.querySelector('thead');\n var headers = thead.querySelectorAll('th');\n for (var i = 0; i < headers.length; i++) {\n var headerName = headers[i].id;\n self.columns[headers[i].id] = {\n name: headerName,\n type: AC.column_types[headerName],\n label: this.sanitizeLabel(headers[i])\n };\n }\n };\n Columns.prototype.getColumns = function () {\n return this.columns;\n };\n Columns.prototype.getColumnsMap = function () {\n var map = new Map();\n var columns = this.getColumns();\n Object.keys(columns).forEach(function (k) {\n map.set(k, columns[k]);\n });\n return map;\n };\n Columns.prototype.getColumnNames = function () {\n return Object.keys(this.columns);\n };\n Columns.prototype.get = function (column_name) {\n return this.columns.hasOwnProperty(column_name) ? this.columns[column_name] : null;\n };\n Columns.prototype.sanitizeLabel = function (header) {\n var link = header.querySelector('a');\n var label = header.innerHTML;\n // If it contains a link, we presume that it is because of sorting\n if (link) {\n var elements = link.getElementsByTagName('span');\n if (elements.length > 0) {\n label = elements[0].innerHTML;\n }\n }\n return label;\n };\n return Columns;\n}());\nexport default Columns;\n","import { Tooltip } from \"../plugin/tooltip\";\nexport var init_actions_tooltips = function () {\n document.querySelectorAll('.cpac_use_icons').forEach(function (el) {\n el.parentElement.querySelectorAll('.row-actions a').forEach(function (el) {\n new Tooltip(el, el.innerText);\n });\n });\n};\n","var RowSelection = /** @class */ (function () {\n function RowSelection(table) {\n this.Table = table;\n }\n RowSelection.prototype.getIDs = function () {\n var ids = [];\n var checked = this.Table.getElement().querySelectorAll('tbody th.check-column input[type=checkbox]:checked');\n if (checked.length === 0) {\n return ids;\n }\n for (var i = 0; i < checked.length; i++) {\n ids.push(parseInt(checked[i].value));\n }\n return ids;\n };\n /**\n * Get selected cells for specific column\n */\n RowSelection.prototype.getSelectedCells = function (name) {\n var _this = this;\n var ids = this.getIDs();\n if (ids.length === 0) {\n return null;\n }\n var cells = [];\n ids.forEach(function (id) {\n var cell = _this.Table.Cells.get(id, name);\n if (cell) {\n cells.push(cell);\n }\n });\n return cells;\n };\n RowSelection.prototype.getCount = function () {\n return this.getIDs().length;\n };\n RowSelection.prototype.isAllSelected = function () {\n return !!this.Table.getElement().querySelector('thead #cb input:checked');\n };\n return RowSelection;\n}());\nexport default RowSelection;\n","var ScreenOptionsColumns = /** @class */ (function () {\n function ScreenOptionsColumns(columns) {\n this.columns = columns;\n columns.getColumnNames().forEach(function (column_name) {\n var column = columns.get(column_name);\n var input = ScreenOptionsColumns.getInputByName(column.name);\n if (input && input.parentElement.textContent.length === 0) {\n var label = document.createElement('span');\n label.innerHTML = column.label;\n input.parentElement.appendChild(label);\n }\n });\n }\n ScreenOptionsColumns.getInputByName = function (name) {\n var input = document.querySelector(\"input[name='\" + name + \"-hide']\");\n return input ? input : false;\n };\n return ScreenOptionsColumns;\n}());\nexport default ScreenOptionsColumns;\n","import Actions from \"./actions\";\nimport Cells from \"./cells\";\nimport Columns from \"./columns\";\nimport Cell from \"./cell\";\nimport RowSelection from \"./row-selection\";\nimport { getIdFromTableRow, getRowCellByName } from \"../helpers/table\";\nimport { EventConstants } from \"../constants\";\nvar Table = /** @class */ (function () {\n function Table(el) {\n this.el = el;\n this.Columns = new Columns(el);\n this.Cells = new Cells();\n this.Actions = document.getElementById('ac-table-actions') ? new Actions(document.getElementById('ac-table-actions')) : null;\n this.Selection = new RowSelection(this);\n // TODO make helper function for this (INLINE EDIT NEEDS IT)\n this._ids = [];\n }\n Table.prototype.getElement = function () {\n return this.el;\n };\n Table.prototype.init = function () {\n this.initTable();\n this.addCellClasses();\n document.dispatchEvent(new CustomEvent('AC_Table_Ready', { detail: { table: this } }));\n AdminColumns.events.emit(EventConstants.TABLE.READY, { table: this });\n };\n Table.prototype.addCellClasses = function () {\n var _this = this;\n this.Columns.getColumnNames().forEach(function (name) {\n var type = _this.Columns.get(name).type;\n var cells = _this.Cells.getByName(name);\n cells.forEach(function (cell) {\n cell.getElement().classList.add(type);\n });\n });\n };\n Table.prototype.initTable = function () {\n var el = this.el.getElementsByTagName('tbody');\n var rows = el[0].querySelectorAll('tr');\n for (var i = 0; i < rows.length; i++) {\n this._ids.push(getIdFromTableRow(rows[i]));\n this.updateRow(rows[i]);\n }\n };\n Table.prototype.updateRow = function (row) {\n var id = getIdFromTableRow(row);\n row.dataset.id = id.toString();\n this.setCellsForRow(row);\n };\n Table.prototype.setCellsForRow = function (row) {\n var _this = this;\n var id = getIdFromTableRow(row);\n this.Columns.getColumnNames().forEach(function (name) {\n var selector = name.replace(/\\./g, '\\\\.');\n var td = row.querySelector(\"td.column-\" + selector);\n if (td) {\n var cell = new Cell(id, name, td);\n _this.Cells.add(id, cell);\n }\n });\n };\n /**\n * @deprecated\n * TODO remove once IE uses the helper\n */\n Table.prototype._getIDFromRow = function (row) {\n return getIdFromTableRow(row);\n };\n /**\n * @deprecated use Helper function instead\n * TODO remove once IE uses the helper\n */\n Table.prototype.getRowCellByName = function (row, column_name) {\n return getRowCellByName(row, column_name);\n };\n return Table;\n}());\nexport default Table;\n","assert.notEqual = notEqual\nassert.notOk = notOk\nassert.equal = equal\nassert.ok = assert\n\nmodule.exports = assert\n\nfunction equal (a, b, m) {\n assert(a == b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notEqual (a, b, m) {\n assert(a != b, m) // eslint-disable-line eqeqeq\n}\n\nfunction notOk (t, m) {\n assert(!t, m)\n}\n\nfunction assert (t, m) {\n if (!t) throw new Error(m || 'AssertionError')\n}\n","var splice = require('remove-array-items')\nvar nanotiming = require('nanotiming')\nvar assert = require('assert')\n\nmodule.exports = Nanobus\n\nfunction Nanobus (name) {\n if (!(this instanceof Nanobus)) return new Nanobus(name)\n\n this._name = name || 'nanobus'\n this._starListeners = []\n this._listeners = {}\n}\n\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol')\n\n var data = []\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i])\n }\n\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\")\n var listeners = this._listeners[eventName]\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data)\n }\n\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid)\n }\n emitTiming()\n\n return this\n}\n\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.push(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].push(listener)\n }\n return this\n}\n\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners.unshift(listener)\n } else {\n if (!this._listeners[eventName]) this._listeners[eventName] = []\n this._listeners[eventName].unshift(listener)\n }\n return this\n}\n\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function')\n\n var self = this\n this.on(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function')\n\n var self = this\n this.prependListener(eventName, once)\n function once () {\n listener.apply(self, arguments)\n self.removeListener(eventName, once)\n }\n return this\n}\n\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol')\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function')\n\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice()\n return remove(this._starListeners, listener)\n } else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice()\n }\n\n return remove(this._listeners[eventName], listener)\n }\n\n function remove (arr, listener) {\n if (!arr) return\n var index = arr.indexOf(listener)\n if (index !== -1) {\n splice(arr, index, 1)\n return true\n }\n }\n}\n\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = []\n } else {\n this._listeners[eventName] = []\n }\n } else {\n this._starListeners = []\n this._listeners = {}\n }\n return this\n}\n\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners\n\n var ret = []\n if (listeners) {\n var ilength = listeners.length\n for (var i = 0; i < ilength; i++) ret.push(listeners[i])\n }\n return ret\n}\n\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined') return\n if (arr.length === 0) return\n if (data === undefined) {\n data = eventName\n eventName = null\n }\n\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid)\n } else {\n data = [eventName].concat(data)\n }\n }\n\n var length = arr.length\n for (var i = 0; i < length; i++) {\n var listener = arr[i]\n listener.apply(listener, data)\n }\n}\n","var assert = require('assert')\n\nvar hasWindow = typeof window !== 'undefined'\n\nfunction createScheduler () {\n var scheduler\n if (hasWindow) {\n if (!window._nanoScheduler) window._nanoScheduler = new NanoScheduler(true)\n scheduler = window._nanoScheduler\n } else {\n scheduler = new NanoScheduler()\n }\n return scheduler\n}\n\nfunction NanoScheduler (hasWindow) {\n this.hasWindow = hasWindow\n this.hasIdle = this.hasWindow && window.requestIdleCallback\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout\n this.scheduled = false\n this.queue = []\n}\n\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function')\n\n this.queue.push(cb)\n this.schedule()\n}\n\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled) return\n\n this.scheduled = true\n var self = this\n this.method(function (idleDeadline) {\n var cb\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift()\n cb(idleDeadline)\n }\n self.scheduled = false\n if (self.queue.length) self.schedule()\n })\n}\n\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1\n }\n })\n}\n\nmodule.exports = createScheduler\n","var scheduler = require('nanoscheduler')()\nvar assert = require('assert')\n\nvar perf\nnanotiming.disabled = true\ntry {\n perf = window.performance\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark\n} catch (e) { }\n\nmodule.exports = nanotiming\n\nfunction nanotiming (name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string')\n\n if (nanotiming.disabled) return noop\n\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER\n var startName = 'start-' + uuid + '-' + name\n perf.mark(startName)\n\n function end (cb) {\n var endName = 'end-' + uuid + '-' + name\n perf.mark(endName)\n\n scheduler.push(function () {\n var err = null\n try {\n var measureName = name + ' [' + uuid + ']'\n perf.measure(measureName, startName, endName)\n perf.clearMarks(startName)\n perf.clearMarks(endName)\n } catch (e) { err = e }\n if (cb) cb(err, name)\n })\n }\n\n end.uuid = uuid\n return end\n}\n\nfunction noop (cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'))\n })\n }\n}\n","'use strict'\n\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems (arr, startIdx, removeCount) {\n var i, length = arr.length\n\n if (startIdx >= length || removeCount === 0) {\n return\n }\n\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount)\n\n var len = length - removeCount\n\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount]\n }\n\n arr.length = len\n}\n","module.exports = jQuery;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/constants.ts","webpack:///./js/helpers/admin-columns.ts","webpack:///./js/helpers/elements.ts","webpack:///./js/helpers/global.ts","webpack:///./js/helpers/table.ts","webpack:///./js/modules/ac-pointer.ts","webpack:///./js/modules/ac-services.ts","webpack:///./js/modules/modal.ts","webpack:///./js/modules/modals.ts","webpack:///./js/modules/toggle-box-link.ts","webpack:///./js/modules/tooltips.ts","webpack:///./js/plugin/show-more.ts","webpack:///./js/plugin/tooltip.ts","webpack:///./js/table.ts","webpack:///./js/table/actions.ts","webpack:///./js/table/cell.ts","webpack:///./js/table/cells.ts","webpack:///./js/table/columns.ts","webpack:///./js/table/functions.ts","webpack:///./js/table/row-selection.ts","webpack:///./js/table/screen-options-columns.ts","webpack:///./js/table/table.ts","webpack:///./node_modules/nanoassert/index.js","webpack:///./node_modules/nanobus/index.js","webpack:///./node_modules/nanoscheduler/index.js","webpack:///./node_modules/nanotiming/browser.js","webpack:///./node_modules/remove-array-items/index.js","webpack:///external \"jQuery\""],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAgD;AACzC;AACP;AACA,iCAAiC,4DAAU;AAC3C;AACA;AACA;;;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AAAO;AACP;AACA;AACO;AACP;AACA;AACO;AACP,iCAAiC,qBAAqB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACO;AACP,8BAA8B,iBAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;;ACxBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACpC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,+DAAe;AAClD;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACO;AACP;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC/CA;AAAA;AAAA;AAAA;AAAiC;AACjC,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA,uDAAuD,uBAAuB,EAAE;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACM;AACP,8BAA8B,iBAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,QAAQ,iDAAO;AACf;;;;;;;;;;;;;ACzJA;AAAA;AAAA;AAA8B;AAC9B;AACA;AACA;AACA,0BAA0B,8CAAO;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,yEAAU,EAAC;;;;;;;;;;;;;ACxB1B;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,oEAAK,EAAC;;;;;;;;;;;;;AChErB;AAAA;AAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA,mBAAmB,8CAAK;AACxB;AACA;AACA;AACA;AACA,6BAA6B,UAAU;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACc,qEAAM,EAAC;;;;;;;;;;;;;ACjDtB;AAAA;AAAkD;AAClD,QAAQ,mBAAO,CAAC,sBAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,qEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACc,4EAAa,EAAC;;;;;;;;;;;;;AC9F7B;AAAA;AAAmD;AACnD;AACA;AACA;AACA;AACA;AACA,QAAQ,sEAAc;AACtB;AACA;AACA,CAAC;AACc,uEAAQ,EAAC;;;;;;;;;;;;;ACVxB;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,uEAAQ,EAAC;;;;;;;;;;;;;AChDxB;AAAA;AAAA;AAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACkB;AACnB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkC;AACO;AACyB;AACZ;AACtD;AACuB;AACkC;AACC;AACb;AAC+B;AACnB;AACnB;AACc;AACpD,kBAAkB,6EAAc;AAChC,0CAA0C,wDAAM;AAChD,6CAAC;AACD,gBAAgB,6EAAsB;AACtC,IAAI,yEAAY;AAChB;AACA,+BAA+B,oDAAK;AACpC;AACA,gEAAgE,qEAAoB;AACpF;AACA,gDAAgD,yDAAO;AACvD;AACA,YAAY,gEAAa;AACzB,KAAK;AACL,IAAI,6CAAC;AACL;AACA,QAAQ,6EAAmB;AAC3B,KAAK;AACL;AACA,IAAI,6CAAC;AACL,QAAQ,6EAAmB;AAC3B,KAAK;AACL,CAAC;AACD,wBAAwB,yDAAc;AACtC,IAAI,6EAAmB;AACvB,IAAI,8EAAqB;AACzB;AACA;AACA;AACA;AACA,oBAAoB,6CAAC,2BAA2B,KAAK,wEAAiB,mBAAmB;AACzF;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL,gDAAgD,iCAAiC;AACjF,CAAC;;;;;;;;;;;;;ACjDD;AAAA;AAAkD;AAClD,cAAc,mBAAO,CAAC,gDAAS;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,YAAY,qEAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,sEAAO,EAAC;;;;;;;;;;;;;ACnCvB;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,mEAAI,EAAC;;;;;;;;;;;;;AC7CpB;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iCAAiC,EAAE;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,kCAAkC,EAAE;AAC5F,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,oEAAK,EAAC;;;;;;;;;;;;;AC9CrB;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,sEAAO,EAAC;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAC8B;;;;;;;;;;;;;ACjE/B;AAAA;AAAA;AAA4C;AACrC;AACP;AACA;AACA,gBAAgB,uDAAO;AACvB,SAAS;AACT,KAAK;AACL;;;;;;;;;;;;;ACPA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,2EAAY,EAAC;;;;;;;;;;;;;ACzC5B;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,mFAAoB,EAAC;;;;;;;;;;;;;ACnBpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgC;AACJ;AACI;AACN;AACiB;AAC4B;AACzB;AAC9C;AACA;AACA;AACA;AACA,2BAA2B,gDAAO;AAClC,yBAAyB,8CAAK;AAC9B,yEAAyE,gDAAO;AAChF,6BAA6B,sDAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,wEAAiB;AACzC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,kEAAkE,UAAU,cAAc,EAAE;AAC5F,gCAAgC,yDAAc,eAAe,cAAc;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,iBAAiB,wEAAiB;AAClC;AACA;AACA;AACA;AACA;AACA,iBAAiB,wEAAiB;AAClC;AACA;AACA;AACA;AACA,+BAA+B,6CAAI;AACnC;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uEAAgB;AAC/B;AACA;AACA,CAAC;AACc,oEAAK,EAAC;;;;;;;;;;;;AC3ErB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACjBA,aAAa,mBAAO,CAAC,sEAAoB;AACzC,iBAAiB,mBAAO,CAAC,wDAAY;AACrC,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,SAAS;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,aAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;;;;;;;;;;;;ACpJA,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;;;;;;;;;;;ACjDA,gBAAgB,mBAAO,CAAC,4DAAe;AACvC,aAAa,mBAAO,CAAC,kDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;;;;;;;;;;;;AC5Ca;AACb;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,SAAS;AAC/B;AACA;AACA;AACA;;;;;;;;;;;;ACpBA,wB","file":"table.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./js/table.ts\");\n","export var EventConstants = {\n TABLE: {\n READY: 'Table.Ready'\n },\n SETTINGS: {\n FORM: {\n LOADED: 'Settings.Form.Loaded',\n READY: 'Settings.Form.Ready',\n SAVING: 'Settings.Form.Saving',\n SAVED: 'Settings.Form.Saved'\n },\n COLUMN: {\n INIT: 'Settings.Column.Init',\n SWITCH: 'Settings.Column.SwitchToType',\n REFRESHED: 'Settings.Column.Refreshed'\n }\n }\n};\n","import AcServices from \"../modules/ac-services\";\nexport var initAcServices = function () {\n if (!window.AC_SERVICES) {\n window.AC_SERVICES = new AcServices();\n }\n return window.AC_SERVICES;\n};\n","export var insertAfter = function (newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n};\nexport var insertBefore = function (newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode);\n};\nexport var createElementFromString = function (content, baseElement) {\n if (baseElement === void 0) { baseElement = 'div'; }\n var element = document.createElement(baseElement);\n element.innerHTML = content;\n return element;\n};\nfunction isInViewport(element) {\n var rect = element.getBoundingClientRect();\n return (rect.top >= 0 && rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth));\n}\n","export var getParamFromUrl = function (param, url) {\n if (!url.includes('?')) {\n return null;\n }\n var params = new URLSearchParams(url.split('?')[1]);\n return params.get(param);\n};\nexport var mapDataToFormData = function (data, formData) {\n if (formData === void 0) { formData = null; }\n if (!formData) {\n formData = new FormData();\n }\n Object.keys(data).forEach(function (key) {\n var value = data[key];\n if (Array.isArray(value)) {\n value.forEach(function (d) {\n formData.append(key + \"[]\", d);\n });\n }\n else {\n formData.append(key, data[key]);\n }\n });\n return formData;\n};\n","import { getParamFromUrl } from \"./global\";\nexport var getIdFromTableRow = function (row) {\n if (row.classList.contains('no-items')) {\n return 0;\n }\n var item_id = getIdFromString(row.id);\n if (!item_id) {\n var input = row.querySelector('.check-column input[type=checkbox]');\n if (input) {\n item_id = getIdFromString(input.id);\n }\n }\n // Try to get the ID from the edit URL (MS Sites)\n if (!item_id) {\n var link = row.parentElement.querySelector('.edit a');\n if (link) {\n var href = link.getAttribute('href');\n if (href) {\n item_id = parseInt(getParamFromUrl('id', href));\n }\n }\n }\n row.dataset.id = item_id.toString();\n return item_id;\n};\nexport var getIdFromString = function (value) {\n var id_parts = value.split(/[_,\\-]+/);\n return parseInt(id_parts[id_parts.length - 1]);\n};\nexport var getRowCellByName = function (row, column_name) {\n return row.querySelector(\"td.column-\" + column_name);\n};\nexport var resolveTableBySelector = function (selector) {\n var table = document.querySelector(selector);\n if (!table) {\n return null;\n }\n if (table.tagName === 'TABLE') {\n return table;\n }\n if (table.tagName === 'TBODY') {\n return table.closest('table');\n }\n if (table.querySelector('table.wp-list-table')) {\n return table.querySelector('table.wp-list-table');\n }\n return null;\n};\n","import Tooltip from \"./tooltips\";\nvar $ = require(\"jquery\");\nvar Pointer = /** @class */ (function () {\n function Pointer(el) {\n this.element = el;\n this.settings = this.getDefaults();\n this.init();\n this.setInitialized();\n }\n Pointer.prototype.setInitialized = function () {\n AcPointers.add(this.element);\n };\n Pointer.prototype.getDefaults = function () {\n return {\n width: this.element.getAttribute('data-width') ? this.element.getAttribute('data-width') : 250,\n noclick: this.element.getAttribute('data-noclick') ? this.element.getAttribute('data-noclick') : false,\n position: this.getPosition()\n };\n };\n Pointer.prototype.isInitialized = function () {\n return AcPointers.isInitialized(this.element);\n };\n Pointer.prototype.init = function () {\n if (this.isInitialized()) {\n return;\n }\n // create pointer\n $(this.element).pointer({\n content: this.getRelatedHTML(),\n position: this.settings.position,\n pointerWidth: this.settings.width,\n pointerClass: this.getPointerClass()\n });\n this.initEvents();\n };\n Pointer.prototype.getPosition = function () {\n var position = {\n at: 'left top',\n my: 'right top',\n edge: 'right',\n };\n var pos = this.element.getAttribute('data-pos');\n var edge = this.element.getAttribute('data-pos_edge');\n if ('right' === pos) {\n position = {\n at: 'right middle',\n my: 'left middle',\n edge: 'left'\n };\n }\n if ('right_bottom' === pos) {\n position = {\n at: 'right middle',\n my: 'left bottom',\n edge: 'none'\n };\n }\n if ('left' === pos) {\n position = {\n at: 'left middle',\n my: 'right middle',\n edge: 'right'\n };\n }\n if (edge) {\n position.edge = edge;\n }\n return position;\n };\n Pointer.prototype.getPointerClass = function () {\n var classes = [\n 'ac-wp-pointer',\n 'wp-pointer',\n 'wp-pointer-' + this.settings.position.edge\n ];\n if (this.settings.noclick) {\n classes.push('noclick');\n }\n return classes.join(' ');\n };\n Pointer.prototype.getRelatedHTML = function () {\n var related_element = document.getElementById(this.element.getAttribute('rel'));\n return related_element ? related_element.innerHTML : '';\n };\n Pointer.prototype.initEvents = function () {\n var el = $(this.element);\n // click\n if (!this.settings.noclick) {\n el.click(function () {\n if (el.hasClass('open')) {\n el.removeClass('open');\n }\n else {\n el.addClass('open');\n }\n });\n }\n el.click(function () {\n el.pointer('open');\n });\n el.mouseenter(function () {\n el.pointer('open');\n setTimeout(function () {\n el.pointer('open');\n }, 2);\n });\n el.mouseleave(function () {\n setTimeout(function () {\n if (!el.hasClass('open') && $('.ac-wp-pointer.hover').length === 0) {\n el.pointer('close');\n }\n }, 1);\n });\n el.on('close', function () {\n setTimeout(function () {\n if (!el.hasClass('open')) {\n el.pointer('close');\n }\n });\n });\n };\n return Pointer;\n}());\nexport { Pointer };\nvar AcPointers = /** @class */ (function () {\n function AcPointers() {\n }\n AcPointers.isInitialized = function (element) {\n return this.initElements.filter(function (el) { return el === element; }).length > 0;\n };\n AcPointers.add = function (element) {\n this.initElements.push(element);\n };\n AcPointers.initElements = [];\n return AcPointers;\n}());\nexport var initPointers = function (elements) {\n if (elements === void 0) { elements = null; }\n if (!elements) {\n elements = document.querySelectorAll('.ac-pointer');\n }\n elements.forEach(function (element) {\n new Pointer(element);\n });\n $('.ac-wp-pointer').hover(function () {\n $(this).addClass('hover');\n }, function () {\n $(this).removeClass('hover');\n $('.ac-pointer').trigger('close');\n }).on('click', '.close', function () {\n $('.ac-pointer').removeClass('open');\n });\n new Tooltip();\n};\n","import Nanobus from \"nanobus\";\nvar AcServices = /** @class */ (function () {\n function AcServices() {\n this.services = {};\n this.events = new Nanobus();\n }\n AcServices.prototype.registerService = function (name, service) {\n this.services[name] = service;\n return this;\n };\n AcServices.prototype.getService = function (name) {\n return this.hasService(name) ? this.services[name] : null;\n };\n AcServices.prototype.hasService = function (name) {\n return this.services.hasOwnProperty(name);\n };\n AcServices.prototype.addListener = function (name, callback) {\n this.events.addListener(name, callback);\n };\n AcServices.prototype.emitEvent = function (name, args) {\n this.events.emit(name, args);\n };\n return AcServices;\n}());\nexport default AcServices;\n","var Modal = /** @class */ (function () {\n function Modal(el) {\n if (!el) {\n return;\n }\n this.el = el;\n this.dialog = el.querySelector('.ac-modal__dialog');\n this.initEvents();\n }\n Modal.prototype.getElement = function () {\n return this.el;\n };\n Modal.prototype.initEvents = function () {\n var _this = this;\n var self = this;\n document.addEventListener('keydown', function (e) {\n var keyName = e.key;\n if (!_this.isOpen()) {\n return;\n }\n if ('Escape' === keyName) {\n _this.close();\n }\n });\n var dismissButtons = this.el.querySelectorAll('[data-dismiss=\"modal\"], .ac-modal__dialog__close');\n if (dismissButtons.length > 0) {\n dismissButtons.forEach(function (b) {\n b.addEventListener('click', function (e) {\n e.preventDefault();\n self.close();\n });\n });\n }\n this.el.addEventListener('click', function (e) {\n if (e.target.classList.contains('ac-modal')) {\n self.close();\n }\n });\n };\n Modal.prototype.isOpen = function () {\n return this.el.classList.contains('-active');\n };\n Modal.prototype.close = function () {\n this.onClose();\n this.el.classList.remove('-active');\n };\n Modal.prototype.open = function () {\n var _this = this;\n //short delay in order to allow bubbling events to bind before opening\n setTimeout(function () {\n _this.onOpen();\n _this.el.removeAttribute('style');\n _this.el.classList.add('-active');\n });\n };\n Modal.prototype.destroy = function () {\n this.el.remove();\n };\n Modal.prototype.onClose = function () {\n };\n Modal.prototype.onOpen = function () {\n };\n return Modal;\n}());\nexport default Modal;\n","import Modal from './modal';\nvar Modals = /** @class */ (function () {\n function Modals() {\n this.modals = {};\n this.number = 0;\n this.defaults = {\n modal: Modal\n };\n this.initGlobalEvents();\n }\n Modals.prototype.register = function (modal, key) {\n if (key === void 0) { key = ''; }\n if (!key) {\n key = 'm' + this.number;\n }\n this.modals[key] = modal;\n this.number++;\n return modal;\n };\n Modals.prototype.get = function (key) {\n return this.modals.hasOwnProperty(key) ? this.modals[key] : null;\n };\n Modals.prototype.open = function (key) {\n if (this.get(key)) {\n this.get(key).open();\n }\n };\n Modals.prototype.close = function (key) {\n if (this.get(key)) {\n this.get(key).close();\n }\n };\n Modals.prototype.closeAll = function () {\n for (var key in this.modals) {\n this.close(key);\n }\n };\n Modals.prototype.initGlobalEvents = function () {\n var _this = this;\n document.addEventListener('click', function (e) {\n var target = e.target;\n if (target.dataset.acModal) {\n e.preventDefault();\n _this.open(target.dataset.acModal);\n }\n });\n };\n return Modals;\n}());\nexport default Modals;\n","import { insertAfter } from \"../helpers/elements\";\nvar $ = require(\"jquery\");\nvar ToggleBoxLink = /** @class */ (function () {\n function ToggleBoxLink(element) {\n this.element = element;\n this.initEvents();\n this.contentBox = this.element.parentElement.querySelector('.ac-toggle-box-contents');\n if (!this.contentBox) {\n this.createContenBox();\n }\n }\n ToggleBoxLink.prototype.isAjax = function () {\n return parseInt(this.element.dataset.ajaxPopulate) === 1;\n };\n ToggleBoxLink.prototype.isInited = function () {\n return this.element.dataset.toggleBoxInit;\n };\n ToggleBoxLink.prototype.createContenBox = function () {\n var contentBox = document.createElement('div');\n contentBox.classList.add('ac-toggle-box-contents');\n insertAfter(contentBox, this.element);\n this.contentBox = contentBox;\n return this.contentBox;\n };\n ToggleBoxLink.prototype.initEvents = function () {\n var _this = this;\n if (this.isInited()) {\n return;\n }\n this.element.addEventListener('click', function (e) {\n e.preventDefault();\n if (_this.isAjax() && !_this.hasContent()) {\n _this.manageAjaxValue();\n }\n _this.toggleContentBox();\n });\n this.element.dataset.toggleBoxInit = 'true';\n };\n ToggleBoxLink.prototype.hasContent = function () {\n return this.getContentBox().innerHTML.length > 0;\n };\n ToggleBoxLink.prototype.setContent = function (content) {\n this.getContentBox().innerHTML = content;\n };\n ToggleBoxLink.prototype.getContentBox = function () {\n if (!this.contentBox) {\n return this.createContenBox();\n }\n return this.contentBox;\n };\n ToggleBoxLink.prototype.setLabel = function (open) {\n var label = this.element.dataset.label;\n if (open && this.element.dataset.labelClose) {\n label = this.element.dataset.labelClose;\n }\n this.element.innerHTML = label + '<span class=\"spinner\"></span>';\n };\n ToggleBoxLink.prototype.toggleContentBox = function () {\n if (this.getContentBox().classList.contains('-open')) {\n this.getContentBox().classList.remove('-open');\n this.setLabel(false);\n }\n else {\n this.getContentBox().classList.add('-open');\n this.setLabel(true);\n }\n };\n ToggleBoxLink.prototype.manageAjaxValue = function () {\n var _this = this;\n this.element.classList.add('loading');\n this.retrieveAjaxValue().done(function (response) {\n _this.setContent(response);\n $(_this.element.parentElement).trigger('ajax_column_value_ready');\n AC_SERVICES.getService('Tooltips').init();\n }).always(function () {\n _this.element.classList.remove('loading');\n });\n };\n ToggleBoxLink.prototype.retrieveAjaxValue = function () {\n return $.ajax({\n url: ajaxurl,\n method: 'POST',\n data: {\n action: 'ac_get_column_value',\n list_screen: AC.list_screen,\n layout: AC.layout,\n column: this.element.dataset.column,\n pk: this.element.dataset.itemId,\n _ajax_nonce: AC.ajax_nonce\n }\n });\n };\n return ToggleBoxLink;\n}());\nexport default ToggleBoxLink;\n","import { initAcTooltips } from \"../plugin/tooltip\";\nvar Tooltips = /** @class */ (function () {\n function Tooltips() {\n this.init();\n }\n Tooltips.prototype.init = function () {\n initAcTooltips();\n };\n return Tooltips;\n}());\nexport default Tooltips;\n","export var auto_init_show_more = function () {\n document.querySelectorAll('.ac-show-more').forEach(function (el) {\n new ShowMore(el);\n });\n};\nvar ShowMore = /** @class */ (function () {\n function ShowMore(el) {\n this.element = el;\n this.initEvents();\n }\n ShowMore.prototype.initEvents = function () {\n var _this = this;\n if (this.isInited()) {\n return;\n }\n if (this.getToggler()) {\n this.getToggler().addEventListener('click', function (event) {\n event.preventDefault();\n event.stopPropagation();\n _this.toggle();\n });\n }\n this.element.dataset.showMoreInit = 'true';\n };\n ShowMore.prototype.getToggler = function () {\n return this.element.querySelector('.ac-show-more__toggle');\n };\n ShowMore.prototype.isInited = function () {\n return this.element.dataset.showMoreInit === 'true';\n };\n ShowMore.prototype.toggle = function () {\n if (this.element.classList.contains('-on')) {\n this.hide();\n }\n else {\n this.show();\n }\n };\n ShowMore.prototype.show = function () {\n this.element.classList.add('-on');\n this.getToggler().innerHTML = this.getToggler().dataset.less;\n };\n ShowMore.prototype.hide = function () {\n this.element.classList.remove('-on');\n this.getToggler().innerHTML = this.getToggler().dataset.more;\n };\n return ShowMore;\n}());\nexport default ShowMore;\n","export var initAcTooltips = function () {\n document.querySelectorAll('[data-ac-tip]').forEach(function (element) {\n new Tooltip(element);\n });\n};\nvar Tooltip = /** @class */ (function () {\n function Tooltip(el, content) {\n if (content === void 0) { content = ''; }\n this.element = el;\n this.content = content ? content : el.dataset.acTip;\n this.tip = createTooltip(this.content);\n this.initEvents();\n }\n Tooltip.prototype.initEvents = function () {\n var _this = this;\n if (this.element.dataset.acTooltipInit === '1') {\n return;\n }\n this.element.dataset.acTooltipInit = '1';\n document.body.appendChild(this.tip);\n this.element.addEventListener('mouseenter', function () {\n var bodyOffset = document.body.getBoundingClientRect();\n var viewportOffset = _this.element.getBoundingClientRect();\n _this.tip.style.left = ((viewportOffset.left - bodyOffset.left) + _this.element.offsetWidth / 2) + 'px';\n _this.tip.style.top = ((viewportOffset.top - bodyOffset.top) + _this.element.offsetHeight) + 'px';\n _this.tip.classList.add('hover');\n });\n this.element.addEventListener('mouseleave', function () {\n _this.tip.classList.remove('hover');\n });\n };\n return Tooltip;\n}());\nexport { Tooltip };\nvar createTooltip = function (content) {\n var tip = document.createElement('div');\n tip.classList.add('ac-tooltip');\n tip.innerHTML = content;\n return tip;\n};\n","import Table from \"./table/table\";\nimport Tooltip from \"./modules/tooltips\";\nimport ScreenOptionsColumns from \"./table/screen-options-columns\";\nimport ToggleBoxLink from \"./modules/toggle-box-link\";\n// @ts-ignore\nimport $ from 'jquery';\nimport { auto_init_show_more } from \"./plugin/show-more\";\nimport { init_actions_tooltips } from \"./table/functions\";\nimport { EventConstants } from \"./constants\";\nimport { getIdFromTableRow, resolveTableBySelector } from \"./helpers/table\";\nimport { initAcServices } from \"./helpers/admin-columns\";\nimport Modals from \"./modules/modals\";\nimport { initPointers } from \"./modules/ac-pointer\";\nvar AC_SERVICES = initAcServices();\nAC_SERVICES.registerService('Modals', new Modals());\n$(document).ready(function () {\n var table = resolveTableBySelector(AC.table_id);\n initPointers();\n if (table) {\n var TableModule = (new Table(table, AC_SERVICES)).init();\n AC_SERVICES.registerService('Table', TableModule);\n AC_SERVICES.registerService('ScreenOptionsColumns', new ScreenOptionsColumns(TableModule.Columns));\n }\n AC_SERVICES.registerService('Tooltips', new Tooltip());\n document.querySelectorAll('.ac-toggle-box-link').forEach(function (el) {\n new ToggleBoxLink(el);\n });\n $('.wp-list-table').on('updated', 'tr', function () {\n AC_SERVICES.getService('Table').addCellClasses();\n auto_init_show_more();\n });\n // TODO use more global event name instead of IE\n $('.wp-list-table td').on('ACP_InlineEditing_After_SetValue', function () {\n auto_init_show_more();\n });\n});\nAC_SERVICES.addListener(EventConstants.TABLE.READY, function (event) {\n auto_init_show_more();\n init_actions_tooltips();\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n mutation.addedNodes.forEach(function (node) {\n if (node.tagName === 'TR' && node.classList.contains('iedit')) {\n $(node).trigger('updated', { id: getIdFromTableRow(node), row: node });\n }\n });\n });\n });\n observer.observe(event.table.getElement(), { childList: true, subtree: true });\n});\n","import { insertAfter } from \"../helpers/elements\";\nvar nanobus = require('nanobus');\nvar Actions = /** @class */ (function () {\n function Actions(element) {\n this.container = element;\n this.events = nanobus();\n this.init();\n }\n Actions.prototype.init = function () {\n var _this = this;\n this.container.addEventListener('update', function () {\n _this.refresh();\n });\n var reference = document.querySelectorAll('.tablenav.top .actions');\n if (reference) {\n insertAfter(this.container, reference[reference.length - 1]);\n this.container.classList.add('-init');\n this.container.dispatchEvent(new CustomEvent('update'));\n }\n };\n Actions.prototype.refresh = function () {\n this.container.querySelectorAll('.ac-table-actions-buttons > a').forEach(function (element) {\n element.classList.remove('last');\n });\n var buttons = [].slice.call(this.container.querySelectorAll('.ac-table-actions-buttons > a'), 0);\n buttons.reverse();\n for (var i = 0; i < buttons.length; i++) {\n if (buttons[i].offsetParent) {\n buttons[i].classList.add('last');\n break;\n }\n }\n };\n return Actions;\n}());\nexport default Actions;\n","var Cell = /** @class */ (function () {\n function Cell(id, name, el) {\n this.object_id = id;\n this.column_name = name;\n this.original_value = el.innerHTML;\n this.el = el;\n this.services = {};\n }\n Cell.prototype.getObjectID = function () {\n return this.object_id;\n };\n Cell.prototype.getName = function () {\n return this.column_name;\n };\n Cell.prototype.getElement = function () {\n return this.el;\n };\n Cell.prototype.setElement = function (element) {\n this.el = element;\n };\n Cell.prototype.getRow = function () {\n return this.el.parentElement;\n };\n Cell.prototype.getSettings = function () {\n return AC_SERVICES.getService('Table').Columns.get(this.getName());\n };\n Cell.prototype.hasChanged = function (content) {\n return this.original_value !== content;\n };\n Cell.prototype.setValue = function (value) {\n this.original_value = value;\n this.el.innerHTML = value;\n return this;\n };\n Cell.prototype.setService = function (name, service) {\n this.services[name] = service;\n };\n Cell.prototype.getService = function (name) {\n return this.hasService(name) ? this.services[name] : null;\n };\n Cell.prototype.hasService = function (name) {\n return this.services.hasOwnProperty(name);\n };\n return Cell;\n}());\nexport default Cell;\n","var Cells = /** @class */ (function () {\n function Cells() {\n this.cells = {};\n }\n Cells.prototype.add = function (id, cell) {\n if (!this.cells.hasOwnProperty(id)) {\n this.cells[id] = {};\n }\n this.cells[id][cell.getName()] = cell;\n };\n Cells.prototype.getByID = function (id) {\n var result = [];\n if (!this.cells.hasOwnProperty(id.toString())) {\n return result;\n }\n var cells = this.cells[id.toString()];\n Object.keys(cells).forEach(function (name) { return result.push(cells[name]); });\n return result;\n };\n Cells.prototype.getAll = function () {\n var _this = this;\n var results = [];\n Object.keys(this.cells).forEach(function (id) {\n var cells = _this.cells[id];\n Object.keys(cells).forEach(function (name) { return results.push(cells[name]); });\n });\n return results;\n };\n Cells.prototype.getByName = function (name) {\n var _this = this;\n var results = [];\n Object.keys(this.cells).forEach(function (id) {\n var cells = _this.cells[id];\n Object.keys(cells).forEach(function (column_name) {\n if (name === column_name) {\n results.push(cells[column_name]);\n }\n });\n });\n return results;\n };\n Cells.prototype.get = function (id, name) {\n return this.cells.hasOwnProperty(id.toString()) ? this.cells[id][name] : null;\n };\n return Cells;\n}());\nexport default Cells;\n","var Columns = /** @class */ (function () {\n function Columns(table) {\n this.table = table;\n this.columns = {};\n this.init();\n }\n Columns.prototype.init = function () {\n var self = this;\n var thead = this.table.querySelector('thead');\n var headers = thead.querySelectorAll('th');\n for (var i = 0; i < headers.length; i++) {\n var headerName = headers[i].id;\n self.columns[headers[i].id] = new ColumnTableSettings(headerName, AC.column_types[headerName], this.sanitizeLabel(headers[i]));\n }\n };\n Columns.prototype.getColumns = function () {\n return this.columns;\n };\n Columns.prototype.getColumnsMap = function () {\n var map = new Map();\n var columns = this.getColumns();\n Object.keys(columns).forEach(function (k) {\n map.set(k, columns[k]);\n });\n return map;\n };\n Columns.prototype.getColumnNames = function () {\n return Object.keys(this.columns);\n };\n Columns.prototype.get = function (column_name) {\n return this.columns.hasOwnProperty(column_name) ? this.columns[column_name] : null;\n };\n Columns.prototype.sanitizeLabel = function (header) {\n var link = header.querySelector('a');\n var label = header.innerHTML;\n // If it contains a link, we presume that it is because of sorting\n if (link) {\n var elements = link.getElementsByTagName('span');\n if (elements.length > 0) {\n label = elements[0].innerHTML;\n }\n }\n return label;\n };\n return Columns;\n}());\nexport default Columns;\nvar ColumnTableSettings = /** @class */ (function () {\n function ColumnTableSettings(name, type, label) {\n this.name = name;\n this.type = type;\n this.label = label;\n this.services = {};\n }\n ColumnTableSettings.prototype.setService = function (name, service) {\n this.services[name] = service;\n };\n ColumnTableSettings.prototype.getService = function (name) {\n return this.hasService(name) ? this.services[name] : null;\n };\n ColumnTableSettings.prototype.hasService = function (name) {\n return this.services.hasOwnProperty(name);\n };\n return ColumnTableSettings;\n}());\nexport { ColumnTableSettings };\n","import { Tooltip } from \"../plugin/tooltip\";\nexport var init_actions_tooltips = function () {\n document.querySelectorAll('.cpac_use_icons').forEach(function (el) {\n el.parentElement.querySelectorAll('.row-actions a').forEach(function (el) {\n new Tooltip(el, el.innerText);\n });\n });\n};\n","var RowSelection = /** @class */ (function () {\n function RowSelection(table) {\n this.Table = table;\n }\n RowSelection.prototype.getIDs = function () {\n var ids = [];\n var checked = this.Table.getElement().querySelectorAll('tbody th.check-column input[type=checkbox]:checked');\n if (checked.length === 0) {\n return ids;\n }\n for (var i = 0; i < checked.length; i++) {\n ids.push(parseInt(checked[i].value));\n }\n return ids;\n };\n /**\n * Get selected cells for specific column\n */\n RowSelection.prototype.getSelectedCells = function (name) {\n var _this = this;\n var ids = this.getIDs();\n if (ids.length === 0) {\n return null;\n }\n var cells = [];\n ids.forEach(function (id) {\n var cell = _this.Table.Cells.get(id, name);\n if (cell) {\n cells.push(cell);\n }\n });\n return cells;\n };\n RowSelection.prototype.getCount = function () {\n return this.getIDs().length;\n };\n RowSelection.prototype.isAllSelected = function () {\n return !!this.Table.getElement().querySelector('thead #cb input:checked');\n };\n return RowSelection;\n}());\nexport default RowSelection;\n","var ScreenOptionsColumns = /** @class */ (function () {\n function ScreenOptionsColumns(columns) {\n this.columns = columns;\n columns.getColumnNames().forEach(function (column_name) {\n var column = columns.get(column_name);\n var input = ScreenOptionsColumns.getInputByName(column.name);\n if (input && input.parentElement.textContent.length === 0) {\n var label = document.createElement('span');\n label.innerHTML = column.label;\n input.parentElement.appendChild(label);\n }\n });\n }\n ScreenOptionsColumns.getInputByName = function (name) {\n var input = document.querySelector(\"input[name='\" + name + \"-hide']\");\n return input ? input : false;\n };\n return ScreenOptionsColumns;\n}());\nexport default ScreenOptionsColumns;\n","import Actions from \"./actions\";\nimport Cells from \"./cells\";\nimport Columns from \"./columns\";\nimport Cell from \"./cell\";\nimport RowSelection from \"./row-selection\";\nimport { getIdFromTableRow, getRowCellByName } from \"../helpers/table\";\nimport { EventConstants } from \"../constants\";\nvar Table = /** @class */ (function () {\n function Table(el, services) {\n this.el = el;\n this.Services = services;\n this.Columns = new Columns(el);\n this.Cells = new Cells();\n this.Actions = document.getElementById('ac-table-actions') ? new Actions(document.getElementById('ac-table-actions')) : null;\n this.Selection = new RowSelection(this);\n }\n Table.prototype.getElement = function () {\n return this.el;\n };\n Table.prototype.getIdsFromTable = function () {\n var result = [];\n this.el.getElementsByTagName('tbody')[0].querySelectorAll('tr').forEach(function (row) {\n result.push(getIdFromTableRow(row));\n });\n return result;\n };\n Table.prototype.init = function () {\n this.initTable();\n this.addCellClasses();\n document.dispatchEvent(new CustomEvent('AC_Table_Ready', { detail: { table: this } }));\n this.Services.emitEvent(EventConstants.TABLE.READY, { table: this });\n return this;\n };\n Table.prototype.addCellClasses = function () {\n var _this = this;\n this.Columns.getColumnNames().forEach(function (name) {\n var type = _this.Columns.get(name).type;\n var cells = _this.Cells.getByName(name);\n cells.forEach(function (cell) {\n cell.getElement().classList.add(type);\n });\n });\n };\n Table.prototype.initTable = function () {\n var _this = this;\n this.el.getElementsByTagName('tbody')[0].querySelectorAll('tr').forEach(function (row) {\n _this.updateRow(row);\n });\n };\n Table.prototype.updateRow = function (row) {\n var id = getIdFromTableRow(row);\n row.dataset.id = id.toString();\n this.setCellsForRow(row);\n };\n Table.prototype.setCellsForRow = function (row) {\n var _this = this;\n var id = getIdFromTableRow(row);\n this.Columns.getColumnNames().forEach(function (name) {\n var selector = name.replace(/\\./g, '\\\\.');\n var td = row.querySelector(\"td.column-\" + selector);\n if (td) {\n var cell = new Cell(id, name, td);\n _this.Cells.add(id, cell);\n }\n });\n };\n /**\n * @deprecated use Helper function instead\n * TODO remove once IE uses the helper\n */\n Table.prototype.getRowCellByName = function (row, column_name) {\n return getRowCellByName(row, column_name);\n };\n return Table;\n}());\nexport default Table;\n","assert.notEqual = notEqual;\nassert.notOk = notOk;\nassert.equal = equal;\nassert.ok = assert;\nmodule.exports = assert;\nfunction equal(a, b, m) {\n assert(a == b, m); // eslint-disable-line eqeqeq\n}\nfunction notEqual(a, b, m) {\n assert(a != b, m); // eslint-disable-line eqeqeq\n}\nfunction notOk(t, m) {\n assert(!t, m);\n}\nfunction assert(t, m) {\n if (!t)\n throw new Error(m || 'AssertionError');\n}\n","var splice = require('remove-array-items');\nvar nanotiming = require('nanotiming');\nvar assert = require('assert');\nmodule.exports = Nanobus;\nfunction Nanobus(name) {\n if (!(this instanceof Nanobus))\n return new Nanobus(name);\n this._name = name || 'nanobus';\n this._starListeners = [];\n this._listeners = {};\n}\nNanobus.prototype.emit = function (eventName) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.emit: eventName should be type string or symbol');\n var data = [];\n for (var i = 1, len = arguments.length; i < len; i++) {\n data.push(arguments[i]);\n }\n var emitTiming = nanotiming(this._name + \"('\" + eventName.toString() + \"')\");\n var listeners = this._listeners[eventName];\n if (listeners && listeners.length > 0) {\n this._emit(this._listeners[eventName], data);\n }\n if (this._starListeners.length > 0) {\n this._emit(this._starListeners, eventName, data, emitTiming.uuid);\n }\n emitTiming();\n return this;\n};\nNanobus.prototype.on = Nanobus.prototype.addListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.on: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.on: listener should be type function');\n if (eventName === '*') {\n this._starListeners.push(listener);\n }\n else {\n if (!this._listeners[eventName])\n this._listeners[eventName] = [];\n this._listeners[eventName].push(listener);\n }\n return this;\n};\nNanobus.prototype.prependListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.prependListener: listener should be type function');\n if (eventName === '*') {\n this._starListeners.unshift(listener);\n }\n else {\n if (!this._listeners[eventName])\n this._listeners[eventName] = [];\n this._listeners[eventName].unshift(listener);\n }\n return this;\n};\nNanobus.prototype.once = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.once: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.once: listener should be type function');\n var self = this;\n this.on(eventName, once);\n function once() {\n listener.apply(self, arguments);\n self.removeListener(eventName, once);\n }\n return this;\n};\nNanobus.prototype.prependOnceListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.prependOnceListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.prependOnceListener: listener should be type function');\n var self = this;\n this.prependListener(eventName, once);\n function once() {\n listener.apply(self, arguments);\n self.removeListener(eventName, once);\n }\n return this;\n};\nNanobus.prototype.removeListener = function (eventName, listener) {\n assert.ok(typeof eventName === 'string' || typeof eventName === 'symbol', 'nanobus.removeListener: eventName should be type string or symbol');\n assert.equal(typeof listener, 'function', 'nanobus.removeListener: listener should be type function');\n if (eventName === '*') {\n this._starListeners = this._starListeners.slice();\n return remove(this._starListeners, listener);\n }\n else {\n if (typeof this._listeners[eventName] !== 'undefined') {\n this._listeners[eventName] = this._listeners[eventName].slice();\n }\n return remove(this._listeners[eventName], listener);\n }\n function remove(arr, listener) {\n if (!arr)\n return;\n var index = arr.indexOf(listener);\n if (index !== -1) {\n splice(arr, index, 1);\n return true;\n }\n }\n};\nNanobus.prototype.removeAllListeners = function (eventName) {\n if (eventName) {\n if (eventName === '*') {\n this._starListeners = [];\n }\n else {\n this._listeners[eventName] = [];\n }\n }\n else {\n this._starListeners = [];\n this._listeners = {};\n }\n return this;\n};\nNanobus.prototype.listeners = function (eventName) {\n var listeners = eventName !== '*'\n ? this._listeners[eventName]\n : this._starListeners;\n var ret = [];\n if (listeners) {\n var ilength = listeners.length;\n for (var i = 0; i < ilength; i++)\n ret.push(listeners[i]);\n }\n return ret;\n};\nNanobus.prototype._emit = function (arr, eventName, data, uuid) {\n if (typeof arr === 'undefined')\n return;\n if (arr.length === 0)\n return;\n if (data === undefined) {\n data = eventName;\n eventName = null;\n }\n if (eventName) {\n if (uuid !== undefined) {\n data = [eventName].concat(data, uuid);\n }\n else {\n data = [eventName].concat(data);\n }\n }\n var length = arr.length;\n for (var i = 0; i < length; i++) {\n var listener = arr[i];\n listener.apply(listener, data);\n }\n};\n","var assert = require('assert');\nvar hasWindow = typeof window !== 'undefined';\nfunction createScheduler() {\n var scheduler;\n if (hasWindow) {\n if (!window._nanoScheduler)\n window._nanoScheduler = new NanoScheduler(true);\n scheduler = window._nanoScheduler;\n }\n else {\n scheduler = new NanoScheduler();\n }\n return scheduler;\n}\nfunction NanoScheduler(hasWindow) {\n this.hasWindow = hasWindow;\n this.hasIdle = this.hasWindow && window.requestIdleCallback;\n this.method = this.hasIdle ? window.requestIdleCallback.bind(window) : this.setTimeout;\n this.scheduled = false;\n this.queue = [];\n}\nNanoScheduler.prototype.push = function (cb) {\n assert.equal(typeof cb, 'function', 'nanoscheduler.push: cb should be type function');\n this.queue.push(cb);\n this.schedule();\n};\nNanoScheduler.prototype.schedule = function () {\n if (this.scheduled)\n return;\n this.scheduled = true;\n var self = this;\n this.method(function (idleDeadline) {\n var cb;\n while (self.queue.length && idleDeadline.timeRemaining() > 0) {\n cb = self.queue.shift();\n cb(idleDeadline);\n }\n self.scheduled = false;\n if (self.queue.length)\n self.schedule();\n });\n};\nNanoScheduler.prototype.setTimeout = function (cb) {\n setTimeout(cb, 0, {\n timeRemaining: function () {\n return 1;\n }\n });\n};\nmodule.exports = createScheduler;\n","var scheduler = require('nanoscheduler')();\nvar assert = require('assert');\nvar perf;\nnanotiming.disabled = true;\ntry {\n perf = window.performance;\n nanotiming.disabled = window.localStorage.DISABLE_NANOTIMING === 'true' || !perf.mark;\n}\ncatch (e) { }\nmodule.exports = nanotiming;\nfunction nanotiming(name) {\n assert.equal(typeof name, 'string', 'nanotiming: name should be type string');\n if (nanotiming.disabled)\n return noop;\n var uuid = (perf.now() * 10000).toFixed() % Number.MAX_SAFE_INTEGER;\n var startName = 'start-' + uuid + '-' + name;\n perf.mark(startName);\n function end(cb) {\n var endName = 'end-' + uuid + '-' + name;\n perf.mark(endName);\n scheduler.push(function () {\n var err = null;\n try {\n var measureName = name + ' [' + uuid + ']';\n perf.measure(measureName, startName, endName);\n perf.clearMarks(startName);\n perf.clearMarks(endName);\n }\n catch (e) {\n err = e;\n }\n if (cb)\n cb(err, name);\n });\n }\n end.uuid = uuid;\n return end;\n}\nfunction noop(cb) {\n if (cb) {\n scheduler.push(function () {\n cb(new Error('nanotiming: performance API unavailable'));\n });\n }\n}\n","'use strict';\n/**\n * Remove a range of items from an array\n *\n * @function removeItems\n * @param {Array<*>} arr The target array\n * @param {number} startIdx The index to begin removing from (inclusive)\n * @param {number} removeCount How many items to remove\n */\nmodule.exports = function removeItems(arr, startIdx, removeCount) {\n var i, length = arr.length;\n if (startIdx >= length || removeCount === 0) {\n return;\n }\n removeCount = (startIdx + removeCount > length ? length - startIdx : removeCount);\n var len = length - removeCount;\n for (i = startIdx; i < len; ++i) {\n arr[i] = arr[i + removeCount];\n }\n arr.length = len;\n};\n","module.exports = jQuery;"],"sourceRoot":""}
classes/Admin/Asset/Columns.php CHANGED
@@ -21,12 +21,7 @@ class Columns extends Script {
21
  */
22
  private $list_screen;
23
 
24
- public function __construct(
25
- $handle,
26
- Location $location,
27
- DefaultColumnsRepository $default_columns,
28
- ListScreen $list_screen
29
- ) {
30
  parent::__construct( $handle, $location, [
31
  'jquery',
32
  'jquery-ui-slider',
@@ -40,8 +35,8 @@ class Columns extends Script {
40
 
41
  private function get_list_screens() {
42
  return is_network_admin()
43
- ? ListScreenTypes::instance()->get_list_screens( [ 'network_only' => true ] )
44
- : ListScreenTypes::instance()->get_list_screens( [ 'site_only' => true ] );
45
  }
46
 
47
  public function register() {
@@ -54,7 +49,7 @@ class Columns extends Script {
54
  $params = [
55
  '_ajax_nonce' => wp_create_nonce( AC\Ajax\Handler::NONCE_ACTION ),
56
  'list_screen' => $this->list_screen->get_key(),
57
- 'layout' => $this->list_screen->get_layout_id(),
58
  'original_columns' => [],
59
  'uninitialized_list_screens' => [],
60
  'i18n' => [
@@ -68,12 +63,14 @@ class Columns extends Script {
68
  ];
69
 
70
  foreach ( $this->get_list_screens() as $list_screen ) {
71
- if ( $this->default_columns->exists( $list_screen->get_key() ) ) {
 
 
72
  continue;
73
  }
74
 
75
- $params['uninitialized_list_screens'][ $list_screen->get_key() ] = [
76
- 'screen_link' => add_query_arg( [ 'save-default-headings' => '1', 'list_screen' => $list_screen->get_key() ], $list_screen->get_screen_link() ),
77
  'label' => $list_screen->get_label(),
78
  ];
79
  }
21
  */
22
  private $list_screen;
23
 
24
+ public function __construct( $handle, Location $location, DefaultColumnsRepository $default_columns, ListScreen $list_screen ) {
 
 
 
 
 
25
  parent::__construct( $handle, $location, [
26
  'jquery',
27
  'jquery-ui-slider',
35
 
36
  private function get_list_screens() {
37
  return is_network_admin()
38
+ ? ListScreenTypes::instance()->get_list_screens( [ ListScreenTypes::ARG_NETWORK => true ] )
39
+ : ListScreenTypes::instance()->get_list_screens( [ ListScreenTypes::ARG_SITE => true ] );
40
  }
41
 
42
  public function register() {
49
  $params = [
50
  '_ajax_nonce' => wp_create_nonce( AC\Ajax\Handler::NONCE_ACTION ),
51
  'list_screen' => $this->list_screen->get_key(),
52
+ 'layout' => $this->list_screen->has_id() ? $this->list_screen->get_id()->get_id() : null,
53
  'original_columns' => [],
54
  'uninitialized_list_screens' => [],
55
  'i18n' => [
63
  ];
64
 
65
  foreach ( $this->get_list_screens() as $list_screen ) {
66
+ $list_key = $list_screen->get_key();
67
+
68
+ if ( $this->default_columns->exists( $list_key ) ) {
69
  continue;
70
  }
71
 
72
+ $params['uninitialized_list_screens'][ $list_key ] = [
73
+ 'screen_link' => add_query_arg( [ 'save-default-headings' => '1', 'list_screen' => $list_key ], $list_screen->get_screen_link() ),
74
  'label' => $list_screen->get_label(),
75
  ];
76
  }
classes/Admin/Notice/ReadOnly.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Admin\Notice;
4
+
5
+ use AC\ListScreen;
6
+ use AC\Message;
7
+ use AC\Registrable;
8
+
9
+ class ReadOnly implements Registrable {
10
+
11
+ public function register() {
12
+ add_action( 'ac/settings/notice', [ $this, 'render_notice' ] );
13
+
14
+ }
15
+
16
+ public function render_notice( ListScreen $list_screen ) {
17
+ if ( $list_screen->is_read_only() ) {
18
+ $message = sprintf( __( 'The columns for %s are read only and can therefore not be edited.', 'codepress-admin-columns' ), '<strong>' . esc_html( $list_screen->get_title() ?: $list_screen->get_label() ) . '</strong>' );
19
+ $message = sprintf( '<p>%s</p>', apply_filters( 'ac/read_only_message', $message, $list_screen ) );
20
+
21
+ $notice = new Message\InlineMessage( $message );
22
+
23
+ echo $notice->set_type( Message::INFO )
24
+ ->render();
25
+ }
26
+ }
27
+
28
+ }
classes/Admin/Page/Columns.php CHANGED
@@ -7,6 +7,7 @@ use AC\Admin\Banner;
7
  use AC\Admin\Helpable;
8
  use AC\Admin\HelpTab;
9
  use AC\Admin\Page;
 
10
  use AC\Admin\ScreenOption;
11
  use AC\Admin\Section\Partial\Menu;
12
  use AC\Asset\Assets;
@@ -15,10 +16,13 @@ use AC\Asset\Location;
15
  use AC\Asset\Script;
16
  use AC\Asset\Style;
17
  use AC\Column;
18
- use AC\Controller\ListScreenRequest;
19
  use AC\DefaultColumnsRepository;
20
  use AC\ListScreen;
21
- use AC\Message;
 
 
 
22
  use AC\Type\Url\Documentation;
23
  use AC\Type\Url\Site;
24
  use AC\Type\Url\UtmTags;
@@ -28,11 +32,6 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
28
 
29
  const NAME = 'columns';
30
 
31
- /**
32
- * @var ListScreenRequest
33
- */
34
- private $controller;
35
-
36
  /**
37
  * @var Location\Absolute
38
  */
@@ -48,34 +47,53 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
48
  */
49
  private $menu;
50
 
51
- public function __construct(
52
- ListScreenRequest $controller,
53
- Location\Absolute $location,
54
- DefaultColumnsRepository $default_columns,
55
- Menu $menu
56
- ) {
 
 
 
 
 
 
 
 
 
 
57
  parent::__construct( self::NAME, __( 'Admin Columns', 'codepress-admin-columns' ) );
58
 
59
- $this->controller = $controller;
60
  $this->location = $location;
61
  $this->default_columns = $default_columns;
62
  $this->menu = $menu;
 
 
 
63
  }
64
 
65
- public function show_read_only_notice( ListScreen $list_screen ) {
66
- if ( $list_screen->is_read_only() ) {
67
- $message = sprintf( __( 'The columns for %s are read only and can therefore not be edited.', 'codepress-admin-columns' ), '<strong>' . esc_html( $list_screen->get_title() ? $list_screen->get_title() : $list_screen->get_label() ) . '</strong>' );
68
- $message = sprintf( '<p>%s</p>', apply_filters( 'ac/read_only_message', $message, $list_screen ) );
 
 
69
 
70
- $notice = new Message\InlineMessage( $message );
71
 
72
- echo $notice->set_type( Message::INFO )
73
- ->render();
74
  }
 
 
 
 
 
 
75
  }
76
 
77
  public function get_assets() {
78
-
79
  return new Assets( [
80
  new Style( 'jquery-ui-lightness', $this->location->with_suffix( 'assets/ui-theme/jquery-ui-1.8.18.custom.css' ) ),
81
  new Script( 'jquery-ui-slider' ),
@@ -83,7 +101,7 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
83
  'ac-admin-page-columns',
84
  $this->location->with_suffix( 'assets/js/admin-page-columns.js' ),
85
  $this->default_columns,
86
- $this->controller->get_list_screen()
87
  ),
88
  new Style( 'ac-admin-page-columns-css', $this->location->with_suffix( 'assets/css/admin-page-columns.css' ) ),
89
  new Style( 'ac-select2' ),
@@ -124,8 +142,22 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
124
  ];
125
  }
126
 
 
 
 
 
 
 
 
 
127
  public function render() {
128
- $list_screen = $this->controller->get_list_screen();
 
 
 
 
 
 
129
 
130
  if ( ! $this->default_columns->exists( $list_screen->get_key() ) ) {
131
  $modal = new View( [
@@ -133,7 +165,7 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
133
  ] );
134
  $modal->set_template( 'admin/loading-message' );
135
 
136
- return $this->menu->render( true ) . $modal->render();
137
  }
138
 
139
  $classes = [];
@@ -156,7 +188,7 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
156
  <div class="ac-admin <?= esc_attr( implode( ' ', $classes ) ); ?>" data-type="<?= esc_attr( $list_screen->get_key() ); ?>">
157
  <div class="ac-admin__header">
158
 
159
- <?= $this->menu->render(); ?>
160
 
161
  <?php do_action( 'ac/settings/after_title', $list_screen ); ?>
162
 
@@ -219,9 +251,9 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
219
 
220
  <div class="ac-admin__main">
221
 
222
- <?= $this->show_read_only_notice( $list_screen ); ?>
223
 
224
- <form method="post" id="listscreen_settings" class="<?= $list_screen->is_read_only() ? '-disabled' : ''; ?>">
225
  <?php
226
 
227
  $classes = [];
@@ -255,7 +287,7 @@ class Columns extends Page implements Enqueueables, Helpable, Admin\ScreenOption
255
  do_action( 'ac/settings/after_columns', $list_screen );
256
 
257
  ?>
258
- </form>
259
 
260
  </div>
261
 
7
  use AC\Admin\Helpable;
8
  use AC\Admin\HelpTab;
9
  use AC\Admin\Page;
10
+ use AC\Admin\Preference;
11
  use AC\Admin\ScreenOption;
12
  use AC\Admin\Section\Partial\Menu;
13
  use AC\Asset\Assets;
16
  use AC\Asset\Script;
17
  use AC\Asset\Style;
18
  use AC\Column;
19
+ use AC\Controller\Middleware;
20
  use AC\DefaultColumnsRepository;
21
  use AC\ListScreen;
22
+ use AC\ListScreenRepository\Storage;
23
+ use AC\ListScreenTypes;
24
+ use AC\Request;
25
+ use AC\Type\ListScreenId;
26
  use AC\Type\Url\Documentation;
27
  use AC\Type\Url\Site;
28
  use AC\Type\Url\UtmTags;
32
 
33
  const NAME = 'columns';
34
 
 
 
 
 
 
35
  /**
36
  * @var Location\Absolute
37
  */
47
  */
48
  private $menu;
49
 
50
+ /**
51
+ * @var Storage
52
+ */
53
+ private $storage;
54
+
55
+ /**
56
+ * @var Preference\ListScreen
57
+ */
58
+ private $preference;
59
+
60
+ /**
61
+ * @var bool
62
+ */
63
+ private $is_network;
64
+
65
+ public function __construct( Location\Absolute $location, DefaultColumnsRepository $default_columns, Menu $menu, Storage $storage, Preference\ListScreen $preference, $is_network = false ) {
66
  parent::__construct( self::NAME, __( 'Admin Columns', 'codepress-admin-columns' ) );
67
 
 
68
  $this->location = $location;
69
  $this->default_columns = $default_columns;
70
  $this->menu = $menu;
71
+ $this->storage = $storage;
72
+ $this->preference = $preference;
73
+ $this->is_network = (bool) $is_network;
74
  }
75
 
76
+ /**
77
+ * @return ListScreen|null
78
+ */
79
+ private function get_list_screen_from_request() {
80
+ $request = new Request();
81
+ $request->add_middleware( new Middleware\ListScreenAdmin( $this->storage, $this->preference, $this->is_network ) );
82
 
83
+ $list_key = $request->get( Middleware\ListScreenAdmin::PARAM_LIST_KEY );
84
 
85
+ if ( ! $list_key ) {
86
+ return null;
87
  }
88
+
89
+ $list_id = $request->get( Middleware\ListScreenAdmin::PARAM_LIST_ID );
90
+
91
+ return $list_id && ListScreenId::is_valid_id( $list_id )
92
+ ? $this->storage->find( new ListScreenId( $list_id ) )
93
+ : ListScreenTypes::instance()->get_list_screen_by_key( $list_key );
94
  }
95
 
96
  public function get_assets() {
 
97
  return new Assets( [
98
  new Style( 'jquery-ui-lightness', $this->location->with_suffix( 'assets/ui-theme/jquery-ui-1.8.18.custom.css' ) ),
99
  new Script( 'jquery-ui-slider' ),
101
  'ac-admin-page-columns',
102
  $this->location->with_suffix( 'assets/js/admin-page-columns.js' ),
103
  $this->default_columns,
104
+ $this->get_list_screen_from_request()
105
  ),
106
  new Style( 'ac-admin-page-columns-css', $this->location->with_suffix( 'assets/css/admin-page-columns.css' ) ),
107
  new Style( 'ac-select2' ),
142
  ];
143
  }
144
 
145
+ private function set_preference_screen( ListScreen $list_screen ) {
146
+ $this->preference->set_last_visited_list_key( $list_screen->get_key() );
147
+
148
+ if ( $list_screen->has_id() ) {
149
+ $this->preference->set_list_id( $list_screen->get_key(), $list_screen->get_id()->get_id() );
150
+ }
151
+ }
152
+
153
  public function render() {
154
+ $list_screen = $this->get_list_screen_from_request();
155
+
156
+ if ( ! $list_screen ) {
157
+ return '';
158
+ }
159
+
160
+ $this->set_preference_screen( $list_screen );
161
 
162
  if ( ! $this->default_columns->exists( $list_screen->get_key() ) ) {
163
  $modal = new View( [
165
  ] );
166
  $modal->set_template( 'admin/loading-message' );
167
 
168
+ return $this->menu->render( $list_screen, true ) . $modal->render();
169
  }
170
 
171
  $classes = [];
188
  <div class="ac-admin <?= esc_attr( implode( ' ', $classes ) ); ?>" data-type="<?= esc_attr( $list_screen->get_key() ); ?>">
189
  <div class="ac-admin__header">
190
 
191
+ <?= $this->menu->render( $list_screen ); ?>
192
 
193
  <?php do_action( 'ac/settings/after_title', $list_screen ); ?>
194
 
251
 
252
  <div class="ac-admin__main">
253
 
254
+ <?php do_action( 'ac/settings/notice', $list_screen ); ?>
255
 
256
+ <div id="listscreen_settings" data-form="listscreen" class="<?= $list_screen->is_read_only() ? '-disabled' : ''; ?>">
257
  <?php
258
 
259
  $classes = [];
287
  do_action( 'ac/settings/after_columns', $list_screen );
288
 
289
  ?>
290
+ </div>
291
 
292
  </div>
293
 
classes/Admin/Preference/ListScreen.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Admin\Preference;
4
+
5
+ use AC\Preferences\Site;
6
+
7
+ class ListScreen extends Site {
8
+
9
+ const OPTION_LAST_VISITED = 'last_visited_list_key';
10
+
11
+ public function __construct( $is_network = false ) {
12
+ parent::__construct( $is_network ? 'network_settings' : 'settings' );
13
+ }
14
+
15
+ public function get_last_visited_list_key() {
16
+ return $this->get( self::OPTION_LAST_VISITED );
17
+ }
18
+
19
+ public function set_last_visited_list_key( $list_key ) {
20
+ $this->set( self::OPTION_LAST_VISITED, $list_key );
21
+ }
22
+
23
+ public function set_list_id( $list_key, $list_id ) {
24
+ $this->set( (string) $list_key, (string) $list_id );
25
+ }
26
+
27
+ public function get_list_id( $list_key ) {
28
+ return $this->get( $list_key );
29
+ }
30
+
31
+ }
classes/Admin/Section/Partial/Menu.php CHANGED
@@ -2,27 +2,21 @@
2
 
3
  namespace AC\Admin\Section\Partial;
4
 
5
- use AC\Controller\ListScreenRequest;
6
  use AC\ListScreenGroups;
7
  use AC\ListScreenTypes;
8
  use AC\View;
9
 
10
  class Menu {
11
 
12
- /** @var ListScreenRequest */
13
- private $controller;
14
-
15
  /** @var bool */
16
  private $is_network;
17
 
18
- public function __construct( ListScreenRequest $controller, $is_network = false ) {
19
- $this->controller = $controller;
20
  $this->is_network = (bool) $is_network;
21
  }
22
 
23
- public function render( $is_hidden = false ) {
24
- $list_screen = $this->controller->get_list_screen();
25
-
26
  $menu = new View( [
27
  'items' => $this->get_grouped_list_screens(),
28
  'current' => $list_screen->get_key(),
2
 
3
  namespace AC\Admin\Section\Partial;
4
 
5
+ use AC\ListScreen;
6
  use AC\ListScreenGroups;
7
  use AC\ListScreenTypes;
8
  use AC\View;
9
 
10
  class Menu {
11
 
 
 
 
12
  /** @var bool */
13
  private $is_network;
14
 
15
+ public function __construct( $is_network = false ) {
 
16
  $this->is_network = (bool) $is_network;
17
  }
18
 
19
+ public function render( ListScreen $list_screen, $is_hidden = false ) {
 
 
20
  $menu = new View( [
21
  'items' => $this->get_grouped_list_screens(),
22
  'current' => $list_screen->get_key(),
classes/Admin/Tooltip.php CHANGED
@@ -34,8 +34,6 @@ class Tooltip {
34
 
35
  /**
36
  * @param array $args
37
- *
38
- * @return $this
39
  */
40
  private function populate( $args ) {
41
  foreach ( $args as $key => $value ) {
@@ -45,8 +43,6 @@ class Tooltip {
45
  call_user_func( [ $this, $method ], $value );
46
  }
47
  }
48
-
49
- return $this;
50
  }
51
 
52
  /**
34
 
35
  /**
36
  * @param array $args
 
 
37
  */
38
  private function populate( $args ) {
39
  foreach ( $args as $key => $value ) {
43
  call_user_func( [ $this, $method ], $value );
44
  }
45
  }
 
 
46
  }
47
 
48
  /**
classes/AdminColumns.php CHANGED
@@ -59,6 +59,7 @@ class AdminColumns extends Plugin {
59
 
60
  $services = [
61
  $this->admin,
 
62
  new Ajax\NumberFormat( new Request() ),
63
  new Deprecated\Hooks,
64
  new ListScreens(),
@@ -67,7 +68,7 @@ class AdminColumns extends Plugin {
67
  new ThirdParty\ACF,
68
  new ThirdParty\NinjaForms,
69
  new ThirdParty\WooCommerce,
70
- new ThirdParty\WPML,
71
  new Controller\DefaultColumns( new Request(), new DefaultColumnsRepository() ),
72
  new QuickEdit( $this->storage, new Table\Preference() ),
73
  new Capabilities\Manage(),
@@ -80,7 +81,7 @@ class AdminColumns extends Plugin {
80
  new Controller\RestoreSettingsRequest( $this->storage->get_repository( 'acp-database' ) ),
81
  new PluginActionLinks( $this->get_basename() ),
82
  new NoticeChecks(),
83
- new TableLoader( $this->storage, new PermissionChecker(), $location, new Table\Preference() ),
84
  ];
85
 
86
  foreach ( $services as $service ) {
@@ -189,7 +190,7 @@ class AdminColumns extends Plugin {
189
  public function list_screen_exists( $key ) {
190
  _deprecated_function( __METHOD__, '3.2' );
191
 
192
- return ListScreenTypes::instance()->get_list_screen_by_key( $key ) ? true : false;
193
  }
194
 
195
  /**
59
 
60
  $services = [
61
  $this->admin,
62
+ new Admin\Notice\ReadOnly(),
63
  new Ajax\NumberFormat( new Request() ),
64
  new Deprecated\Hooks,
65
  new ListScreens(),
68
  new ThirdParty\ACF,
69
  new ThirdParty\NinjaForms,
70
  new ThirdParty\WooCommerce,
71
+ new ThirdParty\WPML( $this->storage ),
72
  new Controller\DefaultColumns( new Request(), new DefaultColumnsRepository() ),
73
  new QuickEdit( $this->storage, new Table\Preference() ),
74
  new Capabilities\Manage(),
81
  new Controller\RestoreSettingsRequest( $this->storage->get_repository( 'acp-database' ) ),
82
  new PluginActionLinks( $this->get_basename() ),
83
  new NoticeChecks(),
84
+ new Controller\TableListScreenSetter( $this->storage, new PermissionChecker(), $location, new Table\Preference() ),
85
  ];
86
 
87
  foreach ( $services as $service ) {
190
  public function list_screen_exists( $key ) {
191
  _deprecated_function( __METHOD__, '3.2' );
192
 
193
+ return null !== ListScreenTypes::instance()->get_list_screen_by_key( $key );
194
  }
195
 
196
  /**
classes/AdminFactory.php CHANGED
@@ -4,10 +4,10 @@ namespace AC;
4
 
5
  use AC\Admin\Page;
6
  use AC\Admin\PageCollection;
 
7
  use AC\Admin\Section;
8
  use AC\Admin\SectionCollection;
9
  use AC\Asset\Location;
10
- use AC\Controller\ListScreenRequest;
11
  use AC\Deprecated\Hooks;
12
  use AC\ListScreenRepository\Storage;
13
 
@@ -32,17 +32,12 @@ class AdminFactory {
32
  * @return Page\Columns
33
  */
34
  protected function create_columns_page() {
35
- $list_screen_controller = new ListScreenRequest(
36
- new Request(),
37
- $this->storage,
38
- new Preferences\Site( 'settings' )
39
- );
40
-
41
  return new Page\Columns(
42
- $list_screen_controller,
43
  $this->location,
44
  new DefaultColumnsRepository(),
45
- new Section\Partial\Menu( $list_screen_controller, false )
 
 
46
  );
47
  }
48
 
4
 
5
  use AC\Admin\Page;
6
  use AC\Admin\PageCollection;
7
+ use AC\Admin\Preference;
8
  use AC\Admin\Section;
9
  use AC\Admin\SectionCollection;
10
  use AC\Asset\Location;
 
11
  use AC\Deprecated\Hooks;
12
  use AC\ListScreenRepository\Storage;
13
 
32
  * @return Page\Columns
33
  */
34
  protected function create_columns_page() {
 
 
 
 
 
 
35
  return new Page\Columns(
 
36
  $this->location,
37
  new DefaultColumnsRepository(),
38
+ new Section\Partial\Menu(),
39
+ $this->storage,
40
+ new Preference\ListScreen()
41
  );
42
  }
43
 
classes/Ajax/NumberFormat.php CHANGED
@@ -25,8 +25,7 @@ final class NumberFormat implements AC\Registrable {
25
  $decimal_point = $this->request->get( 'decimal_point' ) ?: null;
26
  $thousands_sep = $this->request->get( 'thousands_sep' ) ?: '';
27
 
28
- echo number_format( $number, $decimals, $decimal_point, $thousands_sep );
29
- exit;
30
  }
31
 
32
  }
25
  $decimal_point = $this->request->get( 'decimal_point' ) ?: null;
26
  $thousands_sep = $this->request->get( 'thousands_sep' ) ?: '';
27
 
28
+ wp_send_json_success( number_format( $number, $decimals, $decimal_point, $thousands_sep ) );
 
29
  }
30
 
31
  }
classes/ApplyFilter.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC;
4
+
5
+ interface ApplyFilter {
6
+
7
+ /**
8
+ * @param mixed $value
9
+ *
10
+ * @return mixed
11
+ */
12
+ public function apply_filters( $value );
13
+
14
+ }
classes/ArrayIterator.php CHANGED
@@ -11,44 +11,26 @@ class ArrayIterator implements Iterator {
11
  */
12
  protected $array;
13
 
14
- /**
15
- * @param array $array
16
- */
17
  public function __construct( array $array ) {
18
  $this->array = $array;
19
  }
20
 
21
- /**
22
- * @inheritDoc
23
- */
24
  public function current() {
25
  return current( $this->array );
26
  }
27
 
28
- /**
29
- * @inheritDoc
30
- */
31
  public function next() {
32
  return next( $this->array );
33
  }
34
 
35
- /**
36
- * @inheritDoc
37
- */
38
  public function key() {
39
  return key( $this->array );
40
  }
41
 
42
- /**
43
- * @inheritDoc
44
- */
45
  public function valid() {
46
  return $this->key() !== null;
47
  }
48
 
49
- /**
50
- * @inheritDoc
51
- */
52
  public function rewind() {
53
  return reset( $this->array );
54
  }
11
  */
12
  protected $array;
13
 
 
 
 
14
  public function __construct( array $array ) {
15
  $this->array = $array;
16
  }
17
 
 
 
 
18
  public function current() {
19
  return current( $this->array );
20
  }
21
 
 
 
 
22
  public function next() {
23
  return next( $this->array );
24
  }
25
 
 
 
 
26
  public function key() {
27
  return key( $this->array );
28
  }
29
 
 
 
 
30
  public function valid() {
31
  return $this->key() !== null;
32
  }
33
 
 
 
 
34
  public function rewind() {
35
  return reset( $this->array );
36
  }
classes/Column/Comment/DateGmt.php CHANGED
@@ -4,9 +4,6 @@ namespace AC\Column\Comment;
4
 
5
  use AC\Column;
6
 
7
- /**
8
- * @since 2.0
9
- */
10
  class DateGmt extends Column {
11
 
12
  public function __construct() {
@@ -27,9 +24,7 @@ class DateGmt extends Column {
27
  }
28
 
29
  public function get_raw_value( $id ) {
30
- $comment = get_comment( $id );
31
-
32
- return $comment->comment_date_gmt;
33
  }
34
 
35
  }
4
 
5
  use AC\Column;
6
 
 
 
 
7
  class DateGmt extends Column {
8
 
9
  public function __construct() {
24
  }
25
 
26
  public function get_raw_value( $id ) {
27
+ return get_comment( $id )->comment_date_gmt;
 
 
28
  }
29
 
30
  }
classes/Column/CustomField.php CHANGED
@@ -21,7 +21,7 @@ class CustomField extends Column\Meta {
21
  }
22
 
23
  public function get_meta_key() {
24
- return $this->get_setting( 'custom_field' )->get_value();
25
  }
26
 
27
  public function register_settings() {
@@ -38,10 +38,11 @@ class CustomField extends Column\Meta {
38
  }
39
 
40
  /**
41
- * @since 3.2.1
 
42
  */
43
  public function get_field_type() {
44
- return $this->get_setting( 'field_type' )->get_value();
45
  }
46
 
47
  /**
21
  }
22
 
23
  public function get_meta_key() {
24
+ return $this->get_setting( Settings\Column\CustomField::NAME )->get_value();
25
  }
26
 
27
  public function register_settings() {
38
  }
39
 
40
  /**
41
+ * @return string e.g. excerpt|color|date|numeric|image|has_content|link|checkmark|library_id|title_by_id|user_by_id|array|count
42
+ * @see Settings\Column\CustomFieldType
43
  */
44
  public function get_field_type() {
45
+ return $this->get_setting( Settings\Column\CustomFieldType::NAME )->get_value();
46
  }
47
 
48
  /**
classes/Column/Meta.php CHANGED
@@ -40,7 +40,7 @@ abstract class Meta extends Column {
40
  * @since 2.0.3
41
  */
42
  public function get_raw_value( $id ) {
43
- return $this->get_meta_value( $id, $this->get_meta_key(), true );
44
  }
45
 
46
  /**
40
  * @since 2.0.3
41
  */
42
  public function get_raw_value( $id ) {
43
+ return $this->get_meta_value( $id, $this->get_meta_key() );
44
  }
45
 
46
  /**
classes/Column/Post/Sticky.php CHANGED
@@ -9,7 +9,7 @@ use AC\Column;
9
  */
10
  class Sticky extends Column {
11
 
12
- private $stickies = null;
13
 
14
  public function __construct() {
15
  $this->set_type( 'column-sticky' );
@@ -17,7 +17,7 @@ class Sticky extends Column {
17
  }
18
 
19
  function is_valid() {
20
- return 'post' == $this->get_post_type();
21
  }
22
 
23
  function get_value( $post_id ) {
9
  */
10
  class Sticky extends Column {
11
 
12
+ private $stickies;
13
 
14
  public function __construct() {
15
  $this->set_type( 'column-sticky' );
17
  }
18
 
19
  function is_valid() {
20
+ return 'post' === $this->get_post_type();
21
  }
22
 
23
  function get_value( $post_id ) {
classes/Column/User/FirstPost.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Column\User;
4
+
5
+ use AC\Column;
6
+ use AC\Settings;
7
+
8
+ /**
9
+ * @since 4.2.6
10
+ */
11
+ class FirstPost extends Column {
12
+
13
+ public function __construct() {
14
+ $this->set_type( 'column-first_post' );
15
+ $this->set_label( __( 'First Post', 'codepress-admin-columns' ) );
16
+ }
17
+
18
+ public function get_value( $id ) {
19
+ $first_post_id = $this->get_raw_value( $id );
20
+
21
+ if ( ! $first_post_id ) {
22
+ return $this->get_empty_char();
23
+ }
24
+
25
+ $post = get_post( $first_post_id );
26
+
27
+ return $this->get_formatted_value( $post->ID );
28
+ }
29
+
30
+ public function get_raw_value( $user_id ) {
31
+ $posts = get_posts( [
32
+ 'author' => $user_id,
33
+ 'fields' => 'ids',
34
+ 'number' => 1,
35
+ 'orderby' => 'date',
36
+ 'post_status' => $this->get_related_post_stati(),
37
+ 'order' => 'ASC',
38
+ 'post_type' => $this->get_related_post_type(),
39
+ ] );
40
+
41
+ return empty( $posts ) ? null : $posts[0];
42
+ }
43
+
44
+ /**
45
+ * @return array
46
+ */
47
+ public function get_related_post_stati() {
48
+ return $this->get_setting( Settings\Column\PostStatus::NAME )->get_value();
49
+ }
50
+
51
+ /**
52
+ * @return string
53
+ */
54
+ protected function get_related_post_type() {
55
+ return $this->get_setting( 'post_type' )->get_value();
56
+ }
57
+
58
+ protected function register_settings() {
59
+ $this->add_setting( new Settings\Column\PostType( $this ) );
60
+ $this->add_setting( new Settings\Column\PostStatus( $this ) );
61
+ $this->add_setting( new Settings\Column\Post( $this ) );
62
+ }
63
+
64
+ }
classes/Column/User/LastPost.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Column\User;
4
+
5
+ use AC\Column;
6
+ use AC\Settings;
7
+
8
+ /**
9
+ * @since 4.2.6
10
+ */
11
+ class LastPost extends Column {
12
+
13
+ public function __construct() {
14
+ $this->set_type( 'column-latest_post' );
15
+ $this->set_label( __( 'Last Post', 'codepress-admin-columns' ) );
16
+ }
17
+
18
+ public function get_value( $id ) {
19
+ $first_post_id = $this->get_raw_value( $id );
20
+
21
+ if ( ! $first_post_id ) {
22
+ return $this->get_empty_char();
23
+ }
24
+
25
+ $post = get_post( $first_post_id );
26
+
27
+ return $this->get_formatted_value( $post->ID );
28
+ }
29
+
30
+ /**
31
+ * @return string
32
+ */
33
+ protected function get_related_post_type() {
34
+ return $this->get_setting( 'post_type' )->get_value();
35
+ }
36
+
37
+ public function get_raw_value( $user_id ) {
38
+ $posts = get_posts( [
39
+ 'author' => $user_id,
40
+ 'fields' => 'ids',
41
+ 'number' => 1,
42
+ 'post_status' => $this->get_related_post_stati(),
43
+ 'post_type' => $this->get_related_post_type(),
44
+ ] );
45
+
46
+ return empty( $posts ) ? null : $posts[0];
47
+ }
48
+
49
+ /**
50
+ * @return array
51
+ */
52
+ public function get_related_post_stati() {
53
+ return $this->get_setting( Settings\Column\PostStatus::NAME )->get_value();
54
+ }
55
+
56
+ protected function register_settings() {
57
+ $this->add_setting( new Settings\Column\PostType( $this ) );
58
+ $this->add_setting( new Settings\Column\PostStatus( $this ) );
59
+ $this->add_setting( new Settings\Column\Post( $this ) );
60
+ }
61
+
62
+ }
classes/Column/User/PostCount.php CHANGED
@@ -53,12 +53,20 @@ class PostCount extends Column {
53
  'author' => $user_id,
54
  'post_type' => $post_type,
55
  'posts_per_page' => -1,
56
- 'post_status' => [ 'publish', 'private' ],
57
  ] );
58
  }
59
 
 
 
 
 
 
 
 
60
  protected function register_settings() {
61
  $this->add_setting( new Settings\Column\PostType( $this, true ) );
 
62
  }
63
 
64
  }
53
  'author' => $user_id,
54
  'post_type' => $post_type,
55
  'posts_per_page' => -1,
56
+ 'post_status' => $this->get_selected_post_status(),
57
  ] );
58
  }
59
 
60
+ /**
61
+ * @return array
62
+ */
63
+ public function get_selected_post_status() {
64
+ return $this->get_setting( 'post_status' )->get_value();
65
+ }
66
+
67
  protected function register_settings() {
68
  $this->add_setting( new Settings\Column\PostType( $this, true ) );
69
+ $this->add_setting( new Settings\Column\PostStatus( $this ) );
70
  }
71
 
72
  }
classes/ColumnRepository.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC;
4
+
5
+ use AC\ColumnRepository\Filter;
6
+ use AC\ColumnRepository\Sort;
7
+
8
+ class ColumnRepository {
9
+
10
+ const ARG_FILTER = 'filter';
11
+ const ARG_SORT = 'sort';
12
+
13
+ /**
14
+ * @var ListScreen
15
+ */
16
+ private $list_screen;
17
+
18
+ /**
19
+ * @param ListScreen $list_screen
20
+ */
21
+ public function __construct( ListScreen $list_screen ) {
22
+ $this->list_screen = $list_screen;
23
+ }
24
+
25
+ /**
26
+ * @param string $column_name
27
+ *
28
+ * @return Column|null
29
+ */
30
+ public function find( $column_name ) {
31
+ $column = $this->list_screen->get_column_by_name( $column_name );
32
+
33
+ return $column ?: null;
34
+ }
35
+
36
+ /**
37
+ * @param array $args
38
+ *
39
+ * @return Column[]
40
+ */
41
+ public function find_all( array $args = [] ) {
42
+ $args = array_merge( [
43
+ self::ARG_FILTER => null,
44
+ self::ARG_SORT => null,
45
+ ], $args );
46
+
47
+ $columns = $this->list_screen->get_columns();
48
+
49
+ if ( $args[ self::ARG_FILTER ] instanceof Filter ) {
50
+ $columns = $args[ self::ARG_FILTER ]->filter( $columns );
51
+ }
52
+
53
+ if ( $args[ self::ARG_SORT ] instanceof Sort ) {
54
+ $columns = $args[ self::ARG_SORT ]->sort( $columns );
55
+ }
56
+
57
+ return $columns;
58
+ }
59
+
60
+ }
classes/ColumnRepository/Filter.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ColumnRepository;
4
+
5
+ interface Filter {
6
+
7
+ public function filter( $columns );
8
+
9
+ }
classes/ColumnRepository/Sort.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ColumnRepository;
4
+
5
+ interface Sort {
6
+
7
+ public function sort( $columns );
8
+
9
+ }
classes/Controller/AjaxColumnValue.php CHANGED
@@ -36,7 +36,7 @@ class AjaxColumnValue implements Registrable {
36
  check_ajax_referer( 'ac-ajax' );
37
 
38
  // Get ID of entry to edit
39
- $id = intval( filter_input( INPUT_POST, 'pk' ) );
40
 
41
  if ( ! $id ) {
42
  wp_die( __( 'Invalid item ID.', 'codepress-admin-columns' ), null, 400 );
36
  check_ajax_referer( 'ac-ajax' );
37
 
38
  // Get ID of entry to edit
39
+ $id = (int) filter_input( INPUT_POST, 'pk' );
40
 
41
  if ( ! $id ) {
42
  wp_die( __( 'Invalid item ID.', 'codepress-admin-columns' ), null, 400 );
classes/Controller/ColumnRequest.php CHANGED
@@ -14,9 +14,7 @@ abstract class ColumnRequest {
14
  abstract protected function get_column( AC\Request $request, AC\ListScreen $list_screen );
15
 
16
  public function request( AC\Request $request ) {
17
- parse_str( $request->get( 'data' ), $formdata );
18
-
19
- $list_screen = AC\ListScreenTypes::instance()->get_list_screen_by_key( $formdata['list_screen'] );
20
 
21
  if ( ! $list_screen ) {
22
  wp_die();
@@ -31,7 +29,7 @@ abstract class ColumnRequest {
31
  ] );
32
  }
33
 
34
- $current_original_columns = (array) $request->get( 'current_original_columns', [] );
35
 
36
  // Not cloneable message
37
  if ( in_array( $column->get_type(), $current_original_columns ) ) {
14
  abstract protected function get_column( AC\Request $request, AC\ListScreen $list_screen );
15
 
16
  public function request( AC\Request $request ) {
17
+ $list_screen = AC\ListScreenTypes::instance()->get_list_screen_by_key( $request->get( 'list_screen' ) );
 
 
18
 
19
  if ( ! $list_screen ) {
20
  wp_die();
29
  ] );
30
  }
31
 
32
+ $current_original_columns = (array) json_decode( $request->get( 'current_original_columns', '' ), true );
33
 
34
  // Not cloneable message
35
  if ( in_array( $column->get_type(), $current_original_columns ) ) {
classes/Controller/ColumnRequest/Refresh.php CHANGED
@@ -7,17 +7,8 @@ use AC;
7
  class Refresh extends AC\Controller\ColumnRequest {
8
 
9
  protected function get_column( AC\Request $request, AC\ListScreen $list_screen ) {
10
- parse_str( $request->get( 'data' ), $formdata );
11
- $options = $formdata['columns'];
12
- $name = filter_input( INPUT_POST, 'column_name' );
13
-
14
- if ( empty( $options[ $name ] ) ) {
15
- wp_die();
16
- }
17
-
18
- $settings = $options[ $name ];
19
-
20
- $settings['name'] = $name;
21
 
22
  return $list_screen->create_column( $settings );
23
  }
7
  class Refresh extends AC\Controller\ColumnRequest {
8
 
9
  protected function get_column( AC\Request $request, AC\ListScreen $list_screen ) {
10
+ $settings = json_decode( $request->get( 'data' ), true );
11
+ $settings['name'] = $request->get( 'column_name' );
 
 
 
 
 
 
 
 
 
12
 
13
  return $list_screen->create_column( $settings );
14
  }
classes/Controller/ListScreen/Sanitize/FormData.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Controller\ListScreen\Sanitize;
4
+
5
+ use AC\Sanitize;
6
+
7
+ class FormData implements Sanitize {
8
+
9
+ /**
10
+ * @param array $data
11
+ *
12
+ * @return array
13
+ */
14
+ public function sanitize( $data ) {
15
+ if ( isset( $data[ Title::FIELD ] ) ) {
16
+ $data[ Title::FIELD ] = ( new Title() )->sanitize( $data[ Title::FIELD ] );
17
+ }
18
+
19
+ return $data;
20
+ }
21
+
22
+ }
classes/Controller/ListScreen/Sanitize/Title.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Controller\ListScreen\Sanitize;
4
+
5
+ use AC\Sanitize;
6
+
7
+ class Title implements Sanitize {
8
+
9
+ const FIELD = 'title';
10
+
11
+ public function sanitize( $data ) {
12
+ return wp_kses( $data, true );
13
+ }
14
+
15
+ }
classes/Controller/ListScreen/Save.php CHANGED
@@ -14,55 +14,55 @@ class Save {
14
  */
15
  private $storage;
16
 
 
 
 
 
 
17
  public function __construct( Storage $storage ) {
18
  $this->storage = $storage;
 
19
  }
20
 
21
  public function request( Request $request ) {
22
- parse_str( $request->get( 'data' ), $formdata );
23
 
24
- if ( ! isset( $formdata['columns'] ) ) {
25
  wp_send_json_error( [ 'message' => __( 'You need at least one column', 'codepress-admin-columns' ) ] );
26
  }
27
 
28
- if ( ! ListScreenId::is_valid_id( $formdata['list_screen_id'] ) ) {
29
- wp_send_json_error( [ 'message' => 'Invalid list Id' ] );
30
- }
31
-
32
- $list_screen = ListScreenTypes::instance()->get_list_screen_by_key( $formdata['list_screen'] );
33
 
34
  if ( ! $list_screen ) {
35
  wp_send_json_error( [ 'message' => 'List screen not found' ] );
36
  }
37
 
38
- $column_data = [];
 
 
39
 
40
- foreach ( $this->maybe_encode_urls( $formdata['columns'] ) as $column_name => $settings ) {
41
- if ( 0 === strpos( $column_name, '_new_column_' ) ) {
42
- $column_data[ uniqid() ] = $settings;
43
- } else {
44
- $column_data[ $column_name ] = $settings;
45
- }
46
- }
47
 
48
- $list_screen->set_title( ! empty( $formdata['title'] ) ? $formdata['title'] : $list_screen->get_label() )
49
- ->set_settings( $column_data )
50
- ->set_layout_id( $formdata['list_screen_id'] )
51
- ->set_preferences( ! empty( $formdata['settings'] ) ? $formdata['settings'] : [] );
52
 
53
  $this->storage->save( $list_screen );
54
 
55
  do_action( 'ac/columns_stored', $list_screen );
56
 
57
- wp_send_json_success(
58
- sprintf(
59
- '%s %s',
60
- sprintf(
61
- __( 'Settings for %s updated successfully.', 'codepress-admin-columns' ),
62
- sprintf( '<strong>%s</strong>', esc_html( $list_screen->get_title() ) )
 
 
63
  ),
64
- ac_helper()->html->link( $list_screen->get_screen_link(), sprintf( __( 'View %s screen', 'codepress-admin-columns' ), $list_screen->get_label() ) )
65
- )
66
  );
67
  }
68
 
14
  */
15
  private $storage;
16
 
17
+ /**
18
+ * @var Sanitize\FormData
19
+ */
20
+ private $sanitizer;
21
+
22
  public function __construct( Storage $storage ) {
23
  $this->storage = $storage;
24
+ $this->sanitizer = new Sanitize\FormData();
25
  }
26
 
27
  public function request( Request $request ) {
28
+ $data = json_decode( $request->get( 'data' ), true );
29
 
30
+ if ( ! isset( $data['columns'] ) ) {
31
  wp_send_json_error( [ 'message' => __( 'You need at least one column', 'codepress-admin-columns' ) ] );
32
  }
33
 
34
+ $list_screen = ListScreenTypes::instance()->get_list_screen_by_key( $data['list_screen'] );
 
 
 
 
35
 
36
  if ( ! $list_screen ) {
37
  wp_send_json_error( [ 'message' => 'List screen not found' ] );
38
  }
39
 
40
+ $list_id = isset( $data['list_screen_id'] ) && ListScreenId::is_valid_id( $data['list_screen_id'] )
41
+ ? new ListScreenId( $data['list_screen_id'] )
42
+ : ListScreenId::generate();
43
 
44
+ $data = $this->sanitizer->sanitize( $data );
 
 
 
 
 
 
45
 
46
+ $list_screen->set_title( ! empty( $data['title'] ) ? $data['title'] : $list_screen->get_label() )
47
+ ->set_settings( isset( $data['columns'] ) ? $this->maybe_encode_urls( $data['columns'] ) : [] )
48
+ ->set_layout_id( $list_id->get_id() )
49
+ ->set_preferences( ! empty( $data['settings'] ) ? $data['settings'] : [] );
50
 
51
  $this->storage->save( $list_screen );
52
 
53
  do_action( 'ac/columns_stored', $list_screen );
54
 
55
+ wp_send_json_success( [
56
+ 'message' => sprintf(
57
+ '%s %s',
58
+ sprintf(
59
+ __( 'Settings for %s updated successfully.', 'codepress-admin-columns' ),
60
+ sprintf( '<strong>%s</strong>', esc_html( $list_screen->get_title() ) )
61
+ ),
62
+ ac_helper()->html->link( $list_screen->get_screen_link(), sprintf( __( 'View %s screen', 'codepress-admin-columns' ), $list_screen->get_label() ) )
63
  ),
64
+ 'list_id' => $list_id->get_id(),
65
+ ]
66
  );
67
  }
68
 
classes/Controller/ListScreenRequest.php DELETED
@@ -1,169 +0,0 @@
1
- <?php
2
-
3
- namespace AC\Controller;
4
-
5
- use AC\ListScreen;
6
- use AC\ListScreenRepository\Storage;
7
- use AC\ListScreenTypes;
8
- use AC\Preferences;
9
- use AC\Request;
10
- use AC\Type\ListScreenId;
11
-
12
- class ListScreenRequest {
13
-
14
- /** @var Request */
15
- private $request;
16
-
17
- /** @var Storage */
18
- private $storage;
19
-
20
- /** @var Preferences */
21
- private $preference;
22
-
23
- /** @var bool */
24
- private $is_network;
25
-
26
- public function __construct( Request $request, Storage $storage, Preferences $preference, $is_network = false ) {
27
- $this->request = $request;
28
- $this->storage = $storage;
29
- $this->preference = $preference;
30
- $this->is_network = (bool) $is_network;
31
- }
32
-
33
- /**
34
- * @param string $list_key
35
- *
36
- * @return bool
37
- */
38
- private function exists_list_screen( $list_key ) {
39
- return null !== ListScreenTypes::instance()->get_list_screen_by_key( $list_key, $this->is_network );
40
- }
41
-
42
- /**
43
- * @param string $list_key
44
- *
45
- * @return ListScreen|null
46
- */
47
- private function get_first_available_list_screen( $list_key ) {
48
- $list_screens = $this->storage->find_all( [ 'key' => $list_key ] );
49
-
50
- if ( $list_screens->count() < 1 ) {
51
- return null;
52
- }
53
-
54
- return $list_screens->get_first();
55
- }
56
-
57
- /**
58
- * @return ListScreen
59
- */
60
- public function get_list_screen() {
61
-
62
- // Requested list ID
63
- $list_id = ListScreenId::is_valid_id( filter_input( INPUT_GET, 'layout_id' ) )
64
- ? new ListScreenId( filter_input( INPUT_GET, 'layout_id' ) )
65
- : null;
66
-
67
- if ( $list_id && $this->storage->exists( $list_id ) ) {
68
- $list_screen = $this->storage->find( $list_id );
69
-
70
- if ( $list_screen && $this->exists_list_screen( $list_screen->get_key() ) ) {
71
- $this->preference->set( 'list_id', $list_screen->get_layout_id() );
72
- $this->preference->set( 'list_key', $list_screen->get_key() );
73
-
74
- return $list_screen;
75
- }
76
- }
77
-
78
- // Requested list type
79
- $list_key = filter_input( INPUT_GET, 'list_screen' );
80
-
81
- if ( $list_key && $this->exists_list_screen( $list_key ) ) {
82
- $this->preference->set( 'list_key', $list_key );
83
-
84
- $list_screen = $this->get_first_available_list_screen( $list_key );
85
-
86
- if ( $list_screen ) {
87
- $this->preference->set( 'list_id', $list_screen->get_layout_id() );
88
-
89
- return $list_screen;
90
- }
91
-
92
- // Initialize new
93
- return $this->create_list_screen( $list_key );
94
- }
95
-
96
- // Last visited ID
97
- $list_id_pref = $this->preference->get( 'list_id' );
98
- $list_id = ListScreenId::is_valid_id( $list_id_pref )
99
- ? new ListScreenId( $list_id_pref )
100
- : null;
101
-
102
- if ( $list_id && $this->storage->exists( $list_id ) ) {
103
- $list_screen = $this->storage->find( $list_id );
104
-
105
- if ( $list_screen && $this->exists_list_screen( $list_screen->get_key() ) ) {
106
- return $list_screen;
107
- }
108
- }
109
-
110
- // Last visited Key
111
- $list_key = $this->preference->get( 'list_key' );
112
-
113
- // Load first available ID
114
- if ( $list_key && $this->exists_list_screen( $list_key ) ) {
115
- $this->preference->set( 'list_key', $list_key );
116
-
117
- $list_screen = $this->get_first_available_list_screen( $list_key );
118
-
119
- if ( $list_screen ) {
120
- $this->preference->set( 'list_id', $list_screen->get_layout_id() );
121
-
122
- return $list_screen;
123
- }
124
-
125
- // Initialize new
126
- return $this->create_list_screen( $list_key );
127
- }
128
-
129
- // First visit to settings page
130
- $list_key = $this->get_first_available_list_screen_key();
131
-
132
- $this->preference->set( 'list_key', $list_key );
133
-
134
- $list_screen = $this->get_first_available_list_screen( $list_key );
135
-
136
- if ( $list_screen ) {
137
- $this->preference->set( 'list_id', $list_screen->get_layout_id() );
138
-
139
- return $list_screen;
140
- }
141
-
142
- // Initialize new
143
- return $this->create_list_screen( $list_key );
144
- }
145
-
146
- private function create_list_screen( $key ) {
147
- $list_screen = ListScreenTypes::instance()->get_list_screen_by_key( $key );
148
-
149
- if ( ! $list_screen ) {
150
- return null;
151
- }
152
-
153
- return $list_screen->set_layout_id( ListScreenId::generate()->get_id() );
154
- }
155
-
156
- /**
157
- * @return string
158
- */
159
- private function get_first_available_list_screen_key() {
160
- if ( $this->is_network ) {
161
- $list_screens = ListScreenTypes::instance()->get_list_screens( [ 'network_only' => true ] );
162
- } else {
163
- $list_screens = ListScreenTypes::instance()->get_list_screens( [ 'site_only' => true ] );
164
- }
165
-
166
- return current( $list_screens )->get_key();
167
- }
168
-
169
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/Controller/Middleware/ListScreenAdmin.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Controller\Middleware;
4
+
5
+ use AC\Admin\Preference;
6
+ use AC\ListScreenRepository\Storage;
7
+ use AC\ListScreenTypes;
8
+ use AC\Middleware;
9
+ use AC\Request;
10
+ use AC\Type\ListScreenId;
11
+
12
+ class ListScreenAdmin implements Middleware {
13
+
14
+ const PARAM_LIST_ID = 'list_id';
15
+ const PARAM_LIST_KEY = 'list_key';
16
+
17
+ /** @var Storage */
18
+ private $storage;
19
+
20
+ /** @var Preference\ListScreen */
21
+ private $preference;
22
+
23
+ /** @var bool */
24
+ private $is_network;
25
+
26
+ public function __construct( Storage $storage, Preference\ListScreen $preference, $is_network = false ) {
27
+ $this->storage = $storage;
28
+ $this->preference = $preference;
29
+ $this->is_network = (bool) $is_network;
30
+ }
31
+
32
+ public function handle( Request $request ) {
33
+ $list_key = $request->get( 'list_screen' );
34
+
35
+ if ( ! $list_key ) {
36
+ $list_key = $this->preference->get_last_visited_list_key();
37
+ }
38
+
39
+ if ( ! $list_key || ! ListScreenTypes::instance()->get_list_screen_by_key( $list_key, $this->is_network ) ) {
40
+ $args = $this->is_network
41
+ ? [ 'network_only' => true ]
42
+ : [ 'site_only' => true ];
43
+
44
+ $list_key = current( ListScreenTypes::instance()->get_list_screens( $args ) )->get_key();
45
+ }
46
+
47
+ if ( ! $list_key ) {
48
+ return;
49
+ }
50
+
51
+ $list_id = $request->get( 'layout_id' );
52
+
53
+ if ( ! ListScreenId::is_valid_id( $list_id ) ) {
54
+ $list_id = $this->preference->get_list_id( $list_key );
55
+ }
56
+
57
+ if ( ! ListScreenId::is_valid_id( $list_id ) || ! $this->storage->exists( new ListScreenId( $list_id ) ) ) {
58
+
59
+ $list_screens = $this->storage->find_all( [
60
+ Storage::KEY => $list_key,
61
+ ] );
62
+
63
+ $list_id = $list_screens->count() > 0
64
+ ? $list_screens->get_first()->get_id()->get_id()
65
+ : null;
66
+ }
67
+
68
+ $request->get_parameters()->merge( [
69
+ self::PARAM_LIST_ID => $list_id,
70
+ self::PARAM_LIST_KEY => $list_key,
71
+ ] );
72
+ }
73
+
74
+ }
classes/Controller/Middleware/ListScreenTable.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Controller\Middleware;
4
+
5
+ use AC\ListScreenRepository\Filter;
6
+ use AC\ListScreenRepository\Storage;
7
+ use AC\Middleware;
8
+ use AC\PermissionChecker;
9
+ use AC\Request;
10
+ use AC\Screen;
11
+ use AC\Table;
12
+ use AC\Type\ListScreenId;
13
+ use WP_Screen;
14
+
15
+ class ListScreenTable implements Middleware {
16
+
17
+ const PARAM_LIST_ID = 'list_id';
18
+ const PARAM_LIST_KEY = 'list_key';
19
+
20
+ /**
21
+ * @var Storage
22
+ */
23
+ private $storage;
24
+
25
+ /**
26
+ * @var WP_Screen
27
+ */
28
+ private $wp_screen;
29
+
30
+ /**
31
+ * @var Table\Preference
32
+ */
33
+ private $preference;
34
+
35
+ public function __construct( Storage $storage, WP_Screen $wp_screen, Table\Preference $preference ) {
36
+ $this->storage = $storage;
37
+ $this->wp_screen = $wp_screen;
38
+ $this->preference = $preference;
39
+ }
40
+
41
+ /**
42
+ * @return string|null
43
+ */
44
+ private function get_list_key_from_screen() {
45
+ return ( new Screen() )->set_screen( $this->wp_screen )->get_list_screen();
46
+ }
47
+
48
+ /**
49
+ * Set the list_key and layout
50
+ *
51
+ * @param Request $request
52
+ */
53
+ public function handle( Request $request ) {
54
+ $list_key = $request->get( self::PARAM_LIST_KEY );
55
+
56
+ if ( ! $list_key ) {
57
+ $list_key = $this->get_list_key_from_screen();
58
+ }
59
+
60
+ if ( ! $list_key ) {
61
+ return;
62
+ }
63
+
64
+ $list_id = $request->get( 'layout' );
65
+
66
+ if ( ! ListScreenId::is_valid_id( $list_id ) ) {
67
+ $list_id = $this->preference->get( $list_key );
68
+ }
69
+
70
+ if ( ! ListScreenId::is_valid_id( $list_id ) || ! $this->storage->exists( new ListScreenId( $list_id ) ) ) {
71
+
72
+ $list_screens = $this->storage->find_all( [
73
+ Storage::KEY => $list_key,
74
+ Storage::ARG_FILTER => [
75
+ new Filter\Permission( new PermissionChecker() ),
76
+ ],
77
+ ] );
78
+
79
+ $list_id = $list_screens->count() > 0
80
+ ? $list_screens->get_first()->get_id()->get_id()
81
+ : null;
82
+ }
83
+
84
+ $request->get_parameters()->merge( [
85
+ self::PARAM_LIST_KEY => $list_key,
86
+ self::PARAM_LIST_ID => $list_id,
87
+ ] );
88
+ }
89
+
90
+ }
classes/Controller/RestoreSettingsRequest.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace AC\Controller;
4
 
 
5
  use AC\ListScreenRepository\Storage\ListScreenRepository;
6
  use AC\Message\Notice;
7
  use AC\Registrable;
@@ -22,6 +23,10 @@ class RestoreSettingsRequest implements Registrable {
22
  }
23
 
24
  public function handle_request() {
 
 
 
 
25
  if ( 'restore' !== filter_input( INPUT_POST, 'ac_action' ) ) {
26
  return;
27
  }
2
 
3
  namespace AC\Controller;
4
 
5
+ use AC\Capabilities;
6
  use AC\ListScreenRepository\Storage\ListScreenRepository;
7
  use AC\Message\Notice;
8
  use AC\Registrable;
23
  }
24
 
25
  public function handle_request() {
26
+ if ( ! current_user_can( Capabilities::MANAGE ) ) {
27
+ return;
28
+ }
29
+
30
  if ( 'restore' !== filter_input( INPUT_POST, 'ac_action' ) ) {
31
  return;
32
  }
classes/Controller/TableListScreenSetter.php ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Controller;
4
+
5
+ use AC\Asset\Location\Absolute;
6
+ use AC\ListScreenRepository\Storage;
7
+ use AC\ListScreenTypes;
8
+ use AC\PermissionChecker;
9
+ use AC\Registrable;
10
+ use AC\Request;
11
+ use AC\Table;
12
+ use AC\Type\ListScreenId;
13
+ use WP_Screen;
14
+
15
+ class TableListScreenSetter implements Registrable {
16
+
17
+ /**
18
+ * @var Storage
19
+ */
20
+ private $storage;
21
+
22
+ /**
23
+ * @var PermissionChecker
24
+ */
25
+ private $permission_checker;
26
+
27
+ /**
28
+ * @var Absolute
29
+ */
30
+ private $location;
31
+
32
+ /**
33
+ * @var Table\Preference
34
+ */
35
+ private $preference;
36
+
37
+ public function __construct( Storage $storage, PermissionChecker $permission_checker, Absolute $location, Table\Preference $preference ) {
38
+ $this->storage = $storage;
39
+ $this->permission_checker = $permission_checker;
40
+ $this->location = $location;
41
+ $this->preference = $preference;
42
+ }
43
+
44
+ public function register() {
45
+ add_action( 'current_screen', [ $this, 'handle' ] );
46
+ }
47
+
48
+ public function handle( WP_Screen $wp_screen ) {
49
+ $request = new Request();
50
+ $request->add_middleware( new Middleware\ListScreenTable( $this->storage, $wp_screen, $this->preference ) );
51
+
52
+ $list_key = $request->get( 'list_key' );
53
+
54
+ if ( ! $list_key ) {
55
+ return;
56
+ }
57
+
58
+ $list_id = $request->get( 'list_id' );
59
+
60
+ $list_screen = ListScreenId::is_valid_id( $list_id )
61
+ ? $this->storage->find( new ListScreenId( $list_id ) )
62
+ : ListScreenTypes::instance()->get_list_screen_by_key( $list_key );
63
+
64
+ if ( ! $list_screen || ! $this->permission_checker->is_valid( $list_screen ) ) {
65
+ return;
66
+ }
67
+
68
+ if ( $list_screen->has_id() ) {
69
+ $this->preference->set( $list_screen->get_key(), $list_screen->get_id()->get_id() );
70
+ }
71
+
72
+ $table_screen = new Table\Screen( $this->location, $list_screen );
73
+ $table_screen->register();
74
+
75
+ do_action( 'ac/table', $table_screen );
76
+ }
77
+
78
+ }
classes/Deprecated/Hooks.php CHANGED
@@ -10,7 +10,8 @@ use AC\Transient;
10
  class Hooks {
11
 
12
  /**
13
- * @parsam bool $force_update
 
14
  * @return int
15
  */
16
  public function get_count( $force_update = false ) {
10
  class Hooks {
11
 
12
  /**
13
+ * @param bool $force_update
14
+ *
15
  * @return int
16
  */
17
  public function get_count( $force_update = false ) {
classes/Helper/Html.php CHANGED
@@ -267,7 +267,7 @@ class Html {
267
  * @return bool
268
  */
269
  private function contains_html( $string ) {
270
- return $string && is_string( $string ) ? $string !== strip_tags( $string ) : false;
271
  }
272
 
273
  /**
267
  * @return bool
268
  */
269
  private function contains_html( $string ) {
270
+ return $string && is_string( $string ) && $string !== strip_tags( $string );
271
  }
272
 
273
  /**
classes/Helper/Media.php CHANGED
@@ -8,7 +8,7 @@ class Media {
8
  * @param string $image_url
9
  * @param bool $check_cropped_versions Checks for cropped version of the image. e.g. file-name-320x60.jpg
10
  *
11
- * @return bool
12
  */
13
  public function get_attachment_id_by_url( $image_url, $check_cropped_versions = false ) {
14
  if ( ! $image_url ) {
@@ -86,7 +86,7 @@ class Media {
86
 
87
  }
88
 
89
- return $image_id;
90
  }
91
 
92
  }
8
  * @param string $image_url
9
  * @param bool $check_cropped_versions Checks for cropped version of the image. e.g. file-name-320x60.jpg
10
  *
11
+ * @return false|int
12
  */
13
  public function get_attachment_id_by_url( $image_url, $check_cropped_versions = false ) {
14
  if ( ! $image_url ) {
86
 
87
  }
88
 
89
+ return (int) $image_id;
90
  }
91
 
92
  }
classes/Helper/Select/Options/Paginated.php CHANGED
@@ -23,23 +23,14 @@ class Paginated extends Select\Options
23
  parent::__construct( $options->get_copy() );
24
  }
25
 
26
- /**
27
- * @inheritDoc
28
- */
29
  public function get_total_pages() {
30
  return $this->paginated->get_total_pages();
31
  }
32
 
33
- /**
34
- * @inheritDoc
35
- */
36
  public function get_page() {
37
  return $this->paginated->get_page();
38
  }
39
 
40
- /**
41
- * @inheritDoc
42
- */
43
  public function is_last_page() {
44
  return $this->paginated->is_last_page();
45
  }
23
  parent::__construct( $options->get_copy() );
24
  }
25
 
 
 
 
26
  public function get_total_pages() {
27
  return $this->paginated->get_total_pages();
28
  }
29
 
 
 
 
30
  public function get_page() {
31
  return $this->paginated->get_page();
32
  }
33
 
 
 
 
34
  public function is_last_page() {
35
  return $this->paginated->is_last_page();
36
  }
classes/Helper/Select/Response.php CHANGED
@@ -53,9 +53,6 @@ final class Response {
53
  return $results;
54
  }
55
 
56
- /**
57
- * @inheritDoc
58
- */
59
  public function __invoke() {
60
  return [
61
  'results' => $this->parse_options( $this->options->get_copy() ),
53
  return $results;
54
  }
55
 
 
 
 
56
  public function __invoke() {
57
  return [
58
  'results' => $this->parse_options( $this->options->get_copy() ),
classes/Integration/GravityForms.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Integration;
4
+
5
+ use AC\Integration;
6
+ use AC\ListScreen;
7
+ use AC\Screen;
8
+ use AC\Type\Url\Site;
9
+ use ACA;
10
+
11
+ final class GravityForms extends Integration {
12
+
13
+ public function __construct() {
14
+ parent::__construct(
15
+ 'ac-addon-gravityforms/ac-addon-gravityforms.php',
16
+ 'Gravity Forms',
17
+ 'assets/images/addons/gravityforms.svg',
18
+ __( 'Take your form submission management to the next level!', 'codepress-admin-columns' ),
19
+ null,
20
+ new Site( Site::PAGE_ADDON_GRAVITYFORMS )
21
+ );
22
+ }
23
+
24
+ public function is_plugin_active() {
25
+ return class_exists( 'GFCommon', false );
26
+ }
27
+
28
+ public function show_notice( Screen $screen ) {
29
+ return 'forms_page_gf_entries' === $screen->get_id();
30
+ }
31
+
32
+ public function show_placeholder( ListScreen $list_screen ) {
33
+ return $list_screen instanceof ACA\GravityForms\ListScreen\Entry;
34
+ }
35
+
36
+ }
classes/ListScreen.php CHANGED
@@ -87,11 +87,6 @@ abstract class ListScreen {
87
  */
88
  private $column_types;
89
 
90
- /**
91
- * @var array [ Column name => Label ]
92
- */
93
- private $original_columns;
94
-
95
  /**
96
  * @var string Layout ID
97
  */
@@ -437,9 +432,7 @@ abstract class ListScreen {
437
  * @return DateTime
438
  */
439
  public function get_updated() {
440
- return $this->updated
441
- ? $this->updated
442
- : new DateTime();
443
  }
444
 
445
  /**
@@ -595,13 +588,6 @@ abstract class ListScreen {
595
  return ( new DefaultColumnsRepository() )->get( $this->get_key() );
596
  }
597
 
598
- /**
599
- * @param array $columns
600
- */
601
- public function set_original_columns( $columns ) {
602
- $this->original_columns = (array) $columns;
603
- }
604
-
605
  /**
606
  * Available column types
607
  */
@@ -943,4 +929,15 @@ abstract class ListScreen {
943
  _deprecated_function( __METHOD__, '4.0' );
944
  }
945
 
 
 
 
 
 
 
 
 
 
 
 
946
  }
87
  */
88
  private $column_types;
89
 
 
 
 
 
 
90
  /**
91
  * @var string Layout ID
92
  */
432
  * @return DateTime
433
  */
434
  public function get_updated() {
435
+ return $this->updated ?: new DateTime();
 
 
436
  }
437
 
438
  /**
588
  return ( new DefaultColumnsRepository() )->get( $this->get_key() );
589
  }
590
 
 
 
 
 
 
 
 
591
  /**
592
  * Available column types
593
  */
929
  _deprecated_function( __METHOD__, '4.0' );
930
  }
931
 
932
+ /**
933
+ * @param array $columns
934
+ *
935
+ * @deprecated 4.3
936
+ */
937
+ public function set_original_columns( $columns ) {
938
+ _deprecated_function( __METHOD__, '4.3' );
939
+
940
+ $this->original_columns = (array) $columns;
941
+ }
942
+
943
  }
classes/ListScreen/Comment.php CHANGED
@@ -3,13 +3,11 @@
3
  namespace AC\ListScreen;
4
 
5
  use AC;
 
6
  use ReflectionException;
7
  use WP_Comment;
8
  use WP_Comments_List_Table;
9
 
10
- /**
11
- * @since 2.0
12
- */
13
  class Comment extends AC\ListScreenWP {
14
 
15
  public function __construct() {
@@ -35,16 +33,8 @@ class Comment extends AC\ListScreenWP {
35
  /**
36
  * @return WP_Comments_List_Table
37
  */
38
- public function get_list_table() {
39
- require_once( ABSPATH . 'wp-admin/includes/class-wp-comments-list-table.php' );
40
-
41
- $table = new WP_Comments_List_Table( [ 'screen' => $this->get_screen_id() ] );
42
-
43
- // Since 4.4 the `floated_admin_avatar` filter is added in the constructor of the `\WP_Comments_List_Table` class.
44
- // Here we remove the filter from the constructor.
45
- remove_filter( 'comment_author', [ $table, 'floated_admin_avatar' ], 10 );
46
-
47
- return $table;
48
  }
49
 
50
  public function set_manage_value_callback() {
3
  namespace AC\ListScreen;
4
 
5
  use AC;
6
+ use AC\WpListTableFactory;
7
  use ReflectionException;
8
  use WP_Comment;
9
  use WP_Comments_List_Table;
10
 
 
 
 
11
  class Comment extends AC\ListScreenWP {
12
 
13
  public function __construct() {
33
  /**
34
  * @return WP_Comments_List_Table
35
  */
36
+ protected function get_list_table() {
37
+ return ( new WpListTableFactory() )->create_comment_table( $this->get_screen_id() );
 
 
 
 
 
 
 
 
38
  }
39
 
40
  public function set_manage_value_callback() {
classes/ListScreen/Media.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace AC\ListScreen;
4
 
5
  use AC;
 
6
  use ReflectionException;
7
  use WP_Media_List_Table;
8
 
@@ -25,10 +26,8 @@ class Media extends AC\ListScreenPost {
25
  /**
26
  * @return WP_Media_List_Table
27
  */
28
- public function get_list_table() {
29
- require_once( ABSPATH . 'wp-admin/includes/class-wp-media-list-table.php' );
30
-
31
- return new WP_Media_List_Table( [ 'screen' => $this->get_screen_id() ] );
32
  }
33
 
34
  public function get_screen_link() {
3
  namespace AC\ListScreen;
4
 
5
  use AC;
6
+ use AC\WpListTableFactory;
7
  use ReflectionException;
8
  use WP_Media_List_Table;
9
 
26
  /**
27
  * @return WP_Media_List_Table
28
  */
29
+ protected function get_list_table() {
30
+ return ( new WpListTableFactory() )->create_media_table( $this->get_screen_id() );
 
 
31
  }
32
 
33
  public function get_screen_link() {
classes/ListScreen/Post.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace AC\ListScreen;
4
 
5
  use AC\ListScreenPost;
 
6
  use ReflectionException;
7
  use WP_Posts_List_Table;
8
 
@@ -28,9 +29,7 @@ class Post extends ListScreenPost {
28
  * @return WP_Posts_List_Table
29
  */
30
  protected function get_list_table() {
31
- require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
32
-
33
- return new WP_Posts_List_Table( [ 'screen' => $this->get_screen_id() ] );
34
  }
35
 
36
  /**
3
  namespace AC\ListScreen;
4
 
5
  use AC\ListScreenPost;
6
+ use AC\WpListTableFactory;
7
  use ReflectionException;
8
  use WP_Posts_List_Table;
9
 
29
  * @return WP_Posts_List_Table
30
  */
31
  protected function get_list_table() {
32
+ return ( new WpListTableFactory() )->create_post_table( $this->get_screen_id() );
 
 
33
  }
34
 
35
  /**
classes/ListScreen/User.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace AC\ListScreen;
4
 
5
  use AC;
 
6
  use ReflectionException;
7
  use WP_User;
8
  use WP_Users_List_Table;
@@ -27,15 +28,6 @@ class User extends AC\ListScreenWP {
27
  add_filter( 'manage_users_custom_column', [ $this, 'manage_value' ], 100, 3 );
28
  }
29
 
30
- /**
31
- * @return WP_Users_List_Table
32
- */
33
- public function get_list_table() {
34
- require_once( ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php' );
35
-
36
- return new WP_Users_List_Table( [ 'screen' => $this->get_screen_id() ] );
37
- }
38
-
39
  /**
40
  * @param $wp_screen
41
  *
@@ -87,4 +79,11 @@ class User extends AC\ListScreenWP {
87
  $this->register_column_types_from_dir( 'AC\Column\User' );
88
  }
89
 
 
 
 
 
 
 
 
90
  }
3
  namespace AC\ListScreen;
4
 
5
  use AC;
6
+ use AC\WpListTableFactory;
7
  use ReflectionException;
8
  use WP_User;
9
  use WP_Users_List_Table;
28
  add_filter( 'manage_users_custom_column', [ $this, 'manage_value' ], 100, 3 );
29
  }
30
 
 
 
 
 
 
 
 
 
 
31
  /**
32
  * @param $wp_screen
33
  *
79
  $this->register_column_types_from_dir( 'AC\Column\User' );
80
  }
81
 
82
+ /**
83
+ * @return WP_Users_List_Table
84
+ */
85
+ protected function get_list_table() {
86
+ return ( new WpListTableFactory() )->create_user_table( $this->get_screen_id() );
87
+ }
88
+
89
  }
classes/ListScreenRepository/Database.php CHANGED
@@ -210,11 +210,11 @@ final class Database implements ListScreenRepositoryWritable {
210
  ->set_updated( DateTime::createFromFormat( 'Y-m-d H:i:s', $data->date_modified ) );
211
 
212
  if ( $data->settings ) {
213
- $list_screen->set_preferences( unserialize( $data->settings ) );
214
  }
215
 
216
  if ( $data->columns ) {
217
- $list_screen->set_settings( unserialize( $data->columns ) );
218
  }
219
  }
220
 
210
  ->set_updated( DateTime::createFromFormat( 'Y-m-d H:i:s', $data->date_modified ) );
211
 
212
  if ( $data->settings ) {
213
+ $list_screen->set_preferences( unserialize( $data->settings ) ?: [] );
214
  }
215
 
216
  if ( $data->columns ) {
217
+ $list_screen->set_settings( unserialize( $data->columns ) ?: [] );
218
  }
219
  }
220
 
classes/ListScreenRepository/Filter/ExcludeNetwork.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListScreenRepository\Filter;
4
+
5
+ use AC\ListScreenCollection;
6
+ use AC\ListScreenRepository\Filter;
7
+
8
+ class ExcludeNetwork implements Filter {
9
+
10
+ public function filter( ListScreenCollection $list_screens ) {
11
+ foreach ( $list_screens as $list_screen ) {
12
+ if ( in_array( $list_screen->get_key(), Network::KEYS ) ) {
13
+ $list_screens->remove( $list_screen );
14
+ }
15
+ }
16
+
17
+ return $list_screens;
18
+ }
19
+
20
+ }
classes/ListScreenRepository/Filter/Network.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListScreenRepository\Filter;
4
+
5
+ use AC\ListScreenCollection;
6
+ use AC\ListScreenRepository\Filter;
7
+
8
+ class Network implements Filter {
9
+
10
+ const KEYS = [
11
+ 'wp-ms_sites',
12
+ 'wp-ms_users',
13
+ ];
14
+
15
+ public function filter( ListScreenCollection $list_screens ) {
16
+ foreach ( $list_screens as $list_screen ) {
17
+ if ( ! in_array( $list_screen->get_key(), self::KEYS ) ) {
18
+ $list_screens->remove( $list_screen );
19
+ }
20
+ }
21
+
22
+ return $list_screens;
23
+ }
24
+
25
+ }
classes/ListScreenRepository/Filter/Permission.php CHANGED
@@ -19,7 +19,7 @@ class Permission implements Filter {
19
 
20
  public function filter( ListScreenCollection $list_screens ) {
21
  foreach ( clone $list_screens as $list_screen ) {
22
- if ( ! $this->permission_checker->is_valid( wp_get_current_user(), $list_screen ) ) {
23
  $list_screens->remove( $list_screen );
24
  }
25
  }
19
 
20
  public function filter( ListScreenCollection $list_screens ) {
21
  foreach ( clone $list_screens as $list_screen ) {
22
+ if ( ! $this->permission_checker->is_valid( $list_screen ) ) {
23
  $list_screens->remove( $list_screen );
24
  }
25
  }
classes/ListScreenRepository/Rule/EqualGroup.php CHANGED
@@ -18,9 +18,6 @@ class EqualGroup implements Rule {
18
  $this->group = $group;
19
  }
20
 
21
- /**
22
- * @inheritDoc
23
- */
24
  public function match( array $args ) {
25
  if ( ! isset( $args[ self::GROUP ] ) ) {
26
  return false;
18
  $this->group = $group;
19
  }
20
 
 
 
 
21
  public function match( array $args ) {
22
  if ( ! isset( $args[ self::GROUP ] ) ) {
23
  return false;
classes/ListScreenRepository/Rule/EqualId.php CHANGED
@@ -16,9 +16,6 @@ class EqualId implements Rule {
16
  $this->id = $id;
17
  }
18
 
19
- /**
20
- * @inheritDoc
21
- */
22
  public function match( array $args ) {
23
  if ( ! isset( $args[ self::ID ] ) ) {
24
  return false;
16
  $this->id = $id;
17
  }
18
 
 
 
 
19
  public function match( array $args ) {
20
  if ( ! isset( $args[ self::ID ] ) ) {
21
  return false;
classes/ListScreenRepository/Rule/EqualType.php CHANGED
@@ -18,9 +18,6 @@ class EqualType implements Rule {
18
  $this->type = $type;
19
  }
20
 
21
- /**
22
- * @inheritDoc
23
- */
24
  public function match( array $args ) {
25
  if ( ! isset( $args[ self::TYPE ] ) ) {
26
  return false;
18
  $this->type = $type;
19
  }
20
 
 
 
 
21
  public function match( array $args ) {
22
  if ( ! isset( $args[ self::TYPE ] ) ) {
23
  return false;
classes/ListScreenRepository/Storage.php CHANGED
@@ -7,10 +7,14 @@ use AC\ListScreenCollection;
7
  use AC\ListScreenRepository;
8
  use AC\ListScreenRepositoryWritable;
9
  use AC\Type\ListScreenId;
 
10
  use LogicException;
11
 
12
  final class Storage implements ListScreenRepositoryWritable {
13
 
 
 
 
14
  /**
15
  * @var Storage\ListScreenRepository[]
16
  */
@@ -52,8 +56,8 @@ final class Storage implements ListScreenRepositoryWritable {
52
  */
53
  public function find_all( array $args = [] ) {
54
  $args = array_merge( [
55
- 'filter' => null,
56
- 'sort' => null,
57
  ], $args );
58
 
59
  $list_screens = new ListScreenCollection();
@@ -66,12 +70,16 @@ final class Storage implements ListScreenRepositoryWritable {
66
  }
67
  }
68
 
69
- if ( $args['filter'] instanceof Filter ) {
70
- $list_screens = $args['filter']->filter( $list_screens );
 
 
 
 
71
  }
72
 
73
- if ( $args['sort'] instanceof Sort ) {
74
- $list_screens = $args['sort']->sort( $list_screens );
75
  }
76
 
77
  return $list_screens;
7
  use AC\ListScreenRepository;
8
  use AC\ListScreenRepositoryWritable;
9
  use AC\Type\ListScreenId;
10
+ use InvalidArgumentException;
11
  use LogicException;
12
 
13
  final class Storage implements ListScreenRepositoryWritable {
14
 
15
+ const ARG_FILTER = 'filter';
16
+ const ARG_SORT = 'sort';
17
+
18
  /**
19
  * @var Storage\ListScreenRepository[]
20
  */
56
  */
57
  public function find_all( array $args = [] ) {
58
  $args = array_merge( [
59
+ self::ARG_FILTER => [],
60
+ self::ARG_SORT => null,
61
  ], $args );
62
 
63
  $list_screens = new ListScreenCollection();
70
  }
71
  }
72
 
73
+ foreach ( $args[ self::ARG_FILTER ] as $filter ) {
74
+ if ( ! $filter instanceof Filter ) {
75
+ throw new InvalidArgumentException( 'Invalid filter supplied.' );
76
+ }
77
+
78
+ $list_screens = $filter->filter( $list_screens );
79
  }
80
 
81
+ if ( $args[ self::ARG_SORT ] instanceof Sort ) {
82
+ $list_screens = $args[ self::ARG_SORT ]->sort( $list_screens );
83
  }
84
 
85
  return $list_screens;
classes/ListScreenRepository/Storage/ListScreenRepository.php CHANGED
@@ -80,9 +80,6 @@ class ListScreenRepository implements AC\ListScreenRepositoryWritable, SourceAwa
80
  return $this->rules !== null;
81
  }
82
 
83
- /**
84
- * @inheritDoc
85
- */
86
  public function find( ListScreenId $id ) {
87
  $list_screen = $this->repository->find( $id );
88
 
@@ -93,16 +90,10 @@ class ListScreenRepository implements AC\ListScreenRepositoryWritable, SourceAwa
93
  return $list_screen;
94
  }
95
 
96
- /**
97
- * @inheritDoc
98
- */
99
  public function exists( ListScreenId $id ) {
100
  return $this->repository->exists( $id );
101
  }
102
 
103
- /**
104
- * @inheritDoc
105
- */
106
  public function find_all( array $args = [] ) {
107
  $list_screens = $this->repository->find_all( $args );
108
 
@@ -115,23 +106,14 @@ class ListScreenRepository implements AC\ListScreenRepositoryWritable, SourceAwa
115
  return $list_screens;
116
  }
117
 
118
- /**
119
- * @inheritDoc
120
- */
121
  public function save( ListScreen $list_screen ) {
122
  $this->repository->save( $list_screen );
123
  }
124
 
125
- /**
126
- * @inheritDoc
127
- */
128
  public function delete( ListScreen $list_screen ) {
129
  $this->repository->delete( $list_screen );
130
  }
131
 
132
- /**
133
- * @inheritDoc
134
- */
135
  public function get_source( ListScreenId $id ) {
136
  if ( ! $this->has_source( $id ) ) {
137
  throw new Exception\SourceNotAvailableException();
@@ -140,9 +122,6 @@ class ListScreenRepository implements AC\ListScreenRepositoryWritable, SourceAwa
140
  return $this->repository->get_source( $id );
141
  }
142
 
143
- /**
144
- * @inheritDoc
145
- */
146
  public function has_source( ListScreenId $id ) {
147
  return $this->repository instanceof SourceAware && $this->repository->has_source( $id );
148
  }
80
  return $this->rules !== null;
81
  }
82
 
 
 
 
83
  public function find( ListScreenId $id ) {
84
  $list_screen = $this->repository->find( $id );
85
 
90
  return $list_screen;
91
  }
92
 
 
 
 
93
  public function exists( ListScreenId $id ) {
94
  return $this->repository->exists( $id );
95
  }
96
 
 
 
 
97
  public function find_all( array $args = [] ) {
98
  $list_screens = $this->repository->find_all( $args );
99
 
106
  return $list_screens;
107
  }
108
 
 
 
 
109
  public function save( ListScreen $list_screen ) {
110
  $this->repository->save( $list_screen );
111
  }
112
 
 
 
 
113
  public function delete( ListScreen $list_screen ) {
114
  $this->repository->delete( $list_screen );
115
  }
116
 
 
 
 
117
  public function get_source( ListScreenId $id ) {
118
  if ( ! $this->has_source( $id ) ) {
119
  throw new Exception\SourceNotAvailableException();
122
  return $this->repository->get_source( $id );
123
  }
124
 
 
 
 
125
  public function has_source( ListScreenId $id ) {
126
  return $this->repository instanceof SourceAware && $this->repository->has_source( $id );
127
  }
classes/ListScreenRepository/Storage/ListScreenRepositoryFactory.php CHANGED
@@ -3,21 +3,8 @@
3
  namespace AC\ListScreenRepository\Storage;
4
 
5
  use AC\ListScreenRepository\Rules;
6
- use ACP\ListScreenRepository\FileFactory;
7
- use ACP\Storage\Directory;
8
- use ACP\Storage\ListScreen\SerializerTypes;
9
- use LogicException;
10
 
11
- final class ListScreenRepositoryFactory {
12
-
13
- /**
14
- * @var FileFactory
15
- */
16
- private $file_factory;
17
-
18
- public function __construct( FileFactory $file_factory ) {
19
- $this->file_factory = $file_factory;
20
- }
21
 
22
  /**
23
  * @param string $path
@@ -26,17 +13,6 @@ final class ListScreenRepositoryFactory {
26
  *
27
  * @return ListScreenRepository
28
  */
29
- public function create( $path, $writable, Rules $rules = null ) {
30
- if ( ! is_string( $path ) || $path === '' ) {
31
- throw new LogicException( 'Expected string as path.' );
32
- }
33
-
34
- $file = $this->file_factory->create(
35
- SerializerTypes::PHP,
36
- new Directory( $path )
37
- );
38
-
39
- return new ListScreenRepository( $file, $writable, $rules );
40
- }
41
 
42
  }
3
  namespace AC\ListScreenRepository\Storage;
4
 
5
  use AC\ListScreenRepository\Rules;
 
 
 
 
6
 
7
+ interface ListScreenRepositoryFactory {
 
 
 
 
 
 
 
 
 
8
 
9
  /**
10
  * @param string $path
13
  *
14
  * @return ListScreenRepository
15
  */
16
+ public function create( $path, $writable, Rules $rules = null );
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  }
classes/ListScreenTypes.php CHANGED
@@ -4,8 +4,11 @@ namespace AC;
4
 
5
  class ListScreenTypes {
6
 
 
 
 
7
  /** @var ListScreenTypes */
8
- private static $instance = null;
9
 
10
  /** @var ListScreen[] */
11
  private $list_screens = [];
@@ -13,7 +16,7 @@ class ListScreenTypes {
13
  /**
14
  * @return ListScreenTypes
15
  */
16
- static public function instance() {
17
  if ( null === self::$instance ) {
18
  self::$instance = new self();
19
  }
@@ -35,10 +38,10 @@ class ListScreenTypes {
35
  public function get_list_screens( array $args = [] ) {
36
  $list_screens = $this->list_screens;
37
 
38
- if ( isset( $args['network_only'] ) && true === $args['network_only'] ) {
39
  $list_screens = $this->filter_by_network( $list_screens );
40
  }
41
- if ( isset( $args['site_only'] ) && true === $args['site_only'] ) {
42
  $list_screens = $this->filter_by_non_network( $list_screens );
43
  }
44
 
4
 
5
  class ListScreenTypes {
6
 
7
+ const ARG_NETWORK = 'network_only';
8
+ const ARG_SITE = 'site_only';
9
+
10
  /** @var ListScreenTypes */
11
+ private static $instance;
12
 
13
  /** @var ListScreen[] */
14
  private $list_screens = [];
16
  /**
17
  * @return ListScreenTypes
18
  */
19
+ public static function instance() {
20
  if ( null === self::$instance ) {
21
  self::$instance = new self();
22
  }
38
  public function get_list_screens( array $args = [] ) {
39
  $list_screens = $this->list_screens;
40
 
41
+ if ( isset( $args[ self::ARG_NETWORK ] ) && true === $args[ self::ARG_NETWORK ] ) {
42
  $list_screens = $this->filter_by_network( $list_screens );
43
  }
44
+ if ( isset( $args[ self::ARG_SITE ] ) && true === $args[ self::ARG_SITE ] ) {
45
  $list_screens = $this->filter_by_non_network( $list_screens );
46
  }
47
 
classes/ListScreenWP.php CHANGED
@@ -37,6 +37,7 @@ abstract class ListScreenWP extends ListScreen {
37
  */
38
  public function get_single_row( $id ) {
39
  ob_start();
 
40
  $this->get_list_table()->single_row( $this->get_object( $id ) );
41
 
42
  return ob_get_clean();
@@ -47,6 +48,8 @@ abstract class ListScreenWP extends ListScreen {
47
  * @deprecated 3.1
48
  */
49
  public function get_list_table_class() {
 
 
50
  return $this->list_table_class;
51
  }
52
 
37
  */
38
  public function get_single_row( $id ) {
39
  ob_start();
40
+
41
  $this->get_list_table()->single_row( $this->get_object( $id ) );
42
 
43
  return ob_get_clean();
48
  * @deprecated 3.1
49
  */
50
  public function get_list_table_class() {
51
+ _deprecated_function( __METHOD__, '3.1' );
52
+
53
  return $this->list_table_class;
54
  }
55
 
classes/ListTable.php CHANGED
@@ -15,4 +15,9 @@ interface ListTable {
15
  */
16
  public function get_column_value( $column, $id );
17
 
 
 
 
 
 
18
  }
15
  */
16
  public function get_column_value( $column, $id );
17
 
18
+ /**
19
+ * @return int
20
+ */
21
+ public function get_total_items();
22
+
23
  }
classes/ListTable/Comment.php CHANGED
@@ -7,10 +7,7 @@ use WP_Comments_List_Table;
7
 
8
  class Comment implements ListTable {
9
 
10
- /**
11
- * @var WP_Comments_List_Table
12
- */
13
- private $table;
14
 
15
  public function __construct( WP_Comments_List_Table $table ) {
16
  $this->table = $table;
7
 
8
  class Comment implements ListTable {
9
 
10
+ use WpListTableTrait;
 
 
 
11
 
12
  public function __construct( WP_Comments_List_Table $table ) {
13
  $this->table = $table;
classes/ListTable/Media.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListTable;
4
+
5
+ use AC\ListTable;
6
+ use WP_Media_List_Table;
7
+
8
+ class Media implements ListTable {
9
+
10
+ use WpListTableTrait;
11
+
12
+ public function __construct( WP_Media_List_Table $table ) {
13
+ $this->table = $table;
14
+ }
15
+
16
+ public function get_column_value( $column, $id ) {
17
+ ob_start();
18
+
19
+ $method = 'column_' . $column;
20
+
21
+ if ( method_exists( $this->table, $method ) ) {
22
+ call_user_func( [ $this->table, $method ], get_post( $id ) );
23
+ } else {
24
+ $this->table->column_default( get_post( $id ), $column );
25
+ }
26
+
27
+ return ob_get_clean();
28
+ }
29
+
30
+ }
classes/ListTable/NetworkSite.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListTable;
4
+
5
+ use AC\ListTable;
6
+ use WP_MS_Sites_List_Table;
7
+
8
+ class NetworkSite implements ListTable {
9
+
10
+ use WpListTableTrait;
11
+
12
+ public function __construct( WP_MS_Sites_List_Table $table ) {
13
+ $this->table = $table;
14
+ }
15
+
16
+ public function get_column_value( $column, $id ) {
17
+ ob_start();
18
+
19
+ $method = 'column_' . $column;
20
+
21
+ $blog = get_site( $id );
22
+
23
+ if ( ! $blog ) {
24
+ return null;
25
+ }
26
+
27
+ if ( method_exists( $this->table, $method ) ) {
28
+ call_user_func( [ $this->table, $method ], $blog->to_array() );
29
+ } else {
30
+ $this->table->column_default( $blog->to_array(), $column );
31
+ }
32
+
33
+ return ob_get_clean();
34
+ }
35
+
36
+ }
classes/ListTable/NetworkUser.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListTable;
4
+
5
+ use AC\ListTable;
6
+ use WP_MS_Users_List_Table;
7
+
8
+ class NetworkUser implements ListTable {
9
+
10
+ use WpListTableTrait;
11
+
12
+ public function __construct( WP_MS_Users_List_Table $table ) {
13
+ $this->table = $table;
14
+ }
15
+
16
+ public function get_column_value( $column, $id ) {
17
+ ob_start();
18
+
19
+ $method = 'column_' . $column;
20
+
21
+ if ( method_exists( $this->table, $method ) ) {
22
+ call_user_func( [ $this->table, $method ], get_userdata( $id ) );
23
+ } else {
24
+ $this->table->column_default( get_userdata( $id ), $column );
25
+ }
26
+
27
+ return ob_get_clean();
28
+ }
29
+
30
+ }
classes/ListTable/Post.php CHANGED
@@ -7,10 +7,7 @@ use WP_Posts_List_Table;
7
 
8
  class Post implements ListTable {
9
 
10
- /**
11
- * @var WP_Posts_List_Table
12
- */
13
- private $table;
14
 
15
  public function __construct( WP_Posts_List_Table $table ) {
16
  $this->table = $table;
7
 
8
  class Post implements ListTable {
9
 
10
+ use WpListTableTrait;
 
 
 
11
 
12
  public function __construct( WP_Posts_List_Table $table ) {
13
  $this->table = $table;
classes/ListTable/Taxonomy.php CHANGED
@@ -3,16 +3,20 @@
3
  namespace AC\ListTable;
4
 
5
  use AC\ListTable;
 
6
 
7
  class Taxonomy implements ListTable {
8
 
 
 
9
  /**
10
  * @var string
11
  */
12
  private $taxonomy;
13
 
14
- public function __construct( $taxonomy ) {
15
- $this->taxonomy = $taxonomy;
 
16
  }
17
 
18
  public function get_column_value( $column, $id ) {
3
  namespace AC\ListTable;
4
 
5
  use AC\ListTable;
6
+ use WP_Terms_List_Table;
7
 
8
  class Taxonomy implements ListTable {
9
 
10
+ use WpListTableTrait;
11
+
12
  /**
13
  * @var string
14
  */
15
  private $taxonomy;
16
 
17
+ public function __construct( WP_Terms_List_Table $table, $taxonomy ) {
18
+ $this->table = $table;
19
+ $this->taxonomy = (string) $taxonomy;
20
  }
21
 
22
  public function get_column_value( $column, $id ) {
classes/ListTable/User.php CHANGED
@@ -3,9 +3,16 @@
3
  namespace AC\ListTable;
4
 
5
  use AC\ListTable;
 
6
 
7
  class User implements ListTable {
8
 
 
 
 
 
 
 
9
  public function get_column_value( $column, $id ) {
10
  return apply_filters( 'manage_users_custom_column', '', $column, $id );
11
  }
3
  namespace AC\ListTable;
4
 
5
  use AC\ListTable;
6
+ use WP_Users_List_Table;
7
 
8
  class User implements ListTable {
9
 
10
+ use WpListTableTrait;
11
+
12
+ public function __construct( WP_Users_List_Table $table ) {
13
+ $this->table = $table;
14
+ }
15
+
16
  public function get_column_value( $column, $id ) {
17
  return apply_filters( 'manage_users_custom_column', '', $column, $id );
18
  }
classes/ListTable/WpListTableTrait.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\ListTable;
4
+
5
+ use WP_List_Table;
6
+
7
+ trait WpListTableTrait {
8
+
9
+ /**
10
+ * @var WP_List_Table $table
11
+ */
12
+ protected $table;
13
+
14
+ /**
15
+ * @return int
16
+ */
17
+ public function get_total_items() {
18
+ return (int) $this->table->get_pagination_arg( 'total_items' );
19
+ }
20
+
21
+ }
classes/ListTableFactory.php CHANGED
@@ -2,6 +2,13 @@
2
 
3
  namespace AC;
4
 
 
 
 
 
 
 
 
5
  use WP_Comments_List_Table;
6
  use WP_Media_List_Table;
7
  use WP_MS_Sites_List_Table;
@@ -12,86 +19,37 @@ use WP_Users_List_Table;
12
 
13
  class ListTableFactory {
14
 
15
- /**
16
- * @param string $screen_id
17
- *
18
- * @return WP_Posts_List_Table
19
- */
20
- public function create_post_table( $screen_id ) {
21
- require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
22
 
23
- return new WP_Posts_List_Table( [ 'screen' => $screen_id ] );
24
- }
25
-
26
- /**
27
- * @param string $screen_id
28
- *
29
- * @return WP_Users_List_Table
30
- */
31
- public function create_user_table( $screen_id ) {
32
- require_once( ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php' );
33
-
34
- return new WP_Users_List_Table( [ 'screen' => $screen_id ] );
35
- }
36
-
37
- /**
38
- * @param string $screen_id
39
- *
40
- * @return WP_Comments_List_Table
41
- */
42
- public function create_comment_table( $screen_id ) {
43
- require_once( ABSPATH . 'wp-admin/includes/class-wp-comments-list-table.php' );
44
-
45
- $table = new WP_Comments_List_Table( [ 'screen' => $screen_id ] );
46
 
47
- // Since 4.4 the `floated_admin_avatar` filter is added in the constructor of the `\WP_Comments_List_Table` class.
48
- remove_filter( 'comment_author', [ $table, 'floated_admin_avatar' ], 10 );
49
 
50
- return $table;
51
- }
52
-
53
- /**
54
- * @param string $screen_id
55
- *
56
- * @return WP_Media_List_Table
57
- */
58
- public function create_media_table( $screen_id ) {
59
- require_once( ABSPATH . 'wp-admin/includes/class-wp-media-list-table.php' );
60
-
61
- return new WP_Media_List_Table( [ 'screen' => $screen_id ] );
62
- }
63
 
64
- /**
65
- * @param string $screen_id
66
- *
67
- * @return WP_Terms_List_Table
68
- */
69
- public function create_taxonomy_table( $screen_id ) {
70
- require_once( ABSPATH . 'wp-admin/includes/class-wp-terms-list-table.php' );
71
 
72
- return new WP_Terms_List_Table( [ 'screen' => $screen_id ] );
73
- }
 
 
74
 
75
- /**
76
- * @param string $screen_id
77
- *
78
- * @return WP_MS_Users_List_Table
79
- */
80
- public function create_network_user_table( $screen_id ) {
81
- require_once( ABSPATH . 'wp-admin/includes/class-wp-ms-users-list-table.php' );
82
 
83
- return new WP_MS_Users_List_Table( [ 'screen' => $screen_id ] );
84
- }
85
 
86
- /**
87
- * @param string $screen_id
88
- *
89
- * @return WP_MS_Sites_List_Table
90
- */
91
- public function create_network_site_table( $screen_id ) {
92
- require_once( ABSPATH . 'wp-admin/includes/class-wp-ms-sites-list-table.php' );
93
 
94
- return new WP_MS_Sites_List_Table( [ 'screen' => $screen_id ] );
95
  }
96
 
97
  }
2
 
3
  namespace AC;
4
 
5
+ use AC\ListTable\Comment;
6
+ use AC\ListTable\Media;
7
+ use AC\ListTable\NetworkSite;
8
+ use AC\ListTable\NetworkUser;
9
+ use AC\ListTable\Post;
10
+ use AC\ListTable\Taxonomy;
11
+ use AC\ListTable\User;
12
  use WP_Comments_List_Table;
13
  use WP_Media_List_Table;
14
  use WP_MS_Sites_List_Table;
19
 
20
  class ListTableFactory {
21
 
22
+ public function create_from_globals() {
23
+ global $wp_list_table, $current_screen;
 
 
 
 
 
24
 
25
+ switch ( true ) {
26
+ case $wp_list_table instanceof WP_Posts_List_Table :
27
+ return new Post( $wp_list_table );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
+ case $wp_list_table instanceof WP_Users_List_Table :
30
+ return new User( $wp_list_table );
31
 
32
+ case $wp_list_table instanceof WP_Comments_List_Table :
33
+ return new Comment( $wp_list_table );
 
 
 
 
 
 
 
 
 
 
 
34
 
35
+ case $wp_list_table instanceof WP_Media_List_Table :
36
+ return new Media( $wp_list_table );
 
 
 
 
 
37
 
38
+ case $wp_list_table instanceof WP_Terms_List_Table :
39
+ if ( ! $current_screen ) {
40
+ return null;
41
+ }
42
 
43
+ return new Taxonomy( $wp_list_table, $current_screen->taxonomy );
 
 
 
 
 
 
44
 
45
+ case $wp_list_table instanceof WP_MS_Users_List_Table :
46
+ return new NetworkUser( $wp_list_table );
47
 
48
+ case $wp_list_table instanceof WP_MS_Sites_List_Table :
49
+ return new NetworkSite( $wp_list_table );
50
+ }
 
 
 
 
51
 
52
+ return null;
53
  }
54
 
55
  }
classes/Message/InlineMessage.php CHANGED
@@ -7,10 +7,21 @@ use AC\View;
7
 
8
  class InlineMessage extends Message {
9
 
 
 
 
 
 
 
 
 
 
 
 
10
  public function render() {
11
  $view = new View( [
12
  'message' => $this->message,
13
- 'type' => $this->type,
14
  ] );
15
  $view->set_template( 'message/notice/inline' );
16
 
7
 
8
  class InlineMessage extends Message {
9
 
10
+ /**
11
+ * @var string|null
12
+ */
13
+ private $class;
14
+
15
+ public function __construct( $message, $class = null ) {
16
+ parent::__construct( $message );
17
+
18
+ $this->class = $class;
19
+ }
20
+
21
  public function render() {
22
  $view = new View( [
23
  'message' => $this->message,
24
+ 'class' => trim( $this->type . ' ' . $this->class ),
25
  ] );
26
  $view->set_template( 'message/notice/inline' );
27
 
classes/Meta/Query.php CHANGED
@@ -463,8 +463,6 @@ class Query {
463
 
464
  /**
465
  * @param string $type
466
- *
467
- * @return bool
468
  */
469
  private function set_query( $type ) {
470
  global $wpdb;
@@ -497,8 +495,6 @@ class Query {
497
 
498
  $this->query = new WP_Meta_Query();
499
  $this->query->get_sql( $type, $table, $id );
500
-
501
- return true;
502
  }
503
 
504
  }
463
 
464
  /**
465
  * @param string $type
 
 
466
  */
467
  private function set_query( $type ) {
468
  global $wpdb;
495
 
496
  $this->query = new WP_Meta_Query();
497
  $this->query->get_sql( $type, $table, $id );
 
 
498
  }
499
 
500
  }
classes/MetaType.php CHANGED
@@ -10,6 +10,7 @@ final class MetaType {
10
  const USER = 'user';
11
  const COMMENT = 'comment';
12
  const TERM = 'term';
 
13
 
14
  /**
15
  * @var string
@@ -41,6 +42,7 @@ final class MetaType {
41
  self::USER,
42
  self::COMMENT,
43
  self::TERM,
 
44
  ];
45
 
46
  if ( ! in_array( $this->meta_type, $types ) ) {
10
  const USER = 'user';
11
  const COMMENT = 'comment';
12
  const TERM = 'term';
13
+ const SITE = 'site';
14
 
15
  /**
16
  * @var string
42
  self::USER,
43
  self::COMMENT,
44
  self::TERM,
45
+ self::SITE,
46
  ];
47
 
48
  if ( ! in_array( $this->meta_type, $types ) ) {
classes/PermissionChecker.php CHANGED
@@ -7,32 +7,36 @@ use WP_User;
7
  class PermissionChecker {
8
 
9
  /**
10
- * @param ListScreen $list_screen
 
11
  *
12
- * @return ListScreen|null
13
  */
14
- public function is_valid( WP_User $user, ListScreen $list_screen ) {
15
- $roles = $list_screen->get_preference( 'roles' );
 
 
 
16
  $users = $list_screen->get_preference( 'users' );
17
- $users = is_array( $users ) ? array_map( 'intval', $users ) : [];
 
 
 
 
18
 
19
  if ( empty( $users ) && empty( $roles ) ) {
20
- return $list_screen;
21
  }
22
 
23
  if ( $roles && is_array( $roles ) ) {
24
  foreach ( $roles as $role ) {
25
  if ( $user->has_cap( $role ) ) {
26
- return $list_screen;
27
  }
28
  }
29
  }
30
 
31
- if ( $users && in_array( $user->ID, $users, true ) ) {
32
- return $list_screen;
33
- }
34
-
35
- return null;
36
  }
37
 
38
  }
7
  class PermissionChecker {
8
 
9
  /**
10
+ * @param ListScreen $list_screen
11
+ * @param WP_User|null $user
12
  *
13
+ * @return bool
14
  */
15
+ public function is_valid( ListScreen $list_screen, WP_User $user = null ) {
16
+ if ( null === $user ) {
17
+ $user = wp_get_current_user();
18
+ }
19
+
20
  $users = $list_screen->get_preference( 'users' );
21
+ $roles = $list_screen->get_preference( 'roles' );
22
+
23
+ $users = is_array( $users )
24
+ ? array_map( 'intval', $users )
25
+ : [];
26
 
27
  if ( empty( $users ) && empty( $roles ) ) {
28
+ return true;
29
  }
30
 
31
  if ( $roles && is_array( $roles ) ) {
32
  foreach ( $roles as $role ) {
33
  if ( $user->has_cap( $role ) ) {
34
+ return true;
35
  }
36
  }
37
  }
38
 
39
+ return $users && in_array( $user->ID, $users, true );
 
 
 
 
40
  }
41
 
42
  }
classes/Plugin/Update/V4000.php CHANGED
@@ -171,7 +171,7 @@ class V4000 extends Update {
171
  foreach ( $list_ids as $list_key => $ids ) {
172
  foreach ( $ids as $deprecated_id => $list_id ) {
173
 
174
- $old_meta_key = $prefix . ( $deprecated_id ? $deprecated_id : $list_key );
175
 
176
  // Segments were stored globally, ignoring individual sites on a multisite network. Segments are now stored per site.
177
  $new_meta_key = $prefix . $list_id;
171
  foreach ( $list_ids as $list_key => $ids ) {
172
  foreach ( $ids as $deprecated_id => $list_id ) {
173
 
174
+ $old_meta_key = $prefix . ( $deprecated_id ?: $list_key );
175
 
176
  // Segments were stored globally, ignoring individual sites on a multisite network. Segments are now stored per site.
177
  $new_meta_key = $prefix . $list_id;
classes/Plugin/Updater/Site.php CHANGED
@@ -19,16 +19,10 @@ class Site extends Updater {
19
  $this->plugin = $plugin;
20
  }
21
 
22
- /**
23
- * @inheritDoc
24
- */
25
  protected function update_stored_version( $version = null ) {
26
  $this->plugin->update_stored_version( $version );
27
  }
28
 
29
- /**
30
- * @inheritDoc
31
- */
32
  protected function is_new_install() {
33
  return $this->plugin->is_new_install();
34
  }
19
  $this->plugin = $plugin;
20
  }
21
 
 
 
 
22
  protected function update_stored_version( $version = null ) {
23
  $this->plugin->update_stored_version( $version );
24
  }
25
 
 
 
 
26
  protected function is_new_install() {
27
  return $this->plugin->is_new_install();
28
  }
classes/Preferences.php CHANGED
@@ -42,7 +42,7 @@ abstract class Preferences {
42
  $user_id = get_current_user_id();
43
  }
44
 
45
- $this->user_id = intval( $user_id );
46
  $this->label = sanitize_key( (string) $label );
47
 
48
  $data = $this->load();
42
  $user_id = get_current_user_id();
43
  }
44
 
45
+ $this->user_id = (int) $user_id;
46
  $this->label = sanitize_key( (string) $label );
47
 
48
  $data = $this->load();
classes/Request.php CHANGED
@@ -37,11 +37,15 @@ class Request {
37
 
38
  /**
39
  * @param Middleware $middleware
 
 
40
  */
41
  public function add_middleware( Middleware $middleware ) {
42
  $this->middleware[] = $middleware;
43
 
44
  $middleware->handle( $this );
 
 
45
  }
46
 
47
  /**
37
 
38
  /**
39
  * @param Middleware $middleware
40
+ *
41
+ * @return self
42
  */
43
  public function add_middleware( Middleware $middleware ) {
44
  $this->middleware[] = $middleware;
45
 
46
  $middleware->handle( $this );
47
+
48
+ return $this;
49
  }
50
 
51
  /**
classes/Sanitize.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC;
4
+
5
+ interface Sanitize {
6
+
7
+ public function sanitize( $data );
8
+
9
+ }
classes/Service/Storage.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
-
3
- namespace AC\Service;
4
-
5
- use AC\ListScreenRepository;
6
- use AC\ListScreenRepository\Database;
7
- use AC\ListScreenTypes;
8
- use AC\Registrable;
9
-
10
- final class Storage implements Registrable {
11
-
12
- /**
13
- * @var ListScreenRepository\Storage
14
- */
15
- private $storage;
16
-
17
- /**
18
- * @var ListScreenTypes
19
- */
20
- private $list_screen_types;
21
-
22
- public function __construct( ListScreenRepository\Storage $storage, ListScreenTypes $list_screen_types ) {
23
- $this->storage = $storage;
24
- $this->list_screen_types = $list_screen_types;
25
- }
26
-
27
- public function register() {
28
- $this->storage->set_repositories( [
29
- 'acp-database' => new ListScreenRepository\Storage\ListScreenRepository(
30
- new Database( $this->list_screen_types ),
31
- true
32
- ),
33
- ] );
34
- }
35
-
36
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/Settings/Column.php CHANGED
@@ -274,13 +274,17 @@ abstract class Column {
274
  case 'select' :
275
  $element = new AC\Settings\Form\Element\Select( $name );
276
 
 
 
 
 
277
  break;
278
  default:
279
  $element = new Element\Input( $name );
280
  $element->set_type( $type );
281
  }
282
 
283
- $element->set_name( sprintf( 'columns[%s][%s]', $this->column->get_name(), $name ) );
284
  $element->set_id( sprintf( 'ac-%s-%s', $this->column->get_name(), $name ) );
285
  $element->add_class( 'ac-setting-input_' . $name );
286
 
274
  case 'select' :
275
  $element = new AC\Settings\Form\Element\Select( $name );
276
 
277
+ break;
278
+ case 'multi-select' :
279
+ $element = new Element\MultiSelect( $name );
280
+
281
  break;
282
  default:
283
  $element = new Element\Input( $name );
284
  $element->set_type( $type );
285
  }
286
 
287
+ $element->set_name( $name );
288
  $element->set_id( sprintf( 'ac-%s-%s', $this->column->get_name(), $name ) );
289
  $element->add_class( 'ac-setting-input_' . $name );
290
 
classes/Settings/Column/CustomFieldType.php CHANGED
@@ -10,6 +10,8 @@ use AC\View;
10
  class CustomFieldType extends Settings\Column
11
  implements Settings\FormatValue {
12
 
 
 
13
  const TYPE_ARRAY = 'array';
14
  const TYPE_BOOLEAN = 'checkmark';
15
  const TYPE_COLOR = 'color';
@@ -30,7 +32,7 @@ class CustomFieldType extends Settings\Column
30
  private $field_type;
31
 
32
  protected function define_options() {
33
- return [ 'field_type' ];
34
  }
35
 
36
  public function get_dependent_settings() {
10
  class CustomFieldType extends Settings\Column
11
  implements Settings\FormatValue {
12
 
13
+ const NAME = 'field_type';
14
+
15
  const TYPE_ARRAY = 'array';
16
  const TYPE_BOOLEAN = 'checkmark';
17
  const TYPE_COLOR = 'color';
32
  private $field_type;
33
 
34
  protected function define_options() {
35
+ return [ self::NAME ];
36
  }
37
 
38
  public function get_dependent_settings() {
classes/Settings/Column/DateTimeFormat.php CHANGED
@@ -101,7 +101,7 @@ abstract class DateTimeFormat extends Settings\Column
101
  }
102
 
103
  if ( $description ) {
104
- $output .= '<span class="ac-setting-input-date__more hidden">' . $description . '</span>';
105
  }
106
 
107
  return $output;
@@ -116,7 +116,7 @@ abstract class DateTimeFormat extends Settings\Column
116
  sprintf( __( 'Learn more about %s.', 'codepress-admin-columns' ), ac_helper()->html->link( 'https://wordpress.org/support/article/formatting-date-and-time/', __( 'date and time formatting', 'codepress-admin-columns' ), [ 'target' => '_blank' ] ) )
117
  );
118
 
119
- $custom_label .= '<input type="text" class="ac-setting-input-date__custom" value="' . esc_attr( $this->get_date_format() ) . '" disabled>';
120
  $custom_label .= '<span class="ac-setting-input-date__example"></span>';
121
 
122
  $options['custom'] = $custom_label;
101
  }
102
 
103
  if ( $description ) {
104
+ $output .= '<span data-help class="ac-setting-input-date__more hidden">' . $description . '</span>';
105
  }
106
 
107
  return $output;
116
  sprintf( __( 'Learn more about %s.', 'codepress-admin-columns' ), ac_helper()->html->link( 'https://wordpress.org/support/article/formatting-date-and-time/', __( 'date and time formatting', 'codepress-admin-columns' ), [ 'target' => '_blank' ] ) )
117
  );
118
 
119
+ $custom_label .= '<input type="text" class="ac-setting-input-date__custom" data-custom-date value="' . esc_attr( $this->get_date_format() ) . '" disabled>';
120
  $custom_label .= '<span class="ac-setting-input-date__example"></span>';
121
 
122
  $options['custom'] = $custom_label;
classes/Settings/Column/Label.php CHANGED
@@ -59,7 +59,7 @@ class Label extends Settings\Column {
59
  * @param string $label
60
  */
61
  public function set_label( $label ) {
62
- $this->label = $label;
63
  }
64
 
65
  /**
59
  * @param string $label
60
  */
61
  public function set_label( $label ) {
62
+ $this->label = apply_filters( 'ac/column/label', wp_kses( $label, true ), $label );
63
  }
64
 
65
  /**
classes/Settings/Column/Post.php CHANGED
@@ -14,6 +14,7 @@ class Post extends Settings\Column
14
  const PROPERTY_FEATURED_IMAGE = 'thumbnail';
15
  const PROPERTY_ID = 'id';
16
  const PROPERTY_TITLE = 'title';
 
17
 
18
  /**
19
  * @var string
@@ -37,6 +38,9 @@ class Post extends Settings\Column
37
  case self::PROPERTY_FEATURED_IMAGE :
38
  $setting[] = new Settings\Column\Image( $this->column );
39
  break;
 
 
 
40
  }
41
 
42
  $setting[] = new Settings\Column\PostLink( $this->column );
@@ -65,6 +69,10 @@ class Post extends Settings\Column
65
  case self::PROPERTY_TITLE :
66
  $value = ac_helper()->post->get_title( $id );
67
 
 
 
 
 
68
  break;
69
  default :
70
  $value = $id;
@@ -92,6 +100,7 @@ class Post extends Settings\Column
92
  self::PROPERTY_ID => __( 'ID' ),
93
  self::PROPERTY_AUTHOR => __( 'Author' ),
94
  self::PROPERTY_FEATURED_IMAGE => _x( 'Featured Image', 'post' ),
 
95
  ];
96
 
97
  asort( $options );
14
  const PROPERTY_FEATURED_IMAGE = 'thumbnail';
15
  const PROPERTY_ID = 'id';
16
  const PROPERTY_TITLE = 'title';
17
+ const PROPERTY_DATE = 'date';
18
 
19
  /**
20
  * @var string
38
  case self::PROPERTY_FEATURED_IMAGE :
39
  $setting[] = new Settings\Column\Image( $this->column );
40
  break;
41
+ case self::PROPERTY_DATE :
42
+ $setting[] = new Settings\Column\Date( $this->column );
43
+ break;
44
  }
45
 
46
  $setting[] = new Settings\Column\PostLink( $this->column );
69
  case self::PROPERTY_TITLE :
70
  $value = ac_helper()->post->get_title( $id );
71
 
72
+ break;
73
+ case self::PROPERTY_DATE :
74
+ $value = ac_helper()->post->get_raw_field( 'post_date', $id );
75
+
76
  break;
77
  default :
78
  $value = $id;
100
  self::PROPERTY_ID => __( 'ID' ),
101
  self::PROPERTY_AUTHOR => __( 'Author' ),
102
  self::PROPERTY_FEATURED_IMAGE => _x( 'Featured Image', 'post' ),
103
+ self::PROPERTY_DATE => __( 'Date' ),
104
  ];
105
 
106
  asort( $options );
classes/Settings/Column/PostStatus.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC\Settings\Column;
4
+
5
+ use AC;
6
+ use AC\Settings;
7
+ use AC\View;
8
+
9
+ class PostStatus extends Settings\Column {
10
+
11
+ const NAME = 'post_status';
12
+
13
+ /**
14
+ * @var array
15
+ */
16
+ private $post_status;
17
+
18
+ protected function define_options() {
19
+ return [ self::NAME => [ 'publish', 'private' ] ];
20
+ }
21
+
22
+ public function create_view() {
23
+ $options = [];
24
+
25
+ foreach ( get_post_stati( [ 'exclude_from_search' => false ] ) as $name ) {
26
+ $options[ $name ] = $this->get_post_status_label( $name );
27
+ }
28
+
29
+ $setting = $this->create_element( 'multi-select' )
30
+ ->set_options( $options );
31
+
32
+ $view = new View( [
33
+ 'label' => __( 'Post Status', 'codepress-admin-columns' ),
34
+ 'setting' => $setting,
35
+ ] );
36
+
37
+ return $view;
38
+ }
39
+
40
+ private function get_post_status_label( $key ) {
41
+ $status = get_post_status_object( $key );
42
+
43
+ return $status ? $status->label : $key;
44
+ }
45
+
46
+ /**
47
+ * @return array
48
+ */
49
+ public function get_post_status() {
50
+ return $this->post_status;
51
+ }
52
+
53
+ /**
54
+ * @param array $post_status
55
+ *
56
+ * @return true
57
+ */
58
+ public function set_post_status( $post_status ) {
59
+ $this->post_status = $post_status;
60
+
61
+ return true;
62
+ }
63
+
64
+ }
classes/Settings/Column/PostType.php CHANGED
@@ -47,6 +47,19 @@ class PostType extends Settings\Column {
47
  return $view;
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  private function get_post_type_labels() {
51
  $options = [];
52
 
@@ -61,6 +74,8 @@ class PostType extends Settings\Column {
61
  $options[ $post_type ] = $post_type_object->labels->name;
62
  }
63
 
 
 
64
  natcasesort( $options );
65
 
66
  return $options;
47
  return $view;
48
  }
49
 
50
+ private function add_slug_to_duplicate_post_type_label( $options ) {
51
+ $values = array_values( $options );
52
+
53
+ // Add slug to duplicate post type labels
54
+ foreach ( $options as $k => $label ) {
55
+ if ( count( array_keys( $values, $label ) ) > 1 ) {
56
+ $options[ $k ] .= sprintf( ' (%s)', $k );
57
+ }
58
+ }
59
+
60
+ return $options;
61
+ }
62
+
63
  private function get_post_type_labels() {
64
  $options = [];
65
 
74
  $options[ $post_type ] = $post_type_object->labels->name;
75
  }
76
 
77
+ $options = $this->add_slug_to_duplicate_post_type_label( $options );
78
+
79
  natcasesort( $options );
80
 
81
  return $options;
classes/Settings/Column/Type.php CHANGED
@@ -4,7 +4,6 @@ namespace AC\Settings\Column;
4
 
5
  use AC;
6
  use AC\Groups;
7
- use AC\Integration;
8
  use AC\Settings\Column;
9
  use AC\View;
10
 
4
 
5
  use AC;
6
  use AC\Groups;
 
7
  use AC\Settings\Column;
8
  use AC\View;
9
 
classes/Settings/Column/Width.php CHANGED
@@ -38,9 +38,11 @@ class Width extends Settings\Column
38
 
39
  public function create_view() {
40
  $width = $this->create_element( 'text' )
41
- ->set_attribute( 'placeholder', __( 'Auto', 'codepress-admin-columns' ) );
 
42
 
43
  $unit = $this->create_element( 'radio', 'width_unit' )
 
44
  ->set_options( $this->get_valid_width_units() );
45
 
46
  $section = new View( [
38
 
39
  public function create_view() {
40
  $width = $this->create_element( 'text' )
41
+ ->set_attribute( 'placeholder', __( 'Auto', 'codepress-admin-columns' ) )
42
+ ->set_attribute( 'data-width-input', '' );
43
 
44
  $unit = $this->create_element( 'radio', 'width_unit' )
45
+ ->set_attribute( 'data-unit-input', '' )
46
  ->set_options( $this->get_valid_width_units() );
47
 
48
  $section = new View( [
classes/Table/TableFormView.php CHANGED
@@ -6,6 +6,8 @@ use AC;
6
 
7
  final class TableFormView implements AC\Renderable {
8
 
 
 
9
  /**
10
  * @var string
11
  */
6
 
7
  final class TableFormView implements AC\Renderable {
8
 
9
+ const PARAM_ACTION = 'ac-actions-form';
10
+
11
  /**
12
  * @var string
13
  */
classes/TableLoader.php DELETED
@@ -1,114 +0,0 @@
1
- <?php
2
-
3
- namespace AC;
4
-
5
- use AC\Asset\Location\Absolute;
6
- use AC\ListScreenRepository\Filter;
7
- use AC\ListScreenRepository\Storage;
8
- use AC\Table\Preference;
9
- use AC\Type\ListScreenId;
10
-
11
- class TableLoader implements Registrable {
12
-
13
- /**
14
- * @var Storage
15
- */
16
- private $storage;
17
-
18
- /**
19
- * @var PermissionChecker
20
- */
21
- private $permission_checker;
22
-
23
- /**
24
- * @var Absolute
25
- */
26
- private $location;
27
-
28
- /**
29
- * @var Preference
30
- */
31
- private $preference;
32
-
33
- public function __construct( Storage $storage, PermissionChecker $permission_checker, Absolute $location, Preference $preference ) {
34
- $this->storage = $storage;
35
- $this->permission_checker = $permission_checker;
36
- $this->location = $location;
37
- $this->preference = $preference;
38
- }
39
-
40
- public function register() {
41
- add_action( 'ac/screen', [ $this, 'init' ] );
42
- }
43
-
44
- public function init( Screen $screen ) {
45
- $key = $screen->get_list_screen();
46
-
47
- if ( ! $key ) {
48
- return;
49
- }
50
-
51
- // Requested
52
- $list_id = ListScreenId::is_valid_id( filter_input( INPUT_GET, 'layout' ) )
53
- ? new ListScreenId( filter_input( INPUT_GET, 'layout' ) )
54
- : null;
55
-
56
- // Last visited
57
- if ( ! $list_id ) {
58
- $list_id_preference = $this->preference->get( $key );
59
- $list_id = ListScreenId::is_valid_id( $list_id_preference )
60
- ? new ListScreenId( $list_id_preference )
61
- : null;
62
- }
63
-
64
- $list_screen = null;
65
-
66
- if ( $list_id ) {
67
- $requested_list_screen = $this->storage->find( $list_id );
68
-
69
- if ( $requested_list_screen && $requested_list_screen->get_key() === $key && $this->permission_checker->is_valid( wp_get_current_user(), $requested_list_screen ) ) {
70
- $list_screen = $requested_list_screen;
71
- }
72
- }
73
-
74
- // First visit or not found
75
- if ( ! $list_screen ) {
76
- $list_screen = $this->get_first_list_screen( $key );
77
- }
78
-
79
- if ( ! $list_screen ) {
80
- return;
81
- }
82
-
83
- if ( $list_screen->has_id() ) {
84
- $this->preference->set( $key, $list_screen->get_id()->get_id() );
85
- }
86
-
87
- $table_screen = new Table\Screen( $this->location, $list_screen );
88
- $table_screen->register();
89
-
90
- do_action( 'ac/table', $table_screen );
91
- }
92
-
93
- /**
94
- * @param string $key
95
- *
96
- * @return ListScreen|null
97
- */
98
- private function get_first_list_screen( $key ) {
99
- $list_screens = $this->storage->find_all( [
100
- 'key' => $key,
101
- 'filter' => new Filter\Permission( $this->permission_checker ),
102
- ] );
103
-
104
- if ( $list_screens->count() > 0 ) {
105
-
106
- // First visit. Load first available list Id.
107
- return $list_screens->get_first();
108
- }
109
-
110
- // No available list screen found.
111
- return ListScreenTypes::instance()->get_list_screen_by_key( $key );
112
- }
113
-
114
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/ThirdParty/WPML.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace AC\ThirdParty;
4
 
 
5
  use AC\Registrable;
6
 
7
  /**
@@ -9,6 +10,18 @@ use AC\Registrable;
9
  */
10
  class WPML implements Registrable {
11
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  function register() {
13
 
14
  // display correct flags on the overview screens
@@ -48,9 +61,7 @@ class WPML implements Registrable {
48
  return;
49
  }
50
 
51
- $list_screens = AC()->get_storage()->find_all();
52
-
53
- foreach ( $list_screens as $list_screen ) {
54
  foreach ( $list_screen->get_columns() as $column ) {
55
  do_action( 'wpml_register_single_string', 'Admin Columns', $column->get_custom_label(), $column->get_custom_label() );
56
  }
2
 
3
  namespace AC\ThirdParty;
4
 
5
+ use AC\ListScreenRepository\Storage;
6
  use AC\Registrable;
7
 
8
  /**
10
  */
11
  class WPML implements Registrable {
12
 
13
+ /**
14
+ * @var Storage
15
+ */
16
+ private $storage;
17
+
18
+ /**
19
+ * @param Storage $storage
20
+ */
21
+ public function __construct( Storage $storage ) {
22
+ $this->storage = $storage;
23
+ }
24
+
25
  function register() {
26
 
27
  // display correct flags on the overview screens
61
  return;
62
  }
63
 
64
+ foreach ( $this->storage->find_all() as $list_screen ) {
 
 
65
  foreach ( $list_screen->get_columns() as $column ) {
66
  do_action( 'wpml_register_single_string', 'Admin Columns', $column->get_custom_label(), $column->get_custom_label() );
67
  }
classes/Transient.php CHANGED
@@ -33,6 +33,13 @@ class Transient implements Expirable {
33
  return $this->timestamp->is_expired( $value );
34
  }
35
 
 
 
 
 
 
 
 
36
  /**
37
  * @return mixed
38
  */
33
  return $this->timestamp->is_expired( $value );
34
  }
35
 
36
+ /**
37
+ * @return bool
38
+ */
39
+ public function has_expiration_time() {
40
+ return false !== $this->timestamp->get();
41
+ }
42
+
43
  /**
44
  * @return mixed
45
  */
classes/Type/Url/Documentation.php CHANGED
@@ -37,4 +37,12 @@ class Documentation implements Type\Url {
37
  return self::URL . $this->get_path();
38
  }
39
 
 
 
 
 
 
 
 
 
40
  }
37
  return self::URL . $this->get_path();
38
  }
39
 
40
+ public static function create_with_path( $path ) {
41
+ return new self( $path );
42
+ }
43
+
44
+ public function __toString() {
45
+ return $this->get_url();
46
+ }
47
+
48
  }
classes/Type/Url/Site.php CHANGED
@@ -17,6 +17,7 @@ class Site implements Type\Url {
17
  const PAGE_FORUM_BETA = '/forums/forum/beta-feedback/';
18
  const PAGE_ADDON_ACF = '/advanced-custom-fields';
19
  const PAGE_ADDON_BUDDYPRESS = '/buddypress';
 
20
  const PAGE_ADDON_EVENTS_CALENDAR = '/events-calendar';
21
  const PAGE_ADDON_METABOX = '/meta-box-integration';
22
  const PAGE_ADDON_NINJA_FORMS = '/ninja-forms';
17
  const PAGE_FORUM_BETA = '/forums/forum/beta-feedback/';
18
  const PAGE_ADDON_ACF = '/advanced-custom-fields';
19
  const PAGE_ADDON_BUDDYPRESS = '/buddypress';
20
+ const PAGE_ADDON_GRAVITYFORMS = '/gravity-forms';
21
  const PAGE_ADDON_EVENTS_CALENDAR = '/events-calendar';
22
  const PAGE_ADDON_METABOX = '/meta-box-integration';
23
  const PAGE_ADDON_NINJA_FORMS = '/ninja-forms';
classes/WpListTableFactory.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace AC;
4
+
5
+ use WP_Comments_List_Table;
6
+ use WP_Media_List_Table;
7
+ use WP_MS_Sites_List_Table;
8
+ use WP_MS_Users_List_Table;
9
+ use WP_Posts_List_Table;
10
+ use WP_Terms_List_Table;
11
+ use WP_Users_List_Table;
12
+
13
+ class WpListTableFactory {
14
+
15
+ /**
16
+ * @param string $screen_id
17
+ *
18
+ * @return WP_Posts_List_Table
19
+ */
20
+ public function create_post_table( $screen_id ) {
21
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php' );
22
+
23
+ return new WP_Posts_List_Table( [ 'screen' => $screen_id ] );
24
+ }
25
+
26
+ /**
27
+ * @param string $screen_id
28
+ *
29
+ * @return WP_Users_List_Table
30
+ */
31
+ public function create_user_table( $screen_id ) {
32
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php' );
33
+
34
+ return new WP_Users_List_Table( [ 'screen' => $screen_id ] );
35
+ }
36
+
37
+ /**
38
+ * @param string $screen_id
39
+ *
40
+ * @return WP_Comments_List_Table
41
+ */
42
+ public function create_comment_table( $screen_id ) {
43
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-comments-list-table.php' );
44
+
45
+ $table = new WP_Comments_List_Table( [ 'screen' => $screen_id ] );
46
+
47
+ // Since 4.4 the `floated_admin_avatar` filter is added in the constructor of the `\WP_Comments_List_Table` class.
48
+ remove_filter( 'comment_author', [ $table, 'floated_admin_avatar' ] );
49
+
50
+ return $table;
51
+ }
52
+
53
+ /**
54
+ * @param string $screen_id
55
+ *
56
+ * @return WP_Media_List_Table
57
+ */
58
+ public function create_media_table( $screen_id ) {
59
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-media-list-table.php' );
60
+
61
+ return new WP_Media_List_Table( [ 'screen' => $screen_id ] );
62
+ }
63
+
64
+ /**
65
+ * @param string $screen_id
66
+ *
67
+ * @return WP_Terms_List_Table
68
+ */
69
+ public function create_taxonomy_table( $screen_id ) {
70
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-terms-list-table.php' );
71
+
72
+ return new WP_Terms_List_Table( [ 'screen' => $screen_id ] );
73
+ }
74
+
75
+ /**
76
+ * @param string $screen_id
77
+ *
78
+ * @return WP_MS_Users_List_Table
79
+ */
80
+ public function create_network_user_table( $screen_id ) {
81
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-ms-users-list-table.php' );
82
+
83
+ return new WP_MS_Users_List_Table( [ 'screen' => $screen_id ] );
84
+ }
85
+
86
+ /**
87
+ * @param string $screen_id
88
+ *
89
+ * @return WP_MS_Sites_List_Table
90
+ */
91
+ public function create_network_site_table( $screen_id ) {
92
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-ms-sites-list-table.php' );
93
+
94
+ return new WP_MS_Sites_List_Table( [ 'screen' => $screen_id ] );
95
+ }
96
+
97
+ }
codepress-admin-columns.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Admin Columns
4
- Version: 4.2.5
5
  Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
  Author: AdminColumns.com
7
  Author URI: https://www.admincolumns.com
@@ -12,7 +12,7 @@ Domain Path: /languages
12
  License: GPL v3
13
 
14
  Admin Columns Plugin
15
- Copyright (C) 2011-2020, Admin Columns - info@admincolumns.com
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
18
  the Free Software Foundation, either version 3 of the License, or
@@ -36,7 +36,7 @@ if ( ! is_admin() ) {
36
  }
37
 
38
  define( 'AC_FILE', __FILE__ );
39
- define( 'AC_VERSION', '4.2.5' );
40
 
41
  require_once __DIR__ . '/classes/Dependencies.php';
42
 
1
  <?php
2
  /*
3
  Plugin Name: Admin Columns
4
+ Version: 4.3
5
  Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
  Author: AdminColumns.com
7
  Author URI: https://www.admincolumns.com
12
  License: GPL v3
13
 
14
  Admin Columns Plugin
15
+ Copyright (C) 2011-2021, Admin Columns - info@admincolumns.com
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
18
  the Free Software Foundation, either version 3 of the License, or
36
  }
37
 
38
  define( 'AC_FILE', __FILE__ );
39
+ define( 'AC_VERSION', '4.3' );
40
 
41
  require_once __DIR__ . '/classes/Dependencies.php';
42
 
config/autoload-classmap.php CHANGED
@@ -17,12 +17,14 @@ return array (
17
  'AC\\Admin\\Helpable' => $dir . '/classes/Admin/Helpable.php',
18
  'AC\\Admin\\Menu' => $dir . '/classes/Admin/Menu.php',
19
  'AC\\Admin\\Menu\\Item' => $dir . '/classes/Admin/Menu/Item.php',
 
20
  'AC\\Admin\\Page' => $dir . '/classes/Admin/Page.php',
21
  'AC\\Admin\\PageCollection' => $dir . '/classes/Admin/PageCollection.php',
22
  'AC\\Admin\\Page\\Addons' => $dir . '/classes/Admin/Page/Addons.php',
23
  'AC\\Admin\\Page\\Columns' => $dir . '/classes/Admin/Page/Columns.php',
24
  'AC\\Admin\\Page\\Help' => $dir . '/classes/Admin/Page/Help.php',
25
  'AC\\Admin\\Page\\Settings' => $dir . '/classes/Admin/Page/Settings.php',
 
26
  'AC\\Admin\\Preference\\ScreenOptions' => $dir . '/classes/Admin/Preference/ScreenOptions.php',
27
  'AC\\Admin\\ScreenOption' => $dir . '/classes/Admin/ScreenOption.php',
28
  'AC\\Admin\\ScreenOption\\ColumnId' => $dir . '/classes/Admin/ScreenOption/ColumnId.php',
@@ -41,6 +43,7 @@ return array (
41
  'AC\\Ajax\\Handler' => $dir . '/classes/Ajax/Handler.php',
42
  'AC\\Ajax\\NullHandler' => $dir . '/classes/Ajax/NullHandler.php',
43
  'AC\\Ajax\\NumberFormat' => $dir . '/classes/Ajax/NumberFormat.php',
 
44
  'AC\\ArrayIterator' => $dir . '/classes/ArrayIterator.php',
45
  'AC\\Asset\\Assets' => $dir . '/classes/Asset/Assets.php',
46
  'AC\\Asset\\Enqueueable' => $dir . '/classes/Asset/Enqueueable.php',
@@ -60,6 +63,9 @@ return array (
60
  'AC\\Collection' => $dir . '/classes/Collection.php',
61
  'AC\\Column' => $dir . '/classes/Column.php',
62
  'AC\\ColumnGroups' => $dir . '/classes/ColumnGroups.php',
 
 
 
63
  'AC\\Column\\Actions' => $dir . '/classes/Column/Actions.php',
64
  'AC\\Column\\AjaxValue' => $dir . '/classes/Column/AjaxValue.php',
65
  'AC\\Column\\Comment\\Agent' => $dir . '/classes/Column/Comment/Agent.php',
@@ -154,9 +160,11 @@ return array (
154
  'AC\\Column\\User\\DisplayName' => $dir . '/classes/Column/User/DisplayName.php',
155
  'AC\\Column\\User\\Email' => $dir . '/classes/Column/User/Email.php',
156
  'AC\\Column\\User\\FirstName' => $dir . '/classes/Column/User/FirstName.php',
 
157
  'AC\\Column\\User\\FullName' => $dir . '/classes/Column/User/FullName.php',
158
  'AC\\Column\\User\\ID' => $dir . '/classes/Column/User/ID.php',
159
  'AC\\Column\\User\\LastName' => $dir . '/classes/Column/User/LastName.php',
 
160
  'AC\\Column\\User\\Login' => $dir . '/classes/Column/User/Login.php',
161
  'AC\\Column\\User\\Name' => $dir . '/classes/Column/User/Name.php',
162
  'AC\\Column\\User\\Nicename' => $dir . '/classes/Column/User/Nicename.php',
@@ -179,11 +187,15 @@ return array (
179
  'AC\\Controller\\ColumnRequest\\Refresh' => $dir . '/classes/Controller/ColumnRequest/Refresh.php',
180
  'AC\\Controller\\ColumnRequest\\Select' => $dir . '/classes/Controller/ColumnRequest/Select.php',
181
  'AC\\Controller\\DefaultColumns' => $dir . '/classes/Controller/DefaultColumns.php',
182
- 'AC\\Controller\\ListScreenRequest' => $dir . '/classes/Controller/ListScreenRequest.php',
183
  'AC\\Controller\\ListScreenRestoreColumns' => $dir . '/classes/Controller/ListScreenRestoreColumns.php',
 
 
184
  'AC\\Controller\\ListScreen\\Save' => $dir . '/classes/Controller/ListScreen/Save.php',
 
 
185
  'AC\\Controller\\RedirectAddonStatus' => $dir . '/classes/Controller/RedirectAddonStatus.php',
186
  'AC\\Controller\\RestoreSettingsRequest' => $dir . '/classes/Controller/RestoreSettingsRequest.php',
 
187
  'AC\\DefaultColumnsRepository' => $dir . '/classes/DefaultColumnsRepository.php',
188
  'AC\\Dependencies' => $dir . '/classes/Dependencies.php',
189
  'AC\\Deprecated\\Hook' => $dir . '/classes/Deprecated/Hook.php',
@@ -237,6 +249,7 @@ return array (
237
  'AC\\Integration\\ACF' => $dir . '/classes/Integration/ACF.php',
238
  'AC\\Integration\\BuddyPress' => $dir . '/classes/Integration/BuddyPress.php',
239
  'AC\\Integration\\EventsCalendar' => $dir . '/classes/Integration/EventsCalendar.php',
 
240
  'AC\\Integration\\MetaBox' => $dir . '/classes/Integration/MetaBox.php',
241
  'AC\\Integration\\NinjaForms' => $dir . '/classes/Integration/NinjaForms.php',
242
  'AC\\Integration\\Pods' => $dir . '/classes/Integration/Pods.php',
@@ -253,7 +266,9 @@ return array (
253
  'AC\\ListScreenRepositoryWritable' => $dir . '/classes/ListScreenRepositoryWritable.php',
254
  'AC\\ListScreenRepository\\Database' => $dir . '/classes/ListScreenRepository/Database.php',
255
  'AC\\ListScreenRepository\\Filter' => $dir . '/classes/ListScreenRepository/Filter.php',
 
256
  'AC\\ListScreenRepository\\Filter\\HasKey' => $dir . '/classes/ListScreenRepository/Filter/HasKey.php',
 
257
  'AC\\ListScreenRepository\\Filter\\Permission' => $dir . '/classes/ListScreenRepository/Filter/Permission.php',
258
  'AC\\ListScreenRepository\\Rule' => $dir . '/classes/ListScreenRepository/Rule.php',
259
  'AC\\ListScreenRepository\\Rule\\EqualGroup' => $dir . '/classes/ListScreenRepository/Rule/EqualGroup.php',
@@ -277,9 +292,13 @@ return array (
277
  'AC\\ListTable' => $dir . '/classes/ListTable.php',
278
  'AC\\ListTableFactory' => $dir . '/classes/ListTableFactory.php',
279
  'AC\\ListTable\\Comment' => $dir . '/classes/ListTable/Comment.php',
 
 
 
280
  'AC\\ListTable\\Post' => $dir . '/classes/ListTable/Post.php',
281
  'AC\\ListTable\\Taxonomy' => $dir . '/classes/ListTable/Taxonomy.php',
282
  'AC\\ListTable\\User' => $dir . '/classes/ListTable/User.php',
 
283
  'AC\\Message' => $dir . '/classes/Message.php',
284
  'AC\\Message\\InlineMessage' => $dir . '/classes/Message/InlineMessage.php',
285
  'AC\\Message\\Notice' => $dir . '/classes/Message/Notice.php',
@@ -319,10 +338,10 @@ return array (
319
  'AC\\Request' => $dir . '/classes/Request.php',
320
  'AC\\Request\\Parameters' => $dir . '/classes/Request/Parameters.php',
321
  'AC\\Response\\Json' => $dir . '/classes/Response/Json.php',
 
322
  'AC\\Screen' => $dir . '/classes/Screen.php',
323
  'AC\\ScreenController' => $dir . '/classes/ScreenController.php',
324
  'AC\\Screen\\QuickEdit' => $dir . '/classes/Screen/QuickEdit.php',
325
- 'AC\\Service\\Storage' => $dir . '/classes/Service/Storage.php',
326
  'AC\\Settings\\Column' => $dir . '/classes/Settings/Column.php',
327
  'AC\\Settings\\Column\\ActionIcons' => $dir . '/classes/Settings/Column/ActionIcons.php',
328
  'AC\\Settings\\Column\\AttachmentDisplay' => $dir . '/classes/Settings/Column/AttachmentDisplay.php',
@@ -356,6 +375,7 @@ return array (
356
  'AC\\Settings\\Column\\Post' => $dir . '/classes/Settings/Column/Post.php',
357
  'AC\\Settings\\Column\\PostFormatIcon' => $dir . '/classes/Settings/Column/PostFormatIcon.php',
358
  'AC\\Settings\\Column\\PostLink' => $dir . '/classes/Settings/Column/PostLink.php',
 
359
  'AC\\Settings\\Column\\PostType' => $dir . '/classes/Settings/Column/PostType.php',
360
  'AC\\Settings\\Column\\Pro' => $dir . '/classes/Settings/Column/Pro.php',
361
  'AC\\Settings\\Column\\Pro\\BulkEditing' => $dir . '/classes/Settings/Column/Pro/BulkEditing.php',
@@ -391,7 +411,6 @@ return array (
391
  'AC\\Storage\\Timestamp' => $dir . '/classes/Storage/Timestamp.php',
392
  'AC\\Storage\\Transaction' => $dir . '/classes/Storage/Transaction.php',
393
  'AC\\Storage\\UserMeta' => $dir . '/classes/Storage/UserMeta.php',
394
- 'AC\\TableLoader' => $dir . '/classes/TableLoader.php',
395
  'AC\\Table\\Button' => $dir . '/classes/Table/Button.php',
396
  'AC\\Table\\Preference' => $dir . '/classes/Table/Preference.php',
397
  'AC\\Table\\Screen' => $dir . '/classes/Table/Screen.php',
@@ -414,4 +433,5 @@ return array (
414
  'AC\\Type\\Url\\UtmTags' => $dir . '/classes/Type/Url/UtmTags.php',
415
  'AC\\TypedArrayIterator' => $dir . '/classes/TypedArrayIterator.php',
416
  'AC\\View' => $dir . '/classes/View.php',
 
417
  );
17
  'AC\\Admin\\Helpable' => $dir . '/classes/Admin/Helpable.php',
18
  'AC\\Admin\\Menu' => $dir . '/classes/Admin/Menu.php',
19
  'AC\\Admin\\Menu\\Item' => $dir . '/classes/Admin/Menu/Item.php',
20
+ 'AC\\Admin\\Notice\\ReadOnly' => $dir . '/classes/Admin/Notice/ReadOnly.php',
21
  'AC\\Admin\\Page' => $dir . '/classes/Admin/Page.php',
22
  'AC\\Admin\\PageCollection' => $dir . '/classes/Admin/PageCollection.php',
23
  'AC\\Admin\\Page\\Addons' => $dir . '/classes/Admin/Page/Addons.php',
24
  'AC\\Admin\\Page\\Columns' => $dir . '/classes/Admin/Page/Columns.php',
25
  'AC\\Admin\\Page\\Help' => $dir . '/classes/Admin/Page/Help.php',
26
  'AC\\Admin\\Page\\Settings' => $dir . '/classes/Admin/Page/Settings.php',
27
+ 'AC\\Admin\\Preference\\ListScreen' => $dir . '/classes/Admin/Preference/ListScreen.php',
28
  'AC\\Admin\\Preference\\ScreenOptions' => $dir . '/classes/Admin/Preference/ScreenOptions.php',
29
  'AC\\Admin\\ScreenOption' => $dir . '/classes/Admin/ScreenOption.php',
30
  'AC\\Admin\\ScreenOption\\ColumnId' => $dir . '/classes/Admin/ScreenOption/ColumnId.php',
43
  'AC\\Ajax\\Handler' => $dir . '/classes/Ajax/Handler.php',
44
  'AC\\Ajax\\NullHandler' => $dir . '/classes/Ajax/NullHandler.php',
45
  'AC\\Ajax\\NumberFormat' => $dir . '/classes/Ajax/NumberFormat.php',
46
+ 'AC\\ApplyFilter' => $dir . '/classes/ApplyFilter.php',
47
  'AC\\ArrayIterator' => $dir . '/classes/ArrayIterator.php',
48
  'AC\\Asset\\Assets' => $dir . '/classes/Asset/Assets.php',
49
  'AC\\Asset\\Enqueueable' => $dir . '/classes/Asset/Enqueueable.php',
63
  'AC\\Collection' => $dir . '/classes/Collection.php',
64
  'AC\\Column' => $dir . '/classes/Column.php',
65
  'AC\\ColumnGroups' => $dir . '/classes/ColumnGroups.php',
66
+ 'AC\\ColumnRepository' => $dir . '/classes/ColumnRepository.php',
67
+ 'AC\\ColumnRepository\\Filter' => $dir . '/classes/ColumnRepository/Filter.php',
68
+ 'AC\\ColumnRepository\\Sort' => $dir . '/classes/ColumnRepository/Sort.php',
69
  'AC\\Column\\Actions' => $dir . '/classes/Column/Actions.php',
70
  'AC\\Column\\AjaxValue' => $dir . '/classes/Column/AjaxValue.php',
71
  'AC\\Column\\Comment\\Agent' => $dir . '/classes/Column/Comment/Agent.php',
160
  'AC\\Column\\User\\DisplayName' => $dir . '/classes/Column/User/DisplayName.php',
161
  'AC\\Column\\User\\Email' => $dir . '/classes/Column/User/Email.php',
162
  'AC\\Column\\User\\FirstName' => $dir . '/classes/Column/User/FirstName.php',
163
+ 'AC\\Column\\User\\FirstPost' => $dir . '/classes/Column/User/FirstPost.php',
164
  'AC\\Column\\User\\FullName' => $dir . '/classes/Column/User/FullName.php',
165
  'AC\\Column\\User\\ID' => $dir . '/classes/Column/User/ID.php',
166
  'AC\\Column\\User\\LastName' => $dir . '/classes/Column/User/LastName.php',
167
+ 'AC\\Column\\User\\LastPost' => $dir . '/classes/Column/User/LastPost.php',
168
  'AC\\Column\\User\\Login' => $dir . '/classes/Column/User/Login.php',
169
  'AC\\Column\\User\\Name' => $dir . '/classes/Column/User/Name.php',
170
  'AC\\Column\\User\\Nicename' => $dir . '/classes/Column/User/Nicename.php',
187
  'AC\\Controller\\ColumnRequest\\Refresh' => $dir . '/classes/Controller/ColumnRequest/Refresh.php',
188
  'AC\\Controller\\ColumnRequest\\Select' => $dir . '/classes/Controller/ColumnRequest/Select.php',
189
  'AC\\Controller\\DefaultColumns' => $dir . '/classes/Controller/DefaultColumns.php',
 
190
  'AC\\Controller\\ListScreenRestoreColumns' => $dir . '/classes/Controller/ListScreenRestoreColumns.php',
191
+ 'AC\\Controller\\ListScreen\\Sanitize\\FormData' => $dir . '/classes/Controller/ListScreen/Sanitize/FormData.php',
192
+ 'AC\\Controller\\ListScreen\\Sanitize\\Title' => $dir . '/classes/Controller/ListScreen/Sanitize/Title.php',
193
  'AC\\Controller\\ListScreen\\Save' => $dir . '/classes/Controller/ListScreen/Save.php',
194
+ 'AC\\Controller\\Middleware\\ListScreenAdmin' => $dir . '/classes/Controller/Middleware/ListScreenAdmin.php',
195
+ 'AC\\Controller\\Middleware\\ListScreenTable' => $dir . '/classes/Controller/Middleware/ListScreenTable.php',
196
  'AC\\Controller\\RedirectAddonStatus' => $dir . '/classes/Controller/RedirectAddonStatus.php',
197
  'AC\\Controller\\RestoreSettingsRequest' => $dir . '/classes/Controller/RestoreSettingsRequest.php',
198
+ 'AC\\Controller\\TableListScreenSetter' => $dir . '/classes/Controller/TableListScreenSetter.php',
199
  'AC\\DefaultColumnsRepository' => $dir . '/classes/DefaultColumnsRepository.php',
200
  'AC\\Dependencies' => $dir . '/classes/Dependencies.php',
201
  'AC\\Deprecated\\Hook' => $dir . '/classes/Deprecated/Hook.php',
249
  'AC\\Integration\\ACF' => $dir . '/classes/Integration/ACF.php',
250
  'AC\\Integration\\BuddyPress' => $dir . '/classes/Integration/BuddyPress.php',
251
  'AC\\Integration\\EventsCalendar' => $dir . '/classes/Integration/EventsCalendar.php',
252
+ 'AC\\Integration\\GravityForms' => $dir . '/classes/Integration/GravityForms.php',
253
  'AC\\Integration\\MetaBox' => $dir . '/classes/Integration/MetaBox.php',
254
  'AC\\Integration\\NinjaForms' => $dir . '/classes/Integration/NinjaForms.php',
255
  'AC\\Integration\\Pods' => $dir . '/classes/Integration/Pods.php',
266
  'AC\\ListScreenRepositoryWritable' => $dir . '/classes/ListScreenRepositoryWritable.php',
267
  'AC\\ListScreenRepository\\Database' => $dir . '/classes/ListScreenRepository/Database.php',
268
  'AC\\ListScreenRepository\\Filter' => $dir . '/classes/ListScreenRepository/Filter.php',
269
+ 'AC\\ListScreenRepository\\Filter\\ExcludeNetwork' => $dir . '/classes/ListScreenRepository/Filter/ExcludeNetwork.php',
270
  'AC\\ListScreenRepository\\Filter\\HasKey' => $dir . '/classes/ListScreenRepository/Filter/HasKey.php',
271
+ 'AC\\ListScreenRepository\\Filter\\Network' => $dir . '/classes/ListScreenRepository/Filter/Network.php',
272
  'AC\\ListScreenRepository\\Filter\\Permission' => $dir . '/classes/ListScreenRepository/Filter/Permission.php',
273
  'AC\\ListScreenRepository\\Rule' => $dir . '/classes/ListScreenRepository/Rule.php',
274
  'AC\\ListScreenRepository\\Rule\\EqualGroup' => $dir . '/classes/ListScreenRepository/Rule/EqualGroup.php',
292
  'AC\\ListTable' => $dir . '/classes/ListTable.php',
293
  'AC\\ListTableFactory' => $dir . '/classes/ListTableFactory.php',
294
  'AC\\ListTable\\Comment' => $dir . '/classes/ListTable/Comment.php',
295
+ 'AC\\ListTable\\Media' => $dir . '/classes/ListTable/Media.php',
296
+ 'AC\\ListTable\\NetworkSite' => $dir . '/classes/ListTable/NetworkSite.php',
297
+ 'AC\\ListTable\\NetworkUser' => $dir . '/classes/ListTable/NetworkUser.php',
298
  'AC\\ListTable\\Post' => $dir . '/classes/ListTable/Post.php',
299
  'AC\\ListTable\\Taxonomy' => $dir . '/classes/ListTable/Taxonomy.php',
300
  'AC\\ListTable\\User' => $dir . '/classes/ListTable/User.php',
301
+ 'AC\\ListTable\\WpListTableTrait' => $dir . '/classes/ListTable/WpListTableTrait.php',
302
  'AC\\Message' => $dir . '/classes/Message.php',
303
  'AC\\Message\\InlineMessage' => $dir . '/classes/Message/InlineMessage.php',
304
  'AC\\Message\\Notice' => $dir . '/classes/Message/Notice.php',
338
  'AC\\Request' => $dir . '/classes/Request.php',
339
  'AC\\Request\\Parameters' => $dir . '/classes/Request/Parameters.php',
340
  'AC\\Response\\Json' => $dir . '/classes/Response/Json.php',
341
+ 'AC\\Sanitize' => $dir . '/classes/Sanitize.php',
342
  'AC\\Screen' => $dir . '/classes/Screen.php',
343
  'AC\\ScreenController' => $dir . '/classes/ScreenController.php',
344
  'AC\\Screen\\QuickEdit' => $dir . '/classes/Screen/QuickEdit.php',
 
345
  'AC\\Settings\\Column' => $dir . '/classes/Settings/Column.php',
346
  'AC\\Settings\\Column\\ActionIcons' => $dir . '/classes/Settings/Column/ActionIcons.php',
347
  'AC\\Settings\\Column\\AttachmentDisplay' => $dir . '/classes/Settings/Column/AttachmentDisplay.php',
375
  'AC\\Settings\\Column\\Post' => $dir . '/classes/Settings/Column/Post.php',
376
  'AC\\Settings\\Column\\PostFormatIcon' => $dir . '/classes/Settings/Column/PostFormatIcon.php',
377
  'AC\\Settings\\Column\\PostLink' => $dir . '/classes/Settings/Column/PostLink.php',
378
+ 'AC\\Settings\\Column\\PostStatus' => $dir . '/classes/Settings/Column/PostStatus.php',
379
  'AC\\Settings\\Column\\PostType' => $dir . '/classes/Settings/Column/PostType.php',
380
  'AC\\Settings\\Column\\Pro' => $dir . '/classes/Settings/Column/Pro.php',
381
  'AC\\Settings\\Column\\Pro\\BulkEditing' => $dir . '/classes/Settings/Column/Pro/BulkEditing.php',
411
  'AC\\Storage\\Timestamp' => $dir . '/classes/Storage/Timestamp.php',
412
  'AC\\Storage\\Transaction' => $dir . '/classes/Storage/Transaction.php',
413
  'AC\\Storage\\UserMeta' => $dir . '/classes/Storage/UserMeta.php',
 
414
  'AC\\Table\\Button' => $dir . '/classes/Table/Button.php',
415
  'AC\\Table\\Preference' => $dir . '/classes/Table/Preference.php',
416
  'AC\\Table\\Screen' => $dir . '/classes/Table/Screen.php',
433
  'AC\\Type\\Url\\UtmTags' => $dir . '/classes/Type/Url/UtmTags.php',
434
  'AC\\TypedArrayIterator' => $dir . '/classes/TypedArrayIterator.php',
435
  'AC\\View' => $dir . '/classes/View.php',
436
+ 'AC\\WpListTableFactory' => $dir . '/classes/WpListTableFactory.php',
437
  );
languages/codepress-admin-columns-ar_AR.mo CHANGED
Binary file
languages/codepress-admin-columns-ar_AR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2020-11-07 23:53:05+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -11,6 +11,74 @@ msgstr ""
11
  "Language: ar\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  #: templates/admin/edit-actions.php:40
15
  msgid "Key"
16
  msgstr ""
@@ -19,10 +87,11 @@ msgstr ""
19
  msgid "Export table contents to CSV"
20
  msgstr ""
21
 
22
- #: templates/tooltip/export.php:25 templates/tooltip/export-disabled.php:17
23
- #: templates/tooltip/smart-filtering.php:28 templates/tooltip/sorting.php:29
24
- #: templates/tooltip/bulk-editing.php:25
25
  #: templates/tooltip/inline-editing.php:25
 
 
 
26
  msgid "Learn more &raquo;"
27
  msgstr ""
28
 
@@ -50,7 +119,7 @@ msgstr ""
50
  msgid "List Screen ID"
51
  msgstr ""
52
 
53
- #: classes/Settings/Column/User.php:78 classes/Column/User/FullName.php:11
54
  msgid "Full Name"
55
  msgstr ""
56
 
@@ -106,23 +175,23 @@ msgstr ""
106
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
107
  msgstr ""
108
 
109
- #: templates/tooltip/filtering.php:19
110
  msgid "Smart Filters"
111
  msgstr ""
112
 
113
- #: templates/tooltip/filtering.php:19
114
  msgid "We recommend using %s"
115
  msgstr ""
116
 
117
- #: templates/tooltip/filtering.php:16
118
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
119
  msgstr ""
120
 
121
- #: templates/tooltip/filtering.php:14
122
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
123
  msgstr ""
124
 
125
- #: templates/tooltip/filtering.php:13
126
  msgid "%s is an improved version of %s."
127
  msgstr ""
128
 
@@ -217,19 +286,19 @@ msgstr ""
217
  msgid "No deprecated hooks or filters found."
218
  msgstr ""
219
 
 
 
220
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
221
- #: templates/tooltip/filtering.php:13 templates/tooltip/filtering.php:16
222
- #: templates/tooltip/smart-filtering.php:6
223
  msgid "Smart Filtering"
224
  msgstr ""
225
 
226
- #: classes/Settings/Column/Pro/BulkEditing.php:11
227
  #: templates/tooltip/bulk-editing.php:7
 
228
  msgid "Bulk Editing"
229
  msgstr ""
230
 
231
- #: classes/Settings/Column/Pro/InlineEditing.php:11
232
  #: templates/tooltip/inline-editing.php:7
 
233
  msgid "Inline Editing"
234
  msgstr ""
235
 
@@ -309,11 +378,11 @@ msgstr ""
309
  msgid "View Comment"
310
  msgstr ""
311
 
312
- #: classes/Admin/Asset/Columns.php:66
313
  msgid "The column could not be loaded because of an unknown error"
314
  msgstr ""
315
 
316
- #: classes/Admin/Asset/Columns.php:65
317
  msgid "There was an error during saving the column settings."
318
  msgstr ""
319
 
@@ -349,7 +418,7 @@ msgstr ""
349
  msgid "Search any content"
350
  msgstr ""
351
 
352
- #: templates/settings/setting-label-icons.php:69
353
  msgid "Select"
354
  msgstr ""
355
 
@@ -381,8 +450,8 @@ msgstr ""
381
  msgid "Value: Should contain a URL."
382
  msgstr ""
383
 
384
- #: classes/Settings/Column/CustomFieldType.php:122
385
  #: templates/admin/help-tab/custom-fields.php:54
 
386
  msgid "URL"
387
  msgstr ""
388
 
@@ -410,15 +479,16 @@ msgstr ""
410
  msgid "Manage columns for your event, organizer or venue overviews."
411
  msgstr ""
412
 
413
- #: classes/Settings/Column/Pro/Sorting.php:11 templates/tooltip/sorting.php:7
 
414
  msgid "Sorting"
415
  msgstr ""
416
 
417
- #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:13
418
  msgid "Filtering"
419
  msgstr ""
420
 
421
- #: classes/Settings/Column/Pro/Export.php:11 templates/tooltip/export.php:7
422
  msgid "Export"
423
  msgstr ""
424
 
@@ -474,9 +544,9 @@ msgstr ""
474
  msgid "Text Limit"
475
  msgstr ""
476
 
 
 
477
  #: classes/Settings/Column/MediaLink.php:64
478
- #: classes/Column/Media/Download.php:11 classes/Table/Screen.php:134
479
- #: classes/Table/Screen.php:136
480
  msgid "Download"
481
  msgstr ""
482
 
@@ -529,13 +599,13 @@ msgstr ""
529
  msgid "Site Options"
530
  msgstr ""
531
 
532
- #: classes/Settings/Column/Meta.php:129
533
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
 
534
  msgid "current"
535
  msgstr ""
536
 
537
- #: classes/Settings/Column/Meta.php:126
538
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
 
539
  msgid "Network Site:"
540
  msgstr ""
541
 
@@ -709,9 +779,9 @@ msgstr ""
709
  msgid "Auto"
710
  msgstr ""
711
 
712
- #: classes/Admin.php:150 classes/Settings/Column/User.php:54
713
  #: classes/Settings/Column/AttachmentDisplay.php:42
714
- #: classes/Settings/Column/Term.php:36 classes/Settings/Column/Comment.php:115
715
  #: classes/Settings/Column/Post.php:82
716
  msgid "Display"
717
  msgstr ""
@@ -744,8 +814,8 @@ msgstr ""
744
  msgid "Plain text"
745
  msgstr ""
746
 
747
- #: classes/Settings/Column/Password.php:23
748
  #: classes/Column/Post/PasswordProtected.php:21
 
749
  msgid "Password"
750
  msgstr ""
751
 
@@ -837,18 +907,18 @@ msgstr ""
837
  msgid "Number of Fields"
838
  msgstr ""
839
 
840
- #: classes/Settings/Column/CustomFieldType.php:127
841
  #: templates/admin/help-tab/custom-fields.php:50
 
842
  msgid "True / False"
843
  msgstr ""
844
 
845
- #: classes/Settings/Column/CustomFieldType.php:126
846
  #: templates/admin/help-tab/custom-fields.php:26
 
847
  msgid "Has Content"
848
  msgstr ""
849
 
850
- #: classes/Settings/Column/CustomFieldType.php:123
851
  #: templates/admin/help-tab/custom-fields.php:42
 
852
  msgid "Number"
853
  msgstr ""
854
 
@@ -865,8 +935,8 @@ msgstr ""
865
  msgid "Field"
866
  msgstr ""
867
 
868
- #: classes/Settings/Column/CharacterLimit.php:29
869
  #: classes/Settings/Column/NumberOfItems.php:33
 
870
  #: classes/Settings/Column/WordLimit.php:35
871
  msgid "Leave empty for no limit"
872
  msgstr ""
@@ -875,8 +945,8 @@ msgstr ""
875
  msgid "Maximum number of characters"
876
  msgstr ""
877
 
878
- #: classes/Settings/Column/StringLimit.php:36
879
  #: classes/Settings/Column/CharacterLimit.php:28
 
880
  msgid "Character Limit"
881
  msgstr ""
882
 
@@ -1080,7 +1150,7 @@ msgstr ""
1080
  msgid "View %s screen"
1081
  msgstr ""
1082
 
1083
- #: classes/Admin/Asset/Columns.php:63
1084
  msgid "Invalid response."
1085
  msgstr "خطاء في الاستجابة."
1086
 
@@ -1100,7 +1170,7 @@ msgstr ""
1100
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1101
  msgstr ""
1102
 
1103
- #: classes/Admin/HelpTab/CustomField.php:11 classes/ColumnGroups.php:15
1104
  msgid "Custom Fields"
1105
  msgstr "حقول مخصصة"
1106
 
@@ -1117,8 +1187,8 @@ msgstr ""
1117
  msgid "https://www.admincolumns.com"
1118
  msgstr ""
1119
 
1120
- #: classes/Admin/Section/Partial/ShowEditButton.php:25
1121
  #: classes/Table/Screen.php:203
 
1122
  msgid "Edit columns"
1123
  msgstr "تحرير الأعمدة"
1124
 
@@ -1134,9 +1204,11 @@ msgstr ""
1134
  msgid "Users"
1135
  msgstr ""
1136
 
1137
- #: classes/Settings/Column/CustomFieldType.php:130
1138
- #: classes/ListScreenGroups.php:15 classes/ListScreen/Media.php:18
1139
  #: templates/admin/help-tab/custom-fields.php:34
 
 
 
 
1140
  msgid "Media"
1141
  msgstr ""
1142
 
@@ -1249,10 +1321,14 @@ msgstr "حفظ الإعدادات"
1249
  msgid "Add-ons"
1250
  msgstr ""
1251
 
1252
- #: classes/Admin/Page/Settings.php:22 classes/PluginActionLinks.php:40
1253
  msgid "Settings"
1254
  msgstr "الإعدادات"
1255
 
 
 
 
 
1256
  #: classes/Settings/Column/Image.php:90
1257
  msgid "Others"
1258
  msgstr ""
@@ -1283,8 +1359,8 @@ msgstr ""
1283
  msgid "Customize your Admin Columns settings."
1284
  msgstr "قم بتخصيص إعدادات Admin Columns."
1285
 
1286
- #: classes/Settings/Column/DateTimeFormat.php:45
1287
  #: classes/Admin/Section/General.php:36
 
1288
  msgid "General Settings"
1289
  msgstr "إعدادات عامة"
1290
 
@@ -1368,7 +1444,7 @@ msgstr "نظرة عامة"
1368
  msgid "Default settings successfully restored."
1369
  msgstr ""
1370
 
1371
- #: classes/Admin/Asset/Columns.php:62 classes/Controller/ColumnRequest.php:41
1372
  msgid "%s column is already present and can not be duplicated."
1373
  msgstr "عمود %s موجود بالفعل ولا يمكن استنساخه."
1374
 
@@ -1421,25 +1497,17 @@ msgid "Admin Columns Pro"
1421
  msgstr ""
1422
 
1423
  #. Plugin Name of the plugin
1424
- #: classes/Admin.php:126 classes/Admin/Page/Columns.php:57
1425
- #: classes/Check/Review.php:148 classes/Table/Screen.php:449
1426
  msgid "Admin Columns"
1427
  msgstr "Admin Columns"
1428
 
1429
- #: classes/Column/Placeholder.php:50
1430
- msgid "Find out more"
1431
- msgstr ""
1432
-
1433
  #: classes/Column/Placeholder.php:47
1434
- msgid "Admin Columns Pro offers full %s integration, allowing you to easily display and edit %s fields from within your overview."
1435
  msgstr ""
1436
 
1437
  #: classes/Column/Placeholder.php:43
1438
- msgid "If you have a business or developer licence please download & install your %s add-on from the <a href='%s'>add-ons tab</a>."
1439
- msgstr ""
1440
-
1441
- #: classes/Column/Placeholder.php:39
1442
- msgid "The %s column is only available in Admin Columns Pro - Business or Developer."
1443
  msgstr ""
1444
 
1445
  #: classes/Settings/Column/PostLink.php:72
@@ -1466,7 +1534,7 @@ msgstr "هذا هو الاسم الذي سيظهر كترويسة العمود."
1466
  msgid "Label"
1467
  msgstr "التسمية"
1468
 
1469
- #: classes/Settings/Column/Type.php:36 templates/admin/edit-column.php:52
1470
  msgid "Name"
1471
  msgstr ""
1472
 
@@ -1490,15 +1558,15 @@ msgstr "بريد المستخدم"
1490
  msgid "User Login"
1491
  msgstr "اسم الدخول"
1492
 
1493
- #: classes/Settings/Column/User.php:79 classes/Column/User/LastName.php:14
1494
  msgid "Last Name"
1495
  msgstr "الاسم الأخير"
1496
 
1497
- #: classes/Settings/Column/User.php:77 classes/Column/User/FirstName.php:14
1498
  msgid "First Name"
1499
  msgstr "الاسم الأول"
1500
 
1501
- #: classes/Settings/Column/User.php:76 classes/Column/User/DisplayName.php:14
1502
  msgid "Display Name"
1503
  msgstr "اسم العرض"
1504
 
@@ -1518,8 +1586,8 @@ msgstr "قبل"
1518
  msgid "width"
1519
  msgstr "عرض"
1520
 
 
1521
  #: classes/Settings/Column/Image.php:112
1522
- #: classes/Settings/Column/CustomFieldType.php:171 classes/ColumnGroups.php:16
1523
  msgid "Custom"
1524
  msgstr "مخصوص"
1525
 
@@ -1551,8 +1619,8 @@ msgstr ""
1551
  msgid "Registered"
1552
  msgstr "مسجل"
1553
 
 
1554
  #: classes/Settings/Column/CustomFieldType.php:99
1555
- #: classes/Settings/Column/PostType.php:43 classes/ListScreenGroups.php:13
1556
  msgid "Post Type"
1557
  msgstr "نوع تدوبنة"
1558
 
@@ -1560,7 +1628,7 @@ msgstr "نوع تدوبنة"
1560
  msgid "Post Count"
1561
  msgstr "عدد التدوينات"
1562
 
1563
- #: classes/Settings/Column/User.php:80 classes/Column/User/Nickname.php:14
1564
  msgid "Nickname"
1565
  msgstr "الاسم المستعار"
1566
 
@@ -1572,7 +1640,7 @@ msgstr ""
1572
  msgid "Remove"
1573
  msgstr "إزالة"
1574
 
1575
- #: classes/Settings/Column/User.php:84 classes/Column/User/ID.php:14
1576
  msgid "User ID"
1577
  msgstr "رقم المستخدم"
1578
 
@@ -1584,7 +1652,7 @@ msgstr ""
1584
  msgid "Link to menu"
1585
  msgstr ""
1586
 
1587
- #: classes/Settings/Column/Taxonomy.php:51 classes/Column/Taxonomy.php:18
1588
  msgid "Taxonomy"
1589
  msgstr "التصنيف"
1590
 
@@ -1596,7 +1664,7 @@ msgstr "مثبت"
1596
  msgid "Status"
1597
  msgstr "الحالة"
1598
 
1599
- #: classes/Settings/Column/Term.php:31 classes/Column/Post/Slug.php:14
1600
  msgid "Slug"
1601
  msgstr "الاسم اللطيف (Slug)"
1602
 
@@ -1692,13 +1760,13 @@ msgstr "اختر حالة التعليق الذي تريد عرضه."
1692
  msgid "Comment status"
1693
  msgstr "حالة التعليق"
1694
 
1695
- #: classes/Settings/Column/CommentCount.php:58
1696
  #: classes/Column/Comment/Status.php:33
 
1697
  msgid "Spam"
1698
  msgstr "مزعج"
1699
 
1700
- #: classes/Settings/Column/CommentCount.php:57
1701
  #: classes/Column/Comment/Status.php:35
 
1702
  msgid "Pending"
1703
  msgstr "بالانتظار"
1704
 
@@ -1718,20 +1786,20 @@ msgstr ""
1718
  msgid "Edit User Profile"
1719
  msgstr ""
1720
 
1721
- #: classes/Settings/Column/TermLink.php:36
1722
- #: classes/Settings/Column/UserLink.php:78
1723
  #: classes/Settings/Column/PostLink.php:68
 
1724
  #: classes/Settings/Column/CommentLink.php:65
1725
  #: classes/Settings/Column/Separator.php:28
1726
- #: classes/Settings/Column/MediaLink.php:62
1727
  msgid "None"
1728
  msgstr ""
1729
 
1730
- #: classes/Settings/Column/TermLink.php:27
1731
- #: classes/Settings/Column/UserLink.php:60
1732
  #: classes/Settings/Column/PostLink.php:58
 
1733
  #: classes/Settings/Column/CommentLink.php:56
1734
- #: classes/Settings/Column/MediaLink.php:53
1735
  msgid "Link To"
1736
  msgstr ""
1737
 
@@ -1743,8 +1811,8 @@ msgstr ""
1743
  msgid "Preview"
1744
  msgstr ""
1745
 
1746
- #: classes/Settings/Column/Image.php:41 classes/Settings/Column/Width.php:53
1747
- #: classes/Column/Media/Width.php:16
1748
  msgid "Width"
1749
  msgstr "عرض"
1750
 
@@ -1752,7 +1820,7 @@ msgstr "عرض"
1752
  msgid "Mime Type"
1753
  msgstr ""
1754
 
1755
- #: classes/Settings/Column/Image.php:47 classes/Column/Media/Height.php:16
1756
  msgid "Height"
1757
  msgstr "إرتفاع"
1758
 
@@ -1795,7 +1863,7 @@ msgstr "ISO"
1795
 
1796
  #: classes/Settings/Column/ExifData.php:78
1797
  msgid "Focal Length"
1798
- msgstr "بعد بؤري"
1799
 
1800
  #: classes/Settings/Column/ExifData.php:76
1801
  msgid "Timestamp"
@@ -1821,7 +1889,7 @@ msgstr ""
1821
  msgid "Dimensions"
1822
  msgstr "أبعاد"
1823
 
1824
- #: classes/Settings/Column/ExifData.php:75 classes/Column/Media/Caption.php:14
1825
  msgid "Caption"
1826
  msgstr "كلمات توضيحية"
1827
 
@@ -1829,17 +1897,17 @@ msgstr "كلمات توضيحية"
1829
  msgid "Available Sizes"
1830
  msgstr "الأحجام المتوفرة"
1831
 
1832
- #: classes/Settings/Column/MediaLink.php:63 templates/admin/edit-menu.php:27
1833
  msgid "View"
1834
  msgstr "عرض"
1835
 
1836
- #: classes/Settings/Column/CommentCount.php:59
1837
  #: classes/Column/Comment/Status.php:31 classes/Column/Comment/Status.php:32
 
1838
  msgid "Trash"
1839
  msgstr "المهملات"
1840
 
1841
- #: classes/Column/Media/Description.php:16
1842
  #: classes/Column/User/Description.php:15
 
1843
  msgid "Description"
1844
  msgstr "وصف"
1845
 
@@ -1851,18 +1919,18 @@ msgstr "هذا سيحدد كيف سيتم عرض القيمة."
1851
  msgid "Field Type"
1852
  msgstr "نوع الحقل"
1853
 
1854
- #: classes/Settings/Column/CustomFieldType.php:136
1855
  #: templates/admin/help-tab/custom-fields.php:38
 
1856
  msgid "Multiple Values"
1857
  msgstr "قيم متعددة"
1858
 
1859
- #: classes/Settings/Column/CustomFieldType.php:121
1860
  #: templates/admin/help-tab/custom-fields.php:30
 
1861
  msgid "Image"
1862
  msgstr "صورة"
1863
 
1864
- #: classes/Column/Post/Excerpt.php:15
1865
  #: templates/admin/help-tab/custom-fields.php:22
 
1866
  msgid "Excerpt"
1867
  msgstr "مقتطف"
1868
 
@@ -1870,17 +1938,17 @@ msgstr "مقتطف"
1870
  msgid "Counter"
1871
  msgstr "عداد"
1872
 
1873
- #: classes/Settings/Column/CustomFieldType.php:118
1874
  #: templates/admin/help-tab/custom-fields.php:10
 
1875
  msgid "Color"
1876
  msgstr "لون"
1877
 
 
 
 
 
1878
  #: classes/Settings/Column/Image.php:72
1879
- #: classes/Settings/Column/CustomFieldType.php:186
1880
  #: classes/Settings/Column/Separator.php:25
1881
- #: classes/Settings/Column/NumberFormat.php:88 classes/ColumnGroups.php:13
1882
- #: classes/Helper/Select/Group/CustomField/MultiSite.php:53
1883
- #: templates/admin/help-tab/custom-fields.php:6
1884
  msgid "Default"
1885
  msgstr "افتراضي"
1886
 
@@ -1892,16 +1960,17 @@ msgstr "حقل مخصوص"
1892
  msgid "Word Count"
1893
  msgstr ""
1894
 
 
 
1895
  #: classes/Settings/Column/CustomFieldType.php:103
1896
  #: classes/Settings/Column/CustomFieldType.php:132
1897
- #: classes/Column/Comment/User.php:15 classes/ListScreen/User.php:15
1898
- #: templates/admin/help-tab/custom-fields.php:58
1899
  msgid "User"
1900
  msgstr "مستخدم"
1901
 
 
1902
  #: classes/Settings/Column/CustomFieldType.php:77
1903
  #: classes/Settings/Column/Type.php:33 classes/Settings/Column/Type.php:42
1904
- #: classes/Column/Comment/Type.php:14 templates/admin/edit-column.php:53
1905
  msgid "Type"
1906
  msgstr "نوع"
1907
 
@@ -1909,9 +1978,9 @@ msgstr "نوع"
1909
  msgid "In Reply To"
1910
  msgstr "ردا على"
1911
 
1912
- #: classes/Settings/Column/CustomFieldType.php:131
1913
- #: classes/Column/Comment/Post.php:15
1914
  #: templates/admin/help-tab/custom-fields.php:46
 
 
1915
  msgid "Post"
1916
  msgstr ""
1917
 
@@ -1919,9 +1988,9 @@ msgstr ""
1919
  msgid "Content"
1920
  msgstr ""
1921
 
1922
- #: classes/Settings/Column/CustomFieldType.php:119
1923
- #: classes/Settings/Column/Comment.php:128
1924
  #: templates/admin/help-tab/custom-fields.php:18
 
 
1925
  msgid "Date"
1926
  msgstr "تاريخ"
1927
 
@@ -1933,8 +2002,8 @@ msgstr ""
1933
  msgid "Date GMT"
1934
  msgstr "تاريخ GMT"
1935
 
1936
- #: classes/Settings/Column/Comment.php:126 classes/Settings/Column/Post.php:93
1937
  #: classes/Column/Post/AuthorName.php:18
 
1938
  msgid "Author"
1939
  msgstr "الكاتب"
1940
 
@@ -1950,8 +2019,8 @@ msgstr ""
1950
  msgid "Author IP"
1951
  msgstr "عنوان آي بي الكاتب"
1952
 
1953
- #: classes/Settings/Column/Comment.php:127
1954
  #: classes/Column/Comment/AuthorEmail.php:14
 
1955
  msgid "Author Email"
1956
  msgstr ""
1957
 
@@ -1959,8 +2028,8 @@ msgstr ""
1959
  msgid "Avatar"
1960
  msgstr "الصورة الرمزية Avatar"
1961
 
 
1962
  #: classes/Settings/Column/CommentCount.php:56
1963
- #: classes/Column/Comment/Status.php:34 classes/Column/Comment/Approved.php:14
1964
  msgid "Approved"
1965
  msgstr "موافق عليه"
1966
 
@@ -1976,28 +2045,28 @@ msgstr "تحرير"
1976
  msgid "Edit Comment"
1977
  msgstr ""
1978
 
1979
- #: classes/Settings/Column/Term.php:32 classes/Settings/Column/Comment.php:125
1980
- #: classes/Settings/Column/Post.php:92 classes/Column/Post/ID.php:15
1981
- #: classes/Column/Media/ID.php:14 classes/Column/Comment/ID.php:14
1982
- #: templates/admin/edit-actions.php:41
1983
  msgid "ID"
1984
  msgstr "رقم"
1985
 
1986
- #: classes/Settings/Column/ActionIcons.php:23
1987
- #: classes/Settings/Column/Toggle.php:15
1988
- #: classes/Settings/Column/StatusIcon.php:25 classes/Settings/Column/Pro.php:24
1989
  #: classes/Settings/Column/MissingImageSize.php:23
1990
- #: classes/Settings/Column/PostFormatIcon.php:25 classes/Helper/Icon.php:62
1991
- #: templates/admin/side-feedback.php:14
 
 
1992
  msgid "No"
1993
  msgstr ""
1994
 
1995
- #: classes/Settings/Column/ActionIcons.php:22
1996
- #: classes/Settings/Column/Toggle.php:14
1997
- #: classes/Settings/Column/StatusIcon.php:24 classes/Settings/Column/Pro.php:23
1998
  #: classes/Settings/Column/MissingImageSize.php:22
1999
- #: classes/Settings/Column/PostFormatIcon.php:24 classes/Helper/Icon.php:46
2000
- #: templates/admin/side-feedback.php:13
 
 
2001
  msgid "Yes"
2002
  msgstr ""
2003
 
2
  # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2021-03-25 04:38:20+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
11
  "Language: ar\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
14
+ #: classes/Column/Placeholder.php:40
15
+ msgid "Download & install the %s add-on from the <a href='%s'>add-ons tab</a>."
16
+ msgstr ""
17
+
18
+ #: classes/Column/Placeholder.php:38
19
+ msgid "The %s column is only available if you have installed the add-on."
20
+ msgstr ""
21
+
22
+ #: templates/settings/setting-label-icons.php:51
23
+ msgid "Misc"
24
+ msgstr ""
25
+
26
+ #: templates/settings/setting-label-icons.php:50
27
+ msgid "Notifications"
28
+ msgstr ""
29
+
30
+ #: templates/settings/setting-label-icons.php:49
31
+ msgid "Widgets"
32
+ msgstr ""
33
+
34
+ #: templates/settings/setting-label-icons.php:47
35
+ msgid "Products"
36
+ msgstr ""
37
+
38
+ #: templates/settings/setting-label-icons.php:46
39
+ msgid "Buddicons"
40
+ msgstr ""
41
+
42
+ #: templates/settings/setting-label-icons.php:45
43
+ msgid "WordPress.org"
44
+ msgstr ""
45
+
46
+ #: templates/settings/setting-label-icons.php:44
47
+ msgid "Social"
48
+ msgstr ""
49
+
50
+ #: templates/settings/setting-label-icons.php:42
51
+ msgid "Posts Screen"
52
+ msgstr ""
53
+
54
+ #: templates/settings/setting-label-icons.php:41
55
+ msgid "TinyMCE"
56
+ msgstr ""
57
+
58
+ #: templates/settings/setting-label-icons.php:40
59
+ msgid "Block Editor"
60
+ msgstr ""
61
+
62
+ #: templates/settings/setting-label-icons.php:39
63
+ msgid "Databases"
64
+ msgstr ""
65
+
66
+ #: templates/settings/setting-label-icons.php:38
67
+ msgid "Image Editing"
68
+ msgstr ""
69
+
70
+ #: templates/settings/setting-label-icons.php:36
71
+ msgid "Post Formats"
72
+ msgstr ""
73
+
74
+ #: templates/settings/setting-label-icons.php:35
75
+ msgid "Welcome Screen"
76
+ msgstr ""
77
+
78
+ #: templates/settings/setting-label-icons.php:34
79
+ msgid "Admin Menu"
80
+ msgstr ""
81
+
82
  #: templates/admin/edit-actions.php:40
83
  msgid "Key"
84
  msgstr ""
87
  msgid "Export table contents to CSV"
88
  msgstr ""
89
 
90
+ #: templates/tooltip/export.php:25 templates/tooltip/sorting.php:29
 
 
91
  #: templates/tooltip/inline-editing.php:25
92
+ #: templates/tooltip/smart-filtering.php:28
93
+ #: templates/tooltip/bulk-editing.php:25
94
+ #: templates/tooltip/export-disabled.php:17
95
  msgid "Learn more &raquo;"
96
  msgstr ""
97
 
119
  msgid "List Screen ID"
120
  msgstr ""
121
 
122
+ #: classes/Column/User/FullName.php:11 classes/Settings/Column/User.php:78
123
  msgid "Full Name"
124
  msgstr ""
125
 
175
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
176
  msgstr ""
177
 
178
+ #: templates/tooltip/filtering.php:13
179
  msgid "Smart Filters"
180
  msgstr ""
181
 
182
+ #: templates/tooltip/filtering.php:13
183
  msgid "We recommend using %s"
184
  msgstr ""
185
 
186
+ #: templates/tooltip/filtering.php:20
187
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
188
  msgstr ""
189
 
190
+ #: templates/tooltip/filtering.php:17
191
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
192
  msgstr ""
193
 
194
+ #: templates/tooltip/filtering.php:16
195
  msgid "%s is an improved version of %s."
196
  msgstr ""
197
 
286
  msgid "No deprecated hooks or filters found."
287
  msgstr ""
288
 
289
+ #: templates/tooltip/smart-filtering.php:6 templates/tooltip/filtering.php:16
290
+ #: templates/tooltip/filtering.php:20
291
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
 
 
292
  msgid "Smart Filtering"
293
  msgstr ""
294
 
 
295
  #: templates/tooltip/bulk-editing.php:7
296
+ #: classes/Settings/Column/Pro/BulkEditing.php:11
297
  msgid "Bulk Editing"
298
  msgstr ""
299
 
 
300
  #: templates/tooltip/inline-editing.php:7
301
+ #: classes/Settings/Column/Pro/InlineEditing.php:11
302
  msgid "Inline Editing"
303
  msgstr ""
304
 
378
  msgid "View Comment"
379
  msgstr ""
380
 
381
+ #: classes/Admin/Asset/Columns.php:65
382
  msgid "The column could not be loaded because of an unknown error"
383
  msgstr ""
384
 
385
+ #: classes/Admin/Asset/Columns.php:64
386
  msgid "There was an error during saving the column settings."
387
  msgstr ""
388
 
418
  msgid "Search any content"
419
  msgstr ""
420
 
421
+ #: templates/settings/setting-label-icons.php:72
422
  msgid "Select"
423
  msgstr ""
424
 
450
  msgid "Value: Should contain a URL."
451
  msgstr ""
452
 
 
453
  #: templates/admin/help-tab/custom-fields.php:54
454
+ #: classes/Settings/Column/CustomFieldType.php:122
455
  msgid "URL"
456
  msgstr ""
457
 
479
  msgid "Manage columns for your event, organizer or venue overviews."
480
  msgstr ""
481
 
482
+ #: templates/settings/setting-label-icons.php:43
483
+ #: templates/tooltip/sorting.php:7 classes/Settings/Column/Pro/Sorting.php:11
484
  msgid "Sorting"
485
  msgstr ""
486
 
487
+ #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:16
488
  msgid "Filtering"
489
  msgstr ""
490
 
491
+ #: templates/tooltip/export.php:7 classes/Settings/Column/Pro/Export.php:11
492
  msgid "Export"
493
  msgstr ""
494
 
544
  msgid "Text Limit"
545
  msgstr ""
546
 
547
+ #: classes/Table/Screen.php:134 classes/Table/Screen.php:136
548
+ #: classes/Column/Media/Download.php:11
549
  #: classes/Settings/Column/MediaLink.php:64
 
 
550
  msgid "Download"
551
  msgstr ""
552
 
599
  msgid "Site Options"
600
  msgstr ""
601
 
 
602
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
603
+ #: classes/Settings/Column/Meta.php:129
604
  msgid "current"
605
  msgstr ""
606
 
 
607
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
608
+ #: classes/Settings/Column/Meta.php:126
609
  msgid "Network Site:"
610
  msgstr ""
611
 
779
  msgid "Auto"
780
  msgstr ""
781
 
782
+ #: classes/Admin.php:150 classes/Settings/Column/Comment.php:115
783
  #: classes/Settings/Column/AttachmentDisplay.php:42
784
+ #: classes/Settings/Column/Term.php:36 classes/Settings/Column/User.php:54
785
  #: classes/Settings/Column/Post.php:82
786
  msgid "Display"
787
  msgstr ""
814
  msgid "Plain text"
815
  msgstr ""
816
 
 
817
  #: classes/Column/Post/PasswordProtected.php:21
818
+ #: classes/Settings/Column/Password.php:23
819
  msgid "Password"
820
  msgstr ""
821
 
907
  msgid "Number of Fields"
908
  msgstr ""
909
 
 
910
  #: templates/admin/help-tab/custom-fields.php:50
911
+ #: classes/Settings/Column/CustomFieldType.php:127
912
  msgid "True / False"
913
  msgstr ""
914
 
 
915
  #: templates/admin/help-tab/custom-fields.php:26
916
+ #: classes/Settings/Column/CustomFieldType.php:126
917
  msgid "Has Content"
918
  msgstr ""
919
 
 
920
  #: templates/admin/help-tab/custom-fields.php:42
921
+ #: classes/Settings/Column/CustomFieldType.php:123
922
  msgid "Number"
923
  msgstr ""
924
 
935
  msgid "Field"
936
  msgstr ""
937
 
 
938
  #: classes/Settings/Column/NumberOfItems.php:33
939
+ #: classes/Settings/Column/CharacterLimit.php:29
940
  #: classes/Settings/Column/WordLimit.php:35
941
  msgid "Leave empty for no limit"
942
  msgstr ""
945
  msgid "Maximum number of characters"
946
  msgstr ""
947
 
 
948
  #: classes/Settings/Column/CharacterLimit.php:28
949
+ #: classes/Settings/Column/StringLimit.php:36
950
  msgid "Character Limit"
951
  msgstr ""
952
 
1150
  msgid "View %s screen"
1151
  msgstr ""
1152
 
1153
+ #: classes/Admin/Asset/Columns.php:62
1154
  msgid "Invalid response."
1155
  msgstr "خطاء في الاستجابة."
1156
 
1170
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1171
  msgstr ""
1172
 
1173
+ #: classes/ColumnGroups.php:15 classes/Admin/HelpTab/CustomField.php:11
1174
  msgid "Custom Fields"
1175
  msgstr "حقول مخصصة"
1176
 
1187
  msgid "https://www.admincolumns.com"
1188
  msgstr ""
1189
 
 
1190
  #: classes/Table/Screen.php:203
1191
+ #: classes/Admin/Section/Partial/ShowEditButton.php:25
1192
  msgid "Edit columns"
1193
  msgstr "تحرير الأعمدة"
1194
 
1204
  msgid "Users"
1205
  msgstr ""
1206
 
 
 
1207
  #: templates/admin/help-tab/custom-fields.php:34
1208
+ #: templates/settings/setting-label-icons.php:37
1209
+ #: classes/ListScreenGroups.php:15
1210
+ #: classes/Settings/Column/CustomFieldType.php:130
1211
+ #: classes/ListScreen/Media.php:18
1212
  msgid "Media"
1213
  msgstr ""
1214
 
1321
  msgid "Add-ons"
1322
  msgstr ""
1323
 
1324
+ #: classes/PluginActionLinks.php:40 classes/Admin/Page/Settings.php:22
1325
  msgid "Settings"
1326
  msgstr "الإعدادات"
1327
 
1328
+ #: templates/settings/setting-label-icons.php:48
1329
+ msgid "Taxonomies"
1330
+ msgstr ""
1331
+
1332
  #: classes/Settings/Column/Image.php:90
1333
  msgid "Others"
1334
  msgstr ""
1359
  msgid "Customize your Admin Columns settings."
1360
  msgstr "قم بتخصيص إعدادات Admin Columns."
1361
 
 
1362
  #: classes/Admin/Section/General.php:36
1363
+ #: classes/Settings/Column/DateTimeFormat.php:45
1364
  msgid "General Settings"
1365
  msgstr "إعدادات عامة"
1366
 
1444
  msgid "Default settings successfully restored."
1445
  msgstr ""
1446
 
1447
+ #: classes/Admin/Asset/Columns.php:61 classes/Controller/ColumnRequest.php:41
1448
  msgid "%s column is already present and can not be duplicated."
1449
  msgstr "عمود %s موجود بالفعل ولا يمكن استنساخه."
1450
 
1497
  msgstr ""
1498
 
1499
  #. Plugin Name of the plugin
1500
+ #: classes/Admin.php:126 classes/Table/Screen.php:464
1501
+ #: classes/Admin/Page/Columns.php:57 classes/Check/Review.php:148
1502
  msgid "Admin Columns"
1503
  msgstr "Admin Columns"
1504
 
 
 
 
 
1505
  #: classes/Column/Placeholder.php:47
1506
+ msgid "Find out more"
1507
  msgstr ""
1508
 
1509
  #: classes/Column/Placeholder.php:43
1510
+ msgid "Admin Columns Pro offers full %s integration, allowing you to easily display and edit %s fields from within your overview."
 
 
 
 
1511
  msgstr ""
1512
 
1513
  #: classes/Settings/Column/PostLink.php:72
1534
  msgid "Label"
1535
  msgstr "التسمية"
1536
 
1537
+ #: templates/admin/edit-column.php:52 classes/Settings/Column/Type.php:36
1538
  msgid "Name"
1539
  msgstr ""
1540
 
1558
  msgid "User Login"
1559
  msgstr "اسم الدخول"
1560
 
1561
+ #: classes/Column/User/LastName.php:14 classes/Settings/Column/User.php:79
1562
  msgid "Last Name"
1563
  msgstr "الاسم الأخير"
1564
 
1565
+ #: classes/Column/User/FirstName.php:14 classes/Settings/Column/User.php:77
1566
  msgid "First Name"
1567
  msgstr "الاسم الأول"
1568
 
1569
+ #: classes/Column/User/DisplayName.php:14 classes/Settings/Column/User.php:76
1570
  msgid "Display Name"
1571
  msgstr "اسم العرض"
1572
 
1586
  msgid "width"
1587
  msgstr "عرض"
1588
 
1589
+ #: classes/ColumnGroups.php:16 classes/Settings/Column/CustomFieldType.php:171
1590
  #: classes/Settings/Column/Image.php:112
 
1591
  msgid "Custom"
1592
  msgstr "مخصوص"
1593
 
1619
  msgid "Registered"
1620
  msgstr "مسجل"
1621
 
1622
+ #: classes/ListScreenGroups.php:13 classes/Settings/Column/PostType.php:43
1623
  #: classes/Settings/Column/CustomFieldType.php:99
 
1624
  msgid "Post Type"
1625
  msgstr "نوع تدوبنة"
1626
 
1628
  msgid "Post Count"
1629
  msgstr "عدد التدوينات"
1630
 
1631
+ #: classes/Column/User/Nickname.php:14 classes/Settings/Column/User.php:80
1632
  msgid "Nickname"
1633
  msgstr "الاسم المستعار"
1634
 
1640
  msgid "Remove"
1641
  msgstr "إزالة"
1642
 
1643
+ #: classes/Column/User/ID.php:14 classes/Settings/Column/User.php:84
1644
  msgid "User ID"
1645
  msgstr "رقم المستخدم"
1646
 
1652
  msgid "Link to menu"
1653
  msgstr ""
1654
 
1655
+ #: classes/Column/Taxonomy.php:18 classes/Settings/Column/Taxonomy.php:51
1656
  msgid "Taxonomy"
1657
  msgstr "التصنيف"
1658
 
1664
  msgid "Status"
1665
  msgstr "الحالة"
1666
 
1667
+ #: classes/Column/Post/Slug.php:14 classes/Settings/Column/Term.php:31
1668
  msgid "Slug"
1669
  msgstr "الاسم اللطيف (Slug)"
1670
 
1760
  msgid "Comment status"
1761
  msgstr "حالة التعليق"
1762
 
 
1763
  #: classes/Column/Comment/Status.php:33
1764
+ #: classes/Settings/Column/CommentCount.php:58
1765
  msgid "Spam"
1766
  msgstr "مزعج"
1767
 
 
1768
  #: classes/Column/Comment/Status.php:35
1769
+ #: classes/Settings/Column/CommentCount.php:57
1770
  msgid "Pending"
1771
  msgstr "بالانتظار"
1772
 
1786
  msgid "Edit User Profile"
1787
  msgstr ""
1788
 
1789
+ #: classes/Settings/Column/MediaLink.php:62
 
1790
  #: classes/Settings/Column/PostLink.php:68
1791
+ #: classes/Settings/Column/UserLink.php:78
1792
  #: classes/Settings/Column/CommentLink.php:65
1793
  #: classes/Settings/Column/Separator.php:28
1794
+ #: classes/Settings/Column/TermLink.php:36
1795
  msgid "None"
1796
  msgstr ""
1797
 
1798
+ #: classes/Settings/Column/MediaLink.php:53
 
1799
  #: classes/Settings/Column/PostLink.php:58
1800
+ #: classes/Settings/Column/UserLink.php:60
1801
  #: classes/Settings/Column/CommentLink.php:56
1802
+ #: classes/Settings/Column/TermLink.php:27
1803
  msgid "Link To"
1804
  msgstr ""
1805
 
1811
  msgid "Preview"
1812
  msgstr ""
1813
 
1814
+ #: classes/Column/Media/Width.php:16 classes/Settings/Column/Image.php:41
1815
+ #: classes/Settings/Column/Width.php:53
1816
  msgid "Width"
1817
  msgstr "عرض"
1818
 
1820
  msgid "Mime Type"
1821
  msgstr ""
1822
 
1823
+ #: classes/Column/Media/Height.php:16 classes/Settings/Column/Image.php:47
1824
  msgid "Height"
1825
  msgstr "إرتفاع"
1826
 
1863
 
1864
  #: classes/Settings/Column/ExifData.php:78
1865
  msgid "Focal Length"
1866
+ msgstr "البعد البؤري"
1867
 
1868
  #: classes/Settings/Column/ExifData.php:76
1869
  msgid "Timestamp"
1889
  msgid "Dimensions"
1890
  msgstr "أبعاد"
1891
 
1892
+ #: classes/Column/Media/Caption.php:14 classes/Settings/Column/ExifData.php:75
1893
  msgid "Caption"
1894
  msgstr "كلمات توضيحية"
1895
 
1897
  msgid "Available Sizes"
1898
  msgstr "الأحجام المتوفرة"
1899
 
1900
+ #: templates/admin/edit-menu.php:27 classes/Settings/Column/MediaLink.php:63
1901
  msgid "View"
1902
  msgstr "عرض"
1903
 
 
1904
  #: classes/Column/Comment/Status.php:31 classes/Column/Comment/Status.php:32
1905
+ #: classes/Settings/Column/CommentCount.php:59
1906
  msgid "Trash"
1907
  msgstr "المهملات"
1908
 
 
1909
  #: classes/Column/User/Description.php:15
1910
+ #: classes/Column/Media/Description.php:16
1911
  msgid "Description"
1912
  msgstr "وصف"
1913
 
1919
  msgid "Field Type"
1920
  msgstr "نوع الحقل"
1921
 
 
1922
  #: templates/admin/help-tab/custom-fields.php:38
1923
+ #: classes/Settings/Column/CustomFieldType.php:136
1924
  msgid "Multiple Values"
1925
  msgstr "قيم متعددة"
1926
 
 
1927
  #: templates/admin/help-tab/custom-fields.php:30
1928
+ #: classes/Settings/Column/CustomFieldType.php:121
1929
  msgid "Image"
1930
  msgstr "صورة"
1931
 
 
1932
  #: templates/admin/help-tab/custom-fields.php:22
1933
+ #: classes/Column/Post/Excerpt.php:15
1934
  msgid "Excerpt"
1935
  msgstr "مقتطف"
1936
 
1938
  msgid "Counter"
1939
  msgstr "عداد"
1940
 
 
1941
  #: templates/admin/help-tab/custom-fields.php:10
1942
+ #: classes/Settings/Column/CustomFieldType.php:118
1943
  msgid "Color"
1944
  msgstr "لون"
1945
 
1946
+ #: templates/admin/help-tab/custom-fields.php:6
1947
+ #: classes/Helper/Select/Group/CustomField/MultiSite.php:53
1948
+ #: classes/ColumnGroups.php:13 classes/Settings/Column/CustomFieldType.php:186
1949
+ #: classes/Settings/Column/NumberFormat.php:88
1950
  #: classes/Settings/Column/Image.php:72
 
1951
  #: classes/Settings/Column/Separator.php:25
 
 
 
1952
  msgid "Default"
1953
  msgstr "افتراضي"
1954
 
1960
  msgid "Word Count"
1961
  msgstr ""
1962
 
1963
+ #: templates/admin/help-tab/custom-fields.php:58
1964
+ #: classes/Column/Comment/User.php:15
1965
  #: classes/Settings/Column/CustomFieldType.php:103
1966
  #: classes/Settings/Column/CustomFieldType.php:132
1967
+ #: classes/ListScreen/User.php:15
 
1968
  msgid "User"
1969
  msgstr "مستخدم"
1970
 
1971
+ #: templates/admin/edit-column.php:53 classes/Column/Comment/Type.php:14
1972
  #: classes/Settings/Column/CustomFieldType.php:77
1973
  #: classes/Settings/Column/Type.php:33 classes/Settings/Column/Type.php:42
 
1974
  msgid "Type"
1975
  msgstr "نوع"
1976
 
1978
  msgid "In Reply To"
1979
  msgstr "ردا على"
1980
 
 
 
1981
  #: templates/admin/help-tab/custom-fields.php:46
1982
+ #: classes/Column/Comment/Post.php:15
1983
+ #: classes/Settings/Column/CustomFieldType.php:131
1984
  msgid "Post"
1985
  msgstr ""
1986
 
1988
  msgid "Content"
1989
  msgstr ""
1990
 
 
 
1991
  #: templates/admin/help-tab/custom-fields.php:18
1992
+ #: classes/Settings/Column/Comment.php:128
1993
+ #: classes/Settings/Column/CustomFieldType.php:119
1994
  msgid "Date"
1995
  msgstr "تاريخ"
1996
 
2002
  msgid "Date GMT"
2003
  msgstr "تاريخ GMT"
2004
 
 
2005
  #: classes/Column/Post/AuthorName.php:18
2006
+ #: classes/Settings/Column/Comment.php:126 classes/Settings/Column/Post.php:93
2007
  msgid "Author"
2008
  msgstr "الكاتب"
2009
 
2019
  msgid "Author IP"
2020
  msgstr "عنوان آي بي الكاتب"
2021
 
 
2022
  #: classes/Column/Comment/AuthorEmail.php:14
2023
+ #: classes/Settings/Column/Comment.php:127
2024
  msgid "Author Email"
2025
  msgstr ""
2026
 
2028
  msgid "Avatar"
2029
  msgstr "الصورة الرمزية Avatar"
2030
 
2031
+ #: classes/Column/Comment/Approved.php:14 classes/Column/Comment/Status.php:34
2032
  #: classes/Settings/Column/CommentCount.php:56
 
2033
  msgid "Approved"
2034
  msgstr "موافق عليه"
2035
 
2045
  msgid "Edit Comment"
2046
  msgstr ""
2047
 
2048
+ #: templates/admin/edit-actions.php:41 classes/Column/Post/ID.php:15
2049
+ #: classes/Column/Comment/ID.php:14 classes/Column/Media/ID.php:14
2050
+ #: classes/Settings/Column/Comment.php:125 classes/Settings/Column/Term.php:32
2051
+ #: classes/Settings/Column/Post.php:92
2052
  msgid "ID"
2053
  msgstr "رقم"
2054
 
2055
+ #: templates/admin/side-feedback.php:14 classes/Helper/Icon.php:62
 
 
2056
  #: classes/Settings/Column/MissingImageSize.php:23
2057
+ #: classes/Settings/Column/ActionIcons.php:23
2058
+ #: classes/Settings/Column/StatusIcon.php:25
2059
+ #: classes/Settings/Column/Toggle.php:15 classes/Settings/Column/Pro.php:24
2060
+ #: classes/Settings/Column/PostFormatIcon.php:25
2061
  msgid "No"
2062
  msgstr ""
2063
 
2064
+ #: templates/admin/side-feedback.php:13 classes/Helper/Icon.php:46
 
 
2065
  #: classes/Settings/Column/MissingImageSize.php:22
2066
+ #: classes/Settings/Column/ActionIcons.php:22
2067
+ #: classes/Settings/Column/StatusIcon.php:24
2068
+ #: classes/Settings/Column/Toggle.php:14 classes/Settings/Column/Pro.php:23
2069
+ #: classes/Settings/Column/PostFormatIcon.php:24
2070
  msgid "Yes"
2071
  msgstr ""
2072
 
languages/codepress-admin-columns-bg_BG.mo CHANGED
Binary file
languages/codepress-admin-columns-bg_BG.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2020-09-09 12:50:33+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -11,6 +11,74 @@ msgstr ""
11
  "Language: bg\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  #: templates/admin/edit-actions.php:40
15
  msgid "Key"
16
  msgstr ""
@@ -19,10 +87,11 @@ msgstr ""
19
  msgid "Export table contents to CSV"
20
  msgstr ""
21
 
22
- #: templates/tooltip/export.php:25 templates/tooltip/export-disabled.php:17
23
- #: templates/tooltip/smart-filtering.php:28 templates/tooltip/sorting.php:29
24
- #: templates/tooltip/bulk-editing.php:25
25
  #: templates/tooltip/inline-editing.php:25
 
 
 
26
  msgid "Learn more &raquo;"
27
  msgstr ""
28
 
@@ -50,7 +119,7 @@ msgstr ""
50
  msgid "List Screen ID"
51
  msgstr ""
52
 
53
- #: classes/Settings/Column/User.php:78 classes/Column/User/FullName.php:11
54
  msgid "Full Name"
55
  msgstr ""
56
 
@@ -106,23 +175,23 @@ msgstr ""
106
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
107
  msgstr ""
108
 
109
- #: templates/tooltip/filtering.php:19
110
  msgid "Smart Filters"
111
  msgstr ""
112
 
113
- #: templates/tooltip/filtering.php:19
114
  msgid "We recommend using %s"
115
  msgstr ""
116
 
117
- #: templates/tooltip/filtering.php:16
118
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
119
  msgstr ""
120
 
121
- #: templates/tooltip/filtering.php:14
122
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
123
  msgstr ""
124
 
125
- #: templates/tooltip/filtering.php:13
126
  msgid "%s is an improved version of %s."
127
  msgstr ""
128
 
@@ -217,19 +286,19 @@ msgstr ""
217
  msgid "No deprecated hooks or filters found."
218
  msgstr ""
219
 
 
 
220
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
221
- #: templates/tooltip/filtering.php:13 templates/tooltip/filtering.php:16
222
- #: templates/tooltip/smart-filtering.php:6
223
  msgid "Smart Filtering"
224
  msgstr ""
225
 
226
- #: classes/Settings/Column/Pro/BulkEditing.php:11
227
  #: templates/tooltip/bulk-editing.php:7
 
228
  msgid "Bulk Editing"
229
  msgstr ""
230
 
231
- #: classes/Settings/Column/Pro/InlineEditing.php:11
232
  #: templates/tooltip/inline-editing.php:7
 
233
  msgid "Inline Editing"
234
  msgstr ""
235
 
@@ -309,11 +378,11 @@ msgstr ""
309
  msgid "View Comment"
310
  msgstr ""
311
 
312
- #: classes/Admin/Asset/Columns.php:66
313
  msgid "The column could not be loaded because of an unknown error"
314
  msgstr ""
315
 
316
- #: classes/Admin/Asset/Columns.php:65
317
  msgid "There was an error during saving the column settings."
318
  msgstr ""
319
 
@@ -349,7 +418,7 @@ msgstr ""
349
  msgid "Search any content"
350
  msgstr ""
351
 
352
- #: templates/settings/setting-label-icons.php:69
353
  msgid "Select"
354
  msgstr ""
355
 
@@ -381,8 +450,8 @@ msgstr ""
381
  msgid "Value: Should contain a URL."
382
  msgstr ""
383
 
384
- #: classes/Settings/Column/CustomFieldType.php:122
385
  #: templates/admin/help-tab/custom-fields.php:54
 
386
  msgid "URL"
387
  msgstr ""
388
 
@@ -410,15 +479,16 @@ msgstr ""
410
  msgid "Manage columns for your event, organizer or venue overviews."
411
  msgstr ""
412
 
413
- #: classes/Settings/Column/Pro/Sorting.php:11 templates/tooltip/sorting.php:7
 
414
  msgid "Sorting"
415
  msgstr ""
416
 
417
- #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:13
418
  msgid "Filtering"
419
  msgstr ""
420
 
421
- #: classes/Settings/Column/Pro/Export.php:11 templates/tooltip/export.php:7
422
  msgid "Export"
423
  msgstr ""
424
 
@@ -474,9 +544,9 @@ msgstr "Лимитиране на няколко броя от символи и
474
  msgid "Text Limit"
475
  msgstr "Лимит за текста"
476
 
 
 
477
  #: classes/Settings/Column/MediaLink.php:64
478
- #: classes/Column/Media/Download.php:11 classes/Table/Screen.php:134
479
- #: classes/Table/Screen.php:136
480
  msgid "Download"
481
  msgstr "Сваляне"
482
 
@@ -529,13 +599,13 @@ msgstr "Включително липсващи рамери?"
529
  msgid "Site Options"
530
  msgstr "Опции на сайта"
531
 
532
- #: classes/Settings/Column/Meta.php:129
533
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
 
534
  msgid "current"
535
  msgstr "в момента"
536
 
537
- #: classes/Settings/Column/Meta.php:126
538
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
 
539
  msgid "Network Site:"
540
  msgstr "Мрежов Сайт:"
541
 
@@ -709,9 +779,9 @@ msgstr "Лимит за думи"
709
  msgid "Auto"
710
  msgstr "Автоматично"
711
 
712
- #: classes/Admin.php:150 classes/Settings/Column/User.php:54
713
  #: classes/Settings/Column/AttachmentDisplay.php:42
714
- #: classes/Settings/Column/Term.php:36 classes/Settings/Column/Comment.php:115
715
  #: classes/Settings/Column/Post.php:82
716
  msgid "Display"
717
  msgstr "Показване"
@@ -744,8 +814,8 @@ msgstr "Разделено със запетая"
744
  msgid "Plain text"
745
  msgstr "Обикновен текст"
746
 
747
- #: classes/Settings/Column/Password.php:23
748
  #: classes/Column/Post/PasswordProtected.php:21
 
749
  msgid "Password"
750
  msgstr "Парола"
751
 
@@ -837,18 +907,18 @@ msgstr "Основни"
837
  msgid "Number of Fields"
838
  msgstr "Брой полета"
839
 
840
- #: classes/Settings/Column/CustomFieldType.php:127
841
  #: templates/admin/help-tab/custom-fields.php:50
 
842
  msgid "True / False"
843
  msgstr "Правилно / Неправилно"
844
 
845
- #: classes/Settings/Column/CustomFieldType.php:126
846
  #: templates/admin/help-tab/custom-fields.php:26
 
847
  msgid "Has Content"
848
  msgstr "Има съдържание"
849
 
850
- #: classes/Settings/Column/CustomFieldType.php:123
851
  #: templates/admin/help-tab/custom-fields.php:42
 
852
  msgid "Number"
853
  msgstr "Номер"
854
 
@@ -865,8 +935,8 @@ msgstr ""
865
  msgid "Field"
866
  msgstr "Поле"
867
 
868
- #: classes/Settings/Column/CharacterLimit.php:29
869
  #: classes/Settings/Column/NumberOfItems.php:33
 
870
  #: classes/Settings/Column/WordLimit.php:35
871
  msgid "Leave empty for no limit"
872
  msgstr "Оставете празно за без лимит"
@@ -875,8 +945,8 @@ msgstr "Оставете празно за без лимит"
875
  msgid "Maximum number of characters"
876
  msgstr "Максимум брой от символи"
877
 
878
- #: classes/Settings/Column/StringLimit.php:36
879
  #: classes/Settings/Column/CharacterLimit.php:28
 
880
  msgid "Character Limit"
881
  msgstr "Лимит на символите"
882
 
@@ -1076,7 +1146,7 @@ msgstr "Настройките за %s са възстановени успеш
1076
  msgid "View %s screen"
1077
  msgstr "Прегледайте %s екран"
1078
 
1079
- #: classes/Admin/Asset/Columns.php:63
1080
  msgid "Invalid response."
1081
  msgstr "Невалиден отговор."
1082
 
@@ -1096,7 +1166,7 @@ msgstr "страница на добавката"
1096
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1097
  msgstr "Знаете ли, че Admin Columns Pro има интеграция за добавка %s? С точния Admin Columns Pro лицензм Вие можете да я свалите от %s!"
1098
 
1099
- #: classes/Admin/HelpTab/CustomField.php:11 classes/ColumnGroups.php:15
1100
  msgid "Custom Fields"
1101
  msgstr "потребителски полета"
1102
 
@@ -1113,8 +1183,8 @@ msgstr "Персонализирайте колоните на екрана за
1113
  msgid "https://www.admincolumns.com"
1114
  msgstr "https://www.admincolumns.com"
1115
 
1116
- #: classes/Admin/Section/Partial/ShowEditButton.php:25
1117
  #: classes/Table/Screen.php:203
 
1118
  msgid "Edit columns"
1119
  msgstr "Редактиране на колоните"
1120
 
@@ -1130,9 +1200,11 @@ msgstr "Настройките за %s са обновени успешно."
1130
  msgid "Users"
1131
  msgstr "Питребители"
1132
 
1133
- #: classes/Settings/Column/CustomFieldType.php:130
1134
- #: classes/ListScreenGroups.php:15 classes/ListScreen/Media.php:18
1135
  #: templates/admin/help-tab/custom-fields.php:34
 
 
 
 
1136
  msgid "Media"
1137
  msgstr "Медия"
1138
 
@@ -1245,10 +1317,14 @@ msgstr "Настройки на магазина"
1245
  msgid "Add-ons"
1246
  msgstr "Добавки"
1247
 
1248
- #: classes/Admin/Page/Settings.php:22 classes/PluginActionLinks.php:40
1249
  msgid "Settings"
1250
  msgstr "Настройки"
1251
 
 
 
 
 
1252
  #: classes/Settings/Column/Image.php:90
1253
  msgid "Others"
1254
  msgstr "Други"
@@ -1279,8 +1355,8 @@ msgstr "Запис"
1279
  msgid "Customize your Admin Columns settings."
1280
  msgstr "Персонализиране на Вашите Admin Columns настройки."
1281
 
1282
- #: classes/Settings/Column/DateTimeFormat.php:45
1283
  #: classes/Admin/Section/General.php:36
 
1284
  msgid "General Settings"
1285
  msgstr "Основни настройки"
1286
 
@@ -1364,7 +1440,7 @@ msgstr "Преглед"
1364
  msgid "Default settings successfully restored."
1365
  msgstr ""
1366
 
1367
- #: classes/Admin/Asset/Columns.php:62 classes/Controller/ColumnRequest.php:41
1368
  msgid "%s column is already present and can not be duplicated."
1369
  msgstr "%s колона вече съществува и не може да се дублира."
1370
 
@@ -1417,27 +1493,19 @@ msgid "Admin Columns Pro"
1417
  msgstr "Admin Columns Pro"
1418
 
1419
  #. Plugin Name of the plugin
1420
- #: classes/Admin.php:126 classes/Admin/Page/Columns.php:57
1421
- #: classes/Check/Review.php:148 classes/Table/Screen.php:449
1422
  msgid "Admin Columns"
1423
  msgstr "Администраторски колони"
1424
 
1425
- #: classes/Column/Placeholder.php:50
1426
  msgid "Find out more"
1427
  msgstr "Намерете още"
1428
 
1429
- #: classes/Column/Placeholder.php:47
1430
  msgid "Admin Columns Pro offers full %s integration, allowing you to easily display and edit %s fields from within your overview."
1431
  msgstr "Admin Columns Pro предоставя пълна %s интеграция, като Ви позволява лесно да показвате и редактирате %s полетата от Вашият изглед."
1432
 
1433
- #: classes/Column/Placeholder.php:43
1434
- msgid "If you have a business or developer licence please download & install your %s add-on from the <a href='%s'>add-ons tab</a>."
1435
- msgstr "Ако имате бизнес или девелопер лиценз моля свалете & инсталирайте Вашите %s добавки от <a href='%s'>add-ons tab</a>."
1436
-
1437
- #: classes/Column/Placeholder.php:39
1438
- msgid "The %s column is only available in Admin Columns Pro - Business or Developer."
1439
- msgstr "%s колоната е само достъпна за Admin Columns Pro - Business or Developer."
1440
-
1441
  #: classes/Settings/Column/PostLink.php:72
1442
  msgid "View Public Post Author Page"
1443
  msgstr "Преглед на публичната страница на автора на публикацията"
@@ -1462,7 +1530,7 @@ msgstr "Това име, което ще се показва е заглавие
1462
  msgid "Label"
1463
  msgstr "Етикет"
1464
 
1465
- #: classes/Settings/Column/Type.php:36 templates/admin/edit-column.php:52
1466
  msgid "Name"
1467
  msgstr "Име"
1468
 
@@ -1486,15 +1554,15 @@ msgstr "Потребителски Email"
1486
  msgid "User Login"
1487
  msgstr "Потребитеско име"
1488
 
1489
- #: classes/Settings/Column/User.php:79 classes/Column/User/LastName.php:14
1490
  msgid "Last Name"
1491
  msgstr "Фамилия"
1492
 
1493
- #: classes/Settings/Column/User.php:77 classes/Column/User/FirstName.php:14
1494
  msgid "First Name"
1495
  msgstr "Първо име"
1496
 
1497
- #: classes/Settings/Column/User.php:76 classes/Column/User/DisplayName.php:14
1498
  msgid "Display Name"
1499
  msgstr "Име за показване"
1500
 
@@ -1514,8 +1582,8 @@ msgstr "Преди"
1514
  msgid "width"
1515
  msgstr "ширина"
1516
 
 
1517
  #: classes/Settings/Column/Image.php:112
1518
- #: classes/Settings/Column/CustomFieldType.php:171 classes/ColumnGroups.php:16
1519
  msgid "Custom"
1520
  msgstr "Потребителски"
1521
 
@@ -1547,8 +1615,8 @@ msgstr "Визуален редактор"
1547
  msgid "Registered"
1548
  msgstr "Регистрирано"
1549
 
 
1550
  #: classes/Settings/Column/CustomFieldType.php:99
1551
- #: classes/Settings/Column/PostType.php:43 classes/ListScreenGroups.php:13
1552
  msgid "Post Type"
1553
  msgstr "Тип на публикацията"
1554
 
@@ -1556,7 +1624,7 @@ msgstr "Тип на публикацията"
1556
  msgid "Post Count"
1557
  msgstr "Брояч на публикации"
1558
 
1559
- #: classes/Settings/Column/User.php:80 classes/Column/User/Nickname.php:14
1560
  msgid "Nickname"
1561
  msgstr "Прякор"
1562
 
@@ -1568,7 +1636,7 @@ msgstr "Брояч на коментари"
1568
  msgid "Remove"
1569
  msgstr "Изтриване"
1570
 
1571
- #: classes/Settings/Column/User.php:84 classes/Column/User/ID.php:14
1572
  msgid "User ID"
1573
  msgstr "ID на потребителя"
1574
 
@@ -1580,7 +1648,7 @@ msgstr "Това ще направи малък линк в менюто."
1580
  msgid "Link to menu"
1581
  msgstr "Линк в менюто"
1582
 
1583
- #: classes/Settings/Column/Taxonomy.php:51 classes/Column/Taxonomy.php:18
1584
  msgid "Taxonomy"
1585
  msgstr "Таксономия"
1586
 
@@ -1592,7 +1660,7 @@ msgstr "Залепен"
1592
  msgid "Status"
1593
  msgstr "Състояние"
1594
 
1595
- #: classes/Settings/Column/Term.php:31 classes/Column/Post/Slug.php:14
1596
  msgid "Slug"
1597
  msgstr "Наставка"
1598
 
@@ -1680,13 +1748,13 @@ msgstr "Изберете, кои статус на коментар искате
1680
  msgid "Comment status"
1681
  msgstr "Статус на коментар"
1682
 
1683
- #: classes/Settings/Column/CommentCount.php:58
1684
  #: classes/Column/Comment/Status.php:33
 
1685
  msgid "Spam"
1686
  msgstr "Спам"
1687
 
1688
- #: classes/Settings/Column/CommentCount.php:57
1689
  #: classes/Column/Comment/Status.php:35
 
1690
  msgid "Pending"
1691
  msgstr "В изчакване"
1692
 
@@ -1706,20 +1774,20 @@ msgstr "Преглед на потребителските публикации"
1706
  msgid "Edit User Profile"
1707
  msgstr "Редактиране на потребителския профил"
1708
 
1709
- #: classes/Settings/Column/TermLink.php:36
1710
- #: classes/Settings/Column/UserLink.php:78
1711
  #: classes/Settings/Column/PostLink.php:68
 
1712
  #: classes/Settings/Column/CommentLink.php:65
1713
  #: classes/Settings/Column/Separator.php:28
1714
- #: classes/Settings/Column/MediaLink.php:62
1715
  msgid "None"
1716
  msgstr "Без"
1717
 
1718
- #: classes/Settings/Column/TermLink.php:27
1719
- #: classes/Settings/Column/UserLink.php:60
1720
  #: classes/Settings/Column/PostLink.php:58
 
1721
  #: classes/Settings/Column/CommentLink.php:56
1722
- #: classes/Settings/Column/MediaLink.php:53
1723
  msgid "Link To"
1724
  msgstr "Линк към"
1725
 
@@ -1731,8 +1799,8 @@ msgstr "Прикачени файлове"
1731
  msgid "Preview"
1732
  msgstr ""
1733
 
1734
- #: classes/Settings/Column/Image.php:41 classes/Settings/Column/Width.php:53
1735
- #: classes/Column/Media/Width.php:16
1736
  msgid "Width"
1737
  msgstr "Ширина"
1738
 
@@ -1740,7 +1808,7 @@ msgstr "Ширина"
1740
  msgid "Mime Type"
1741
  msgstr "Тип на файлове"
1742
 
1743
- #: classes/Settings/Column/Image.php:47 classes/Column/Media/Height.php:16
1744
  msgid "Height"
1745
  msgstr "Височина"
1746
 
@@ -1809,7 +1877,7 @@ msgstr "EXIF данни"
1809
  msgid "Dimensions"
1810
  msgstr "Размери"
1811
 
1812
- #: classes/Settings/Column/ExifData.php:75 classes/Column/Media/Caption.php:14
1813
  msgid "Caption"
1814
  msgstr "Заглавие"
1815
 
@@ -1817,17 +1885,17 @@ msgstr "Заглавие"
1817
  msgid "Available Sizes"
1818
  msgstr "Достъпни размери"
1819
 
1820
- #: classes/Settings/Column/MediaLink.php:63 templates/admin/edit-menu.php:27
1821
  msgid "View"
1822
  msgstr "Преглед"
1823
 
1824
- #: classes/Settings/Column/CommentCount.php:59
1825
  #: classes/Column/Comment/Status.php:31 classes/Column/Comment/Status.php:32
 
1826
  msgid "Trash"
1827
  msgstr "Кошче"
1828
 
1829
- #: classes/Column/Media/Description.php:16
1830
  #: classes/Column/User/Description.php:15
 
1831
  msgid "Description"
1832
  msgstr "Описание"
1833
 
@@ -1839,18 +1907,18 @@ msgstr "Това че определи как стойността да се п
1839
  msgid "Field Type"
1840
  msgstr "Тип на полето"
1841
 
1842
- #: classes/Settings/Column/CustomFieldType.php:136
1843
  #: templates/admin/help-tab/custom-fields.php:38
 
1844
  msgid "Multiple Values"
1845
  msgstr "Множество стойности"
1846
 
1847
- #: classes/Settings/Column/CustomFieldType.php:121
1848
  #: templates/admin/help-tab/custom-fields.php:30
 
1849
  msgid "Image"
1850
  msgstr "Изображение"
1851
 
1852
- #: classes/Column/Post/Excerpt.php:15
1853
  #: templates/admin/help-tab/custom-fields.php:22
 
1854
  msgid "Excerpt"
1855
  msgstr "Откъс"
1856
 
@@ -1858,17 +1926,17 @@ msgstr "Откъс"
1858
  msgid "Counter"
1859
  msgstr "Брояч"
1860
 
1861
- #: classes/Settings/Column/CustomFieldType.php:118
1862
  #: templates/admin/help-tab/custom-fields.php:10
 
1863
  msgid "Color"
1864
  msgstr "Цвят"
1865
 
 
 
 
 
1866
  #: classes/Settings/Column/Image.php:72
1867
- #: classes/Settings/Column/CustomFieldType.php:186
1868
  #: classes/Settings/Column/Separator.php:25
1869
- #: classes/Settings/Column/NumberFormat.php:88 classes/ColumnGroups.php:13
1870
- #: classes/Helper/Select/Group/CustomField/MultiSite.php:53
1871
- #: templates/admin/help-tab/custom-fields.php:6
1872
  msgid "Default"
1873
  msgstr "По подразбиране"
1874
 
@@ -1880,16 +1948,17 @@ msgstr "Потребителско поле"
1880
  msgid "Word Count"
1881
  msgstr "Брояч на думи"
1882
 
 
 
1883
  #: classes/Settings/Column/CustomFieldType.php:103
1884
  #: classes/Settings/Column/CustomFieldType.php:132
1885
- #: classes/Column/Comment/User.php:15 classes/ListScreen/User.php:15
1886
- #: templates/admin/help-tab/custom-fields.php:58
1887
  msgid "User"
1888
  msgstr "Потребител"
1889
 
 
1890
  #: classes/Settings/Column/CustomFieldType.php:77
1891
  #: classes/Settings/Column/Type.php:33 classes/Settings/Column/Type.php:42
1892
- #: classes/Column/Comment/Type.php:14 templates/admin/edit-column.php:53
1893
  msgid "Type"
1894
  msgstr "Тип"
1895
 
@@ -1897,9 +1966,9 @@ msgstr "Тип"
1897
  msgid "In Reply To"
1898
  msgstr "В отговор до"
1899
 
1900
- #: classes/Settings/Column/CustomFieldType.php:131
1901
- #: classes/Column/Comment/Post.php:15
1902
  #: templates/admin/help-tab/custom-fields.php:46
 
 
1903
  msgid "Post"
1904
  msgstr "Публикувай"
1905
 
@@ -1907,9 +1976,9 @@ msgstr "Публикувай"
1907
  msgid "Content"
1908
  msgstr "Съдържание"
1909
 
1910
- #: classes/Settings/Column/CustomFieldType.php:119
1911
- #: classes/Settings/Column/Comment.php:128
1912
  #: templates/admin/help-tab/custom-fields.php:18
 
 
1913
  msgid "Date"
1914
  msgstr "Дата"
1915
 
@@ -1921,8 +1990,8 @@ msgstr "Подадено на <a href=\"%1$s\">%2$s в %3$s</a>"
1921
  msgid "Date GMT"
1922
  msgstr "Дата GMT"
1923
 
1924
- #: classes/Settings/Column/Comment.php:126 classes/Settings/Column/Post.php:93
1925
  #: classes/Column/Post/AuthorName.php:18
 
1926
  msgid "Author"
1927
  msgstr "Автор"
1928
 
@@ -1938,8 +2007,8 @@ msgstr "Име на автора"
1938
  msgid "Author IP"
1939
  msgstr "IP на автора"
1940
 
1941
- #: classes/Settings/Column/Comment.php:127
1942
  #: classes/Column/Comment/AuthorEmail.php:14
 
1943
  msgid "Author Email"
1944
  msgstr "Email на автора"
1945
 
@@ -1947,8 +2016,8 @@ msgstr "Email на автора"
1947
  msgid "Avatar"
1948
  msgstr "Avatar"
1949
 
 
1950
  #: classes/Settings/Column/CommentCount.php:56
1951
- #: classes/Column/Comment/Status.php:34 classes/Column/Comment/Approved.php:14
1952
  msgid "Approved"
1953
  msgstr "Разрешен"
1954
 
@@ -1964,28 +2033,28 @@ msgstr "Редактиране"
1964
  msgid "Edit Comment"
1965
  msgstr ""
1966
 
1967
- #: classes/Settings/Column/Term.php:32 classes/Settings/Column/Comment.php:125
1968
- #: classes/Settings/Column/Post.php:92 classes/Column/Post/ID.php:15
1969
- #: classes/Column/Media/ID.php:14 classes/Column/Comment/ID.php:14
1970
- #: templates/admin/edit-actions.php:41
1971
  msgid "ID"
1972
  msgstr "ID"
1973
 
1974
- #: classes/Settings/Column/ActionIcons.php:23
1975
- #: classes/Settings/Column/Toggle.php:15
1976
- #: classes/Settings/Column/StatusIcon.php:25 classes/Settings/Column/Pro.php:24
1977
  #: classes/Settings/Column/MissingImageSize.php:23
1978
- #: classes/Settings/Column/PostFormatIcon.php:25 classes/Helper/Icon.php:62
1979
- #: templates/admin/side-feedback.php:14
 
 
1980
  msgid "No"
1981
  msgstr "Не"
1982
 
1983
- #: classes/Settings/Column/ActionIcons.php:22
1984
- #: classes/Settings/Column/Toggle.php:14
1985
- #: classes/Settings/Column/StatusIcon.php:24 classes/Settings/Column/Pro.php:23
1986
  #: classes/Settings/Column/MissingImageSize.php:22
1987
- #: classes/Settings/Column/PostFormatIcon.php:24 classes/Helper/Icon.php:46
1988
- #: templates/admin/side-feedback.php:13
 
 
1989
  msgid "Yes"
1990
  msgstr "Да"
1991
 
2
  # This file is distributed under the same license as the Plugins - Admin Columns - Stable (latest release) package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2020-12-15 15:20:39+0000\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
11
  "Language: bg\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
14
+ #: classes/Column/Placeholder.php:40
15
+ msgid "Download & install the %s add-on from the <a href='%s'>add-ons tab</a>."
16
+ msgstr ""
17
+
18
+ #: classes/Column/Placeholder.php:38
19
+ msgid "The %s column is only available if you have installed the add-on."
20
+ msgstr ""
21
+
22
+ #: templates/settings/setting-label-icons.php:51
23
+ msgid "Misc"
24
+ msgstr ""
25
+
26
+ #: templates/settings/setting-label-icons.php:50
27
+ msgid "Notifications"
28
+ msgstr ""
29
+
30
+ #: templates/settings/setting-label-icons.php:49
31
+ msgid "Widgets"
32
+ msgstr ""
33
+
34
+ #: templates/settings/setting-label-icons.php:47
35
+ msgid "Products"
36
+ msgstr ""
37
+
38
+ #: templates/settings/setting-label-icons.php:46
39
+ msgid "Buddicons"
40
+ msgstr ""
41
+
42
+ #: templates/settings/setting-label-icons.php:45
43
+ msgid "WordPress.org"
44
+ msgstr ""
45
+
46
+ #: templates/settings/setting-label-icons.php:44
47
+ msgid "Social"
48
+ msgstr ""
49
+
50
+ #: templates/settings/setting-label-icons.php:42
51
+ msgid "Posts Screen"
52
+ msgstr ""
53
+
54
+ #: templates/settings/setting-label-icons.php:41
55
+ msgid "TinyMCE"
56
+ msgstr ""
57
+
58
+ #: templates/settings/setting-label-icons.php:40
59
+ msgid "Block Editor"
60
+ msgstr ""
61
+
62
+ #: templates/settings/setting-label-icons.php:39
63
+ msgid "Databases"
64
+ msgstr ""
65
+
66
+ #: templates/settings/setting-label-icons.php:38
67
+ msgid "Image Editing"
68
+ msgstr ""
69
+
70
+ #: templates/settings/setting-label-icons.php:36
71
+ msgid "Post Formats"
72
+ msgstr ""
73
+
74
+ #: templates/settings/setting-label-icons.php:35
75
+ msgid "Welcome Screen"
76
+ msgstr ""
77
+
78
+ #: templates/settings/setting-label-icons.php:34
79
+ msgid "Admin Menu"
80
+ msgstr ""
81
+
82
  #: templates/admin/edit-actions.php:40
83
  msgid "Key"
84
  msgstr ""
87
  msgid "Export table contents to CSV"
88
  msgstr ""
89
 
90
+ #: templates/tooltip/export.php:25 templates/tooltip/sorting.php:29
 
 
91
  #: templates/tooltip/inline-editing.php:25
92
+ #: templates/tooltip/smart-filtering.php:28
93
+ #: templates/tooltip/bulk-editing.php:25
94
+ #: templates/tooltip/export-disabled.php:17
95
  msgid "Learn more &raquo;"
96
  msgstr ""
97
 
119
  msgid "List Screen ID"
120
  msgstr ""
121
 
122
+ #: classes/Column/User/FullName.php:11 classes/Settings/Column/User.php:78
123
  msgid "Full Name"
124
  msgstr ""
125
 
175
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
176
  msgstr ""
177
 
178
+ #: templates/tooltip/filtering.php:13
179
  msgid "Smart Filters"
180
  msgstr ""
181
 
182
+ #: templates/tooltip/filtering.php:13
183
  msgid "We recommend using %s"
184
  msgstr ""
185
 
186
+ #: templates/tooltip/filtering.php:20
187
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
188
  msgstr ""
189
 
190
+ #: templates/tooltip/filtering.php:17
191
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
192
  msgstr ""
193
 
194
+ #: templates/tooltip/filtering.php:16
195
  msgid "%s is an improved version of %s."
196
  msgstr ""
197
 
286
  msgid "No deprecated hooks or filters found."
287
  msgstr ""
288
 
289
+ #: templates/tooltip/smart-filtering.php:6 templates/tooltip/filtering.php:16
290
+ #: templates/tooltip/filtering.php:20
291
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
 
 
292
  msgid "Smart Filtering"
293
  msgstr ""
294
 
 
295
  #: templates/tooltip/bulk-editing.php:7
296
+ #: classes/Settings/Column/Pro/BulkEditing.php:11
297
  msgid "Bulk Editing"
298
  msgstr ""
299
 
 
300
  #: templates/tooltip/inline-editing.php:7
301
+ #: classes/Settings/Column/Pro/InlineEditing.php:11
302
  msgid "Inline Editing"
303
  msgstr ""
304
 
378
  msgid "View Comment"
379
  msgstr ""
380
 
381
+ #: classes/Admin/Asset/Columns.php:65
382
  msgid "The column could not be loaded because of an unknown error"
383
  msgstr ""
384
 
385
+ #: classes/Admin/Asset/Columns.php:64
386
  msgid "There was an error during saving the column settings."
387
  msgstr ""
388
 
418
  msgid "Search any content"
419
  msgstr ""
420
 
421
+ #: templates/settings/setting-label-icons.php:72
422
  msgid "Select"
423
  msgstr ""
424
 
450
  msgid "Value: Should contain a URL."
451
  msgstr ""
452
 
 
453
  #: templates/admin/help-tab/custom-fields.php:54
454
+ #: classes/Settings/Column/CustomFieldType.php:122
455
  msgid "URL"
456
  msgstr ""
457
 
479
  msgid "Manage columns for your event, organizer or venue overviews."
480
  msgstr ""
481
 
482
+ #: templates/settings/setting-label-icons.php:43
483
+ #: templates/tooltip/sorting.php:7 classes/Settings/Column/Pro/Sorting.php:11
484
  msgid "Sorting"
485
  msgstr ""
486
 
487
+ #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:16
488
  msgid "Filtering"
489
  msgstr ""
490
 
491
+ #: templates/tooltip/export.php:7 classes/Settings/Column/Pro/Export.php:11
492
  msgid "Export"
493
  msgstr ""
494
 
544
  msgid "Text Limit"
545
  msgstr "Лимит за текста"
546
 
547
+ #: classes/Table/Screen.php:134 classes/Table/Screen.php:136
548
+ #: classes/Column/Media/Download.php:11
549
  #: classes/Settings/Column/MediaLink.php:64
 
 
550
  msgid "Download"
551
  msgstr "Сваляне"
552
 
599
  msgid "Site Options"
600
  msgstr "Опции на сайта"
601
 
 
602
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
603
+ #: classes/Settings/Column/Meta.php:129
604
  msgid "current"
605
  msgstr "в момента"
606
 
 
607
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
608
+ #: classes/Settings/Column/Meta.php:126
609
  msgid "Network Site:"
610
  msgstr "Мрежов Сайт:"
611
 
779
  msgid "Auto"
780
  msgstr "Автоматично"
781
 
782
+ #: classes/Admin.php:150 classes/Settings/Column/Comment.php:115
783
  #: classes/Settings/Column/AttachmentDisplay.php:42
784
+ #: classes/Settings/Column/Term.php:36 classes/Settings/Column/User.php:54
785
  #: classes/Settings/Column/Post.php:82
786
  msgid "Display"
787
  msgstr "Показване"
814
  msgid "Plain text"
815
  msgstr "Обикновен текст"
816
 
 
817
  #: classes/Column/Post/PasswordProtected.php:21
818
+ #: classes/Settings/Column/Password.php:23
819
  msgid "Password"
820
  msgstr "Парола"
821
 
907
  msgid "Number of Fields"
908
  msgstr "Брой полета"
909
 
 
910
  #: templates/admin/help-tab/custom-fields.php:50
911
+ #: classes/Settings/Column/CustomFieldType.php:127
912
  msgid "True / False"
913
  msgstr "Правилно / Неправилно"
914
 
 
915
  #: templates/admin/help-tab/custom-fields.php:26
916
+ #: classes/Settings/Column/CustomFieldType.php:126
917
  msgid "Has Content"
918
  msgstr "Има съдържание"
919
 
 
920
  #: templates/admin/help-tab/custom-fields.php:42
921
+ #: classes/Settings/Column/CustomFieldType.php:123
922
  msgid "Number"
923
  msgstr "Номер"
924
 
935
  msgid "Field"
936
  msgstr "Поле"
937
 
 
938
  #: classes/Settings/Column/NumberOfItems.php:33
939
+ #: classes/Settings/Column/CharacterLimit.php:29
940
  #: classes/Settings/Column/WordLimit.php:35
941
  msgid "Leave empty for no limit"
942
  msgstr "Оставете празно за без лимит"
945
  msgid "Maximum number of characters"
946
  msgstr "Максимум брой от символи"
947
 
 
948
  #: classes/Settings/Column/CharacterLimit.php:28
949
+ #: classes/Settings/Column/StringLimit.php:36
950
  msgid "Character Limit"
951
  msgstr "Лимит на символите"
952
 
1146
  msgid "View %s screen"
1147
  msgstr "Прегледайте %s екран"
1148
 
1149
+ #: classes/Admin/Asset/Columns.php:62
1150
  msgid "Invalid response."
1151
  msgstr "Невалиден отговор."
1152
 
1166
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1167
  msgstr "Знаете ли, че Admin Columns Pro има интеграция за добавка %s? С точния Admin Columns Pro лицензм Вие можете да я свалите от %s!"
1168
 
1169
+ #: classes/ColumnGroups.php:15 classes/Admin/HelpTab/CustomField.php:11
1170
  msgid "Custom Fields"
1171
  msgstr "потребителски полета"
1172
 
1183
  msgid "https://www.admincolumns.com"
1184
  msgstr "https://www.admincolumns.com"
1185
 
 
1186
  #: classes/Table/Screen.php:203
1187
+ #: classes/Admin/Section/Partial/ShowEditButton.php:25
1188
  msgid "Edit columns"
1189
  msgstr "Редактиране на колоните"
1190
 
1200
  msgid "Users"
1201
  msgstr "Питребители"
1202
 
 
 
1203
  #: templates/admin/help-tab/custom-fields.php:34
1204
+ #: templates/settings/setting-label-icons.php:37
1205
+ #: classes/ListScreenGroups.php:15
1206
+ #: classes/Settings/Column/CustomFieldType.php:130
1207
+ #: classes/ListScreen/Media.php:18
1208
  msgid "Media"
1209
  msgstr "Медия"
1210
 
1317
  msgid "Add-ons"
1318
  msgstr "Добавки"
1319
 
1320
+ #: classes/PluginActionLinks.php:40 classes/Admin/Page/Settings.php:22
1321
  msgid "Settings"
1322
  msgstr "Настройки"
1323
 
1324
+ #: templates/settings/setting-label-icons.php:48
1325
+ msgid "Taxonomies"
1326
+ msgstr ""
1327
+
1328
  #: classes/Settings/Column/Image.php:90
1329
  msgid "Others"
1330
  msgstr "Други"
1355
  msgid "Customize your Admin Columns settings."
1356
  msgstr "Персонализиране на Вашите Admin Columns настройки."
1357
 
 
1358
  #: classes/Admin/Section/General.php:36
1359
+ #: classes/Settings/Column/DateTimeFormat.php:45
1360
  msgid "General Settings"
1361
  msgstr "Основни настройки"
1362
 
1440
  msgid "Default settings successfully restored."
1441
  msgstr ""
1442
 
1443
+ #: classes/Admin/Asset/Columns.php:61 classes/Controller/ColumnRequest.php:41
1444
  msgid "%s column is already present and can not be duplicated."
1445
  msgstr "%s колона вече съществува и не може да се дублира."
1446
 
1493
  msgstr "Admin Columns Pro"
1494
 
1495
  #. Plugin Name of the plugin
1496
+ #: classes/Admin.php:126 classes/Table/Screen.php:464
1497
+ #: classes/Admin/Page/Columns.php:57 classes/Check/Review.php:148
1498
  msgid "Admin Columns"
1499
  msgstr "Администраторски колони"
1500
 
1501
+ #: classes/Column/Placeholder.php:47
1502
  msgid "Find out more"
1503
  msgstr "Намерете още"
1504
 
1505
+ #: classes/Column/Placeholder.php:43
1506
  msgid "Admin Columns Pro offers full %s integration, allowing you to easily display and edit %s fields from within your overview."
1507
  msgstr "Admin Columns Pro предоставя пълна %s интеграция, като Ви позволява лесно да показвате и редактирате %s полетата от Вашият изглед."
1508
 
 
 
 
 
 
 
 
 
1509
  #: classes/Settings/Column/PostLink.php:72
1510
  msgid "View Public Post Author Page"
1511
  msgstr "Преглед на публичната страница на автора на публикацията"
1530
  msgid "Label"
1531
  msgstr "Етикет"
1532
 
1533
+ #: templates/admin/edit-column.php:52 classes/Settings/Column/Type.php:36
1534
  msgid "Name"
1535
  msgstr "Име"
1536
 
1554
  msgid "User Login"
1555
  msgstr "Потребитеско име"
1556
 
1557
+ #: classes/Column/User/LastName.php:14 classes/Settings/Column/User.php:79
1558
  msgid "Last Name"
1559
  msgstr "Фамилия"
1560
 
1561
+ #: classes/Column/User/FirstName.php:14 classes/Settings/Column/User.php:77
1562
  msgid "First Name"
1563
  msgstr "Първо име"
1564
 
1565
+ #: classes/Column/User/DisplayName.php:14 classes/Settings/Column/User.php:76
1566
  msgid "Display Name"
1567
  msgstr "Име за показване"
1568
 
1582
  msgid "width"
1583
  msgstr "ширина"
1584
 
1585
+ #: classes/ColumnGroups.php:16 classes/Settings/Column/CustomFieldType.php:171
1586
  #: classes/Settings/Column/Image.php:112
 
1587
  msgid "Custom"
1588
  msgstr "Потребителски"
1589
 
1615
  msgid "Registered"
1616
  msgstr "Регистрирано"
1617
 
1618
+ #: classes/ListScreenGroups.php:13 classes/Settings/Column/PostType.php:43
1619
  #: classes/Settings/Column/CustomFieldType.php:99
 
1620
  msgid "Post Type"
1621
  msgstr "Тип на публикацията"
1622
 
1624
  msgid "Post Count"
1625
  msgstr "Брояч на публикации"
1626
 
1627
+ #: classes/Column/User/Nickname.php:14 classes/Settings/Column/User.php:80
1628
  msgid "Nickname"
1629
  msgstr "Прякор"
1630
 
1636
  msgid "Remove"
1637
  msgstr "Изтриване"
1638
 
1639
+ #: classes/Column/User/ID.php:14 classes/Settings/Column/User.php:84
1640
  msgid "User ID"
1641
  msgstr "ID на потребителя"
1642
 
1648
  msgid "Link to menu"
1649
  msgstr "Линк в менюто"
1650
 
1651
+ #: classes/Column/Taxonomy.php:18 classes/Settings/Column/Taxonomy.php:51
1652
  msgid "Taxonomy"
1653
  msgstr "Таксономия"
1654
 
1660
  msgid "Status"
1661
  msgstr "Състояние"
1662
 
1663
+ #: classes/Column/Post/Slug.php:14 classes/Settings/Column/Term.php:31
1664
  msgid "Slug"
1665
  msgstr "Наставка"
1666
 
1748
  msgid "Comment status"
1749
  msgstr "Статус на коментар"
1750
 
 
1751
  #: classes/Column/Comment/Status.php:33
1752
+ #: classes/Settings/Column/CommentCount.php:58
1753
  msgid "Spam"
1754
  msgstr "Спам"
1755
 
 
1756
  #: classes/Column/Comment/Status.php:35
1757
+ #: classes/Settings/Column/CommentCount.php:57
1758
  msgid "Pending"
1759
  msgstr "В изчакване"
1760
 
1774
  msgid "Edit User Profile"
1775
  msgstr "Редактиране на потребителския профил"
1776
 
1777
+ #: classes/Settings/Column/MediaLink.php:62
 
1778
  #: classes/Settings/Column/PostLink.php:68
1779
+ #: classes/Settings/Column/UserLink.php:78
1780
  #: classes/Settings/Column/CommentLink.php:65
1781
  #: classes/Settings/Column/Separator.php:28
1782
+ #: classes/Settings/Column/TermLink.php:36
1783
  msgid "None"
1784
  msgstr "Без"
1785
 
1786
+ #: classes/Settings/Column/MediaLink.php:53
 
1787
  #: classes/Settings/Column/PostLink.php:58
1788
+ #: classes/Settings/Column/UserLink.php:60
1789
  #: classes/Settings/Column/CommentLink.php:56
1790
+ #: classes/Settings/Column/TermLink.php:27
1791
  msgid "Link To"
1792
  msgstr "Линк към"
1793
 
1799
  msgid "Preview"
1800
  msgstr ""
1801
 
1802
+ #: classes/Column/Media/Width.php:16 classes/Settings/Column/Image.php:41
1803
+ #: classes/Settings/Column/Width.php:53
1804
  msgid "Width"
1805
  msgstr "Ширина"
1806
 
1808
  msgid "Mime Type"
1809
  msgstr "Тип на файлове"
1810
 
1811
+ #: classes/Column/Media/Height.php:16 classes/Settings/Column/Image.php:47
1812
  msgid "Height"
1813
  msgstr "Височина"
1814
 
1877
  msgid "Dimensions"
1878
  msgstr "Размери"
1879
 
1880
+ #: classes/Column/Media/Caption.php:14 classes/Settings/Column/ExifData.php:75
1881
  msgid "Caption"
1882
  msgstr "Заглавие"
1883
 
1885
  msgid "Available Sizes"
1886
  msgstr "Достъпни размери"
1887
 
1888
+ #: templates/admin/edit-menu.php:27 classes/Settings/Column/MediaLink.php:63
1889
  msgid "View"
1890
  msgstr "Преглед"
1891
 
 
1892
  #: classes/Column/Comment/Status.php:31 classes/Column/Comment/Status.php:32
1893
+ #: classes/Settings/Column/CommentCount.php:59
1894
  msgid "Trash"
1895
  msgstr "Кошче"
1896
 
 
1897
  #: classes/Column/User/Description.php:15
1898
+ #: classes/Column/Media/Description.php:16
1899
  msgid "Description"
1900
  msgstr "Описание"
1901
 
1907
  msgid "Field Type"
1908
  msgstr "Тип на полето"
1909
 
 
1910
  #: templates/admin/help-tab/custom-fields.php:38
1911
+ #: classes/Settings/Column/CustomFieldType.php:136
1912
  msgid "Multiple Values"
1913
  msgstr "Множество стойности"
1914
 
 
1915
  #: templates/admin/help-tab/custom-fields.php:30
1916
+ #: classes/Settings/Column/CustomFieldType.php:121
1917
  msgid "Image"
1918
  msgstr "Изображение"
1919
 
 
1920
  #: templates/admin/help-tab/custom-fields.php:22
1921
+ #: classes/Column/Post/Excerpt.php:15
1922
  msgid "Excerpt"
1923
  msgstr "Откъс"
1924
 
1926
  msgid "Counter"
1927
  msgstr "Брояч"
1928
 
 
1929
  #: templates/admin/help-tab/custom-fields.php:10
1930
+ #: classes/Settings/Column/CustomFieldType.php:118
1931
  msgid "Color"
1932
  msgstr "Цвят"
1933
 
1934
+ #: templates/admin/help-tab/custom-fields.php:6
1935
+ #: classes/Helper/Select/Group/CustomField/MultiSite.php:53
1936
+ #: classes/ColumnGroups.php:13 classes/Settings/Column/CustomFieldType.php:186
1937
+ #: classes/Settings/Column/NumberFormat.php:88
1938
  #: classes/Settings/Column/Image.php:72
 
1939
  #: classes/Settings/Column/Separator.php:25
 
 
 
1940
  msgid "Default"
1941
  msgstr "По подразбиране"
1942
 
1948
  msgid "Word Count"
1949
  msgstr "Брояч на думи"
1950
 
1951
+ #: templates/admin/help-tab/custom-fields.php:58
1952
+ #: classes/Column/Comment/User.php:15
1953
  #: classes/Settings/Column/CustomFieldType.php:103
1954
  #: classes/Settings/Column/CustomFieldType.php:132
1955
+ #: classes/ListScreen/User.php:15
 
1956
  msgid "User"
1957
  msgstr "Потребител"
1958
 
1959
+ #: templates/admin/edit-column.php:53 classes/Column/Comment/Type.php:14
1960
  #: classes/Settings/Column/CustomFieldType.php:77
1961
  #: classes/Settings/Column/Type.php:33 classes/Settings/Column/Type.php:42
 
1962
  msgid "Type"
1963
  msgstr "Тип"
1964
 
1966
  msgid "In Reply To"
1967
  msgstr "В отговор до"
1968
 
 
 
1969
  #: templates/admin/help-tab/custom-fields.php:46
1970
+ #: classes/Column/Comment/Post.php:15
1971
+ #: classes/Settings/Column/CustomFieldType.php:131
1972
  msgid "Post"
1973
  msgstr "Публикувай"
1974
 
1976
  msgid "Content"
1977
  msgstr "Съдържание"
1978
 
 
 
1979
  #: templates/admin/help-tab/custom-fields.php:18
1980
+ #: classes/Settings/Column/Comment.php:128
1981
+ #: classes/Settings/Column/CustomFieldType.php:119
1982
  msgid "Date"
1983
  msgstr "Дата"
1984
 
1990
  msgid "Date GMT"
1991
  msgstr "Дата GMT"
1992
 
 
1993
  #: classes/Column/Post/AuthorName.php:18
1994
+ #: classes/Settings/Column/Comment.php:126 classes/Settings/Column/Post.php:93
1995
  msgid "Author"
1996
  msgstr "Автор"
1997
 
2007
  msgid "Author IP"
2008
  msgstr "IP на автора"
2009
 
 
2010
  #: classes/Column/Comment/AuthorEmail.php:14
2011
+ #: classes/Settings/Column/Comment.php:127
2012
  msgid "Author Email"
2013
  msgstr "Email на автора"
2014
 
2016
  msgid "Avatar"
2017
  msgstr "Avatar"
2018
 
2019
+ #: classes/Column/Comment/Approved.php:14 classes/Column/Comment/Status.php:34
2020
  #: classes/Settings/Column/CommentCount.php:56
 
2021
  msgid "Approved"
2022
  msgstr "Разрешен"
2023
 
2033
  msgid "Edit Comment"
2034
  msgstr ""
2035
 
2036
+ #: templates/admin/edit-actions.php:41 classes/Column/Post/ID.php:15
2037
+ #: classes/Column/Comment/ID.php:14 classes/Column/Media/ID.php:14
2038
+ #: classes/Settings/Column/Comment.php:125 classes/Settings/Column/Term.php:32
2039
+ #: classes/Settings/Column/Post.php:92
2040
  msgid "ID"
2041
  msgstr "ID"
2042
 
2043
+ #: templates/admin/side-feedback.php:14 classes/Helper/Icon.php:62
 
 
2044
  #: classes/Settings/Column/MissingImageSize.php:23
2045
+ #: classes/Settings/Column/ActionIcons.php:23
2046
+ #: classes/Settings/Column/StatusIcon.php:25
2047
+ #: classes/Settings/Column/Toggle.php:15 classes/Settings/Column/Pro.php:24
2048
+ #: classes/Settings/Column/PostFormatIcon.php:25
2049
  msgid "No"
2050
  msgstr "Не"
2051
 
2052
+ #: templates/admin/side-feedback.php:13 classes/Helper/Icon.php:46
 
 
2053
  #: classes/Settings/Column/MissingImageSize.php:22
2054
+ #: classes/Settings/Column/ActionIcons.php:22
2055
+ #: classes/Settings/Column/StatusIcon.php:24
2056
+ #: classes/Settings/Column/Toggle.php:14 classes/Settings/Column/Pro.php:23
2057
+ #: classes/Settings/Column/PostFormatIcon.php:24
2058
  msgid "Yes"
2059
  msgstr "Да"
2060
 
languages/codepress-admin-columns-da_DK.po CHANGED
@@ -11,6 +11,74 @@ msgstr ""
11
  "Language: da_DK\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  #: templates/admin/edit-actions.php:40
15
  msgid "Key"
16
  msgstr ""
@@ -19,10 +87,11 @@ msgstr ""
19
  msgid "Export table contents to CSV"
20
  msgstr ""
21
 
22
- #: templates/tooltip/export.php:25 templates/tooltip/export-disabled.php:17
23
- #: templates/tooltip/smart-filtering.php:28 templates/tooltip/sorting.php:29
24
- #: templates/tooltip/bulk-editing.php:25
25
  #: templates/tooltip/inline-editing.php:25
 
 
 
26
  msgid "Learn more &raquo;"
27
  msgstr ""
28
 
@@ -50,7 +119,7 @@ msgstr ""
50
  msgid "List Screen ID"
51
  msgstr ""
52
 
53
- #: classes/Settings/Column/User.php:78 classes/Column/User/FullName.php:11
54
  msgid "Full Name"
55
  msgstr ""
56
 
@@ -106,23 +175,23 @@ msgstr ""
106
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
107
  msgstr ""
108
 
109
- #: templates/tooltip/filtering.php:19
110
  msgid "Smart Filters"
111
  msgstr ""
112
 
113
- #: templates/tooltip/filtering.php:19
114
  msgid "We recommend using %s"
115
  msgstr ""
116
 
117
- #: templates/tooltip/filtering.php:16
118
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
119
  msgstr ""
120
 
121
- #: templates/tooltip/filtering.php:14
122
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
123
  msgstr ""
124
 
125
- #: templates/tooltip/filtering.php:13
126
  msgid "%s is an improved version of %s."
127
  msgstr ""
128
 
@@ -217,19 +286,19 @@ msgstr ""
217
  msgid "No deprecated hooks or filters found."
218
  msgstr ""
219
 
 
 
220
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
221
- #: templates/tooltip/filtering.php:13 templates/tooltip/filtering.php:16
222
- #: templates/tooltip/smart-filtering.php:6
223
  msgid "Smart Filtering"
224
  msgstr ""
225
 
226
- #: classes/Settings/Column/Pro/BulkEditing.php:11
227
  #: templates/tooltip/bulk-editing.php:7
 
228
  msgid "Bulk Editing"
229
  msgstr ""
230
 
231
- #: classes/Settings/Column/Pro/InlineEditing.php:11
232
  #: templates/tooltip/inline-editing.php:7
 
233
  msgid "Inline Editing"
234
  msgstr ""
235
 
@@ -309,11 +378,11 @@ msgstr ""
309
  msgid "View Comment"
310
  msgstr ""
311
 
312
- #: classes/Admin/Asset/Columns.php:66
313
  msgid "The column could not be loaded because of an unknown error"
314
  msgstr ""
315
 
316
- #: classes/Admin/Asset/Columns.php:65
317
  msgid "There was an error during saving the column settings."
318
  msgstr ""
319
 
@@ -349,7 +418,7 @@ msgstr ""
349
  msgid "Search any content"
350
  msgstr ""
351
 
352
- #: templates/settings/setting-label-icons.php:69
353
  msgid "Select"
354
  msgstr ""
355
 
@@ -381,8 +450,8 @@ msgstr ""
381
  msgid "Value: Should contain a URL."
382
  msgstr ""
383
 
384
- #: classes/Settings/Column/CustomFieldType.php:122
385
  #: templates/admin/help-tab/custom-fields.php:54
 
386
  msgid "URL"
387
  msgstr ""
388
 
@@ -410,15 +479,16 @@ msgstr ""
410
  msgid "Manage columns for your event, organizer or venue overviews."
411
  msgstr ""
412
 
413
- #: classes/Settings/Column/Pro/Sorting.php:11 templates/tooltip/sorting.php:7
 
414
  msgid "Sorting"
415
  msgstr ""
416
 
417
- #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:13
418
  msgid "Filtering"
419
  msgstr ""
420
 
421
- #: classes/Settings/Column/Pro/Export.php:11 templates/tooltip/export.php:7
422
  msgid "Export"
423
  msgstr ""
424
 
@@ -474,9 +544,9 @@ msgstr ""
474
  msgid "Text Limit"
475
  msgstr ""
476
 
 
 
477
  #: classes/Settings/Column/MediaLink.php:64
478
- #: classes/Column/Media/Download.php:11 classes/Table/Screen.php:134
479
- #: classes/Table/Screen.php:136
480
  msgid "Download"
481
  msgstr ""
482
 
@@ -529,13 +599,13 @@ msgstr ""
529
  msgid "Site Options"
530
  msgstr ""
531
 
532
- #: classes/Settings/Column/Meta.php:129
533
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
 
534
  msgid "current"
535
  msgstr ""
536
 
537
- #: classes/Settings/Column/Meta.php:126
538
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
 
539
  msgid "Network Site:"
540
  msgstr ""
541
 
@@ -709,9 +779,9 @@ msgstr ""
709
  msgid "Auto"
710
  msgstr ""
711
 
712
- #: classes/Admin.php:150 classes/Settings/Column/User.php:54
713
  #: classes/Settings/Column/AttachmentDisplay.php:42
714
- #: classes/Settings/Column/Term.php:36 classes/Settings/Column/Comment.php:115
715
  #: classes/Settings/Column/Post.php:82
716
  msgid "Display"
717
  msgstr ""
@@ -744,8 +814,8 @@ msgstr ""
744
  msgid "Plain text"
745
  msgstr ""
746
 
747
- #: classes/Settings/Column/Password.php:23
748
  #: classes/Column/Post/PasswordProtected.php:21
 
749
  msgid "Password"
750
  msgstr ""
751
 
@@ -837,18 +907,18 @@ msgstr ""
837
  msgid "Number of Fields"
838
  msgstr ""
839
 
840
- #: classes/Settings/Column/CustomFieldType.php:127
841
  #: templates/admin/help-tab/custom-fields.php:50
 
842
  msgid "True / False"
843
  msgstr ""
844
 
845
- #: classes/Settings/Column/CustomFieldType.php:126
846
  #: templates/admin/help-tab/custom-fields.php:26
 
847
  msgid "Has Content"
848
  msgstr ""
849
 
850
- #: classes/Settings/Column/CustomFieldType.php:123
851
  #: templates/admin/help-tab/custom-fields.php:42
 
852
  msgid "Number"
853
  msgstr ""
854
 
@@ -865,8 +935,8 @@ msgstr ""
865
  msgid "Field"
866
  msgstr ""
867
 
868
- #: classes/Settings/Column/CharacterLimit.php:29
869
  #: classes/Settings/Column/NumberOfItems.php:33
 
870
  #: classes/Settings/Column/WordLimit.php:35
871
  msgid "Leave empty for no limit"
872
  msgstr ""
@@ -875,8 +945,8 @@ msgstr ""
875
  msgid "Maximum number of characters"
876
  msgstr ""
877
 
878
- #: classes/Settings/Column/StringLimit.php:36
879
  #: classes/Settings/Column/CharacterLimit.php:28
 
880
  msgid "Character Limit"
881
  msgstr ""
882
 
@@ -1076,7 +1146,7 @@ msgstr ""
1076
  msgid "View %s screen"
1077
  msgstr ""
1078
 
1079
- #: classes/Admin/Asset/Columns.php:63
1080
  msgid "Invalid response."
1081
  msgstr ""
1082
 
@@ -1096,7 +1166,7 @@ msgstr ""
1096
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1097
  msgstr ""
1098
 
1099
- #: classes/Admin/HelpTab/CustomField.php:11 classes/ColumnGroups.php:15
1100
  msgid "Custom Fields"
1101
  msgstr "Brugerdefineret felter"
1102
 
@@ -1113,8 +1183,8
11
  "Language: da_DK\n"
12
  "Project-Id-Version: Plugins - Admin Columns - Stable (latest release)\n"
13
 
14
+ #: classes/Column/Placeholder.php:40
15
+ msgid "Download & install the %s add-on from the <a href='%s'>add-ons tab</a>."
16
+ msgstr ""
17
+
18
+ #: classes/Column/Placeholder.php:38
19
+ msgid "The %s column is only available if you have installed the add-on."
20
+ msgstr ""
21
+
22
+ #: templates/settings/setting-label-icons.php:51
23
+ msgid "Misc"
24
+ msgstr ""
25
+
26
+ #: templates/settings/setting-label-icons.php:50
27
+ msgid "Notifications"
28
+ msgstr ""
29
+
30
+ #: templates/settings/setting-label-icons.php:49
31
+ msgid "Widgets"
32
+ msgstr ""
33
+
34
+ #: templates/settings/setting-label-icons.php:47
35
+ msgid "Products"
36
+ msgstr ""
37
+
38
+ #: templates/settings/setting-label-icons.php:46
39
+ msgid "Buddicons"
40
+ msgstr ""
41
+
42
+ #: templates/settings/setting-label-icons.php:45
43
+ msgid "WordPress.org"
44
+ msgstr ""
45
+
46
+ #: templates/settings/setting-label-icons.php:44
47
+ msgid "Social"
48
+ msgstr ""
49
+
50
+ #: templates/settings/setting-label-icons.php:42
51
+ msgid "Posts Screen"
52
+ msgstr ""
53
+
54
+ #: templates/settings/setting-label-icons.php:41
55
+ msgid "TinyMCE"
56
+ msgstr ""
57
+
58
+ #: templates/settings/setting-label-icons.php:40
59
+ msgid "Block Editor"
60
+ msgstr ""
61
+
62
+ #: templates/settings/setting-label-icons.php:39
63
+ msgid "Databases"
64
+ msgstr ""
65
+
66
+ #: templates/settings/setting-label-icons.php:38
67
+ msgid "Image Editing"
68
+ msgstr ""
69
+
70
+ #: templates/settings/setting-label-icons.php:36
71
+ msgid "Post Formats"
72
+ msgstr ""
73
+
74
+ #: templates/settings/setting-label-icons.php:35
75
+ msgid "Welcome Screen"
76
+ msgstr ""
77
+
78
+ #: templates/settings/setting-label-icons.php:34
79
+ msgid "Admin Menu"
80
+ msgstr ""
81
+
82
  #: templates/admin/edit-actions.php:40
83
  msgid "Key"
84
  msgstr ""
87
  msgid "Export table contents to CSV"
88
  msgstr ""
89
 
90
+ #: templates/tooltip/export.php:25 templates/tooltip/sorting.php:29
 
 
91
  #: templates/tooltip/inline-editing.php:25
92
+ #: templates/tooltip/smart-filtering.php:28
93
+ #: templates/tooltip/bulk-editing.php:25
94
+ #: templates/tooltip/export-disabled.php:17
95
  msgid "Learn more &raquo;"
96
  msgstr ""
97
 
119
  msgid "List Screen ID"
120
  msgstr ""
121
 
122
+ #: classes/Column/User/FullName.php:11 classes/Settings/Column/User.php:78
123
  msgid "Full Name"
124
  msgstr ""
125
 
175
  msgid "Sort by clicking the column header on the list table. Click the column header again to switch between <em>ascending</em> and <em>descending</em>."
176
  msgstr ""
177
 
178
+ #: templates/tooltip/filtering.php:13
179
  msgid "Smart Filters"
180
  msgstr ""
181
 
182
+ #: templates/tooltip/filtering.php:13
183
  msgid "We recommend using %s"
184
  msgstr ""
185
 
186
+ #: templates/tooltip/filtering.php:20
187
  msgid "%s also has better support for all the different types of fields, such as text, numbers and dates."
188
  msgstr ""
189
 
190
+ #: templates/tooltip/filtering.php:17
191
  msgid "Finding the right content will be much easier with the use of conditionals, such as %s."
192
  msgstr ""
193
 
194
+ #: templates/tooltip/filtering.php:16
195
  msgid "%s is an improved version of %s."
196
  msgstr ""
197
 
286
  msgid "No deprecated hooks or filters found."
287
  msgstr ""
288
 
289
+ #: templates/tooltip/smart-filtering.php:6 templates/tooltip/filtering.php:16
290
+ #: templates/tooltip/filtering.php:20
291
  #: classes/Settings/Column/Pro/SmartFiltering.php:11
 
 
292
  msgid "Smart Filtering"
293
  msgstr ""
294
 
 
295
  #: templates/tooltip/bulk-editing.php:7
296
+ #: classes/Settings/Column/Pro/BulkEditing.php:11
297
  msgid "Bulk Editing"
298
  msgstr ""
299
 
 
300
  #: templates/tooltip/inline-editing.php:7
301
+ #: classes/Settings/Column/Pro/InlineEditing.php:11
302
  msgid "Inline Editing"
303
  msgstr ""
304
 
378
  msgid "View Comment"
379
  msgstr ""
380
 
381
+ #: classes/Admin/Asset/Columns.php:65
382
  msgid "The column could not be loaded because of an unknown error"
383
  msgstr ""
384
 
385
+ #: classes/Admin/Asset/Columns.php:64
386
  msgid "There was an error during saving the column settings."
387
  msgstr ""
388
 
418
  msgid "Search any content"
419
  msgstr ""
420
 
421
+ #: templates/settings/setting-label-icons.php:72
422
  msgid "Select"
423
  msgstr ""
424
 
450
  msgid "Value: Should contain a URL."
451
  msgstr ""
452
 
 
453
  #: templates/admin/help-tab/custom-fields.php:54
454
+ #: classes/Settings/Column/CustomFieldType.php:122
455
  msgid "URL"
456
  msgstr ""
457
 
479
  msgid "Manage columns for your event, organizer or venue overviews."
480
  msgstr ""
481
 
482
+ #: templates/settings/setting-label-icons.php:43
483
+ #: templates/tooltip/sorting.php:7 classes/Settings/Column/Pro/Sorting.php:11
484
  msgid "Sorting"
485
  msgstr ""
486
 
487
+ #: templates/tooltip/filtering.php:2 templates/tooltip/filtering.php:16
488
  msgid "Filtering"
489
  msgstr ""
490
 
491
+ #: templates/tooltip/export.php:7 classes/Settings/Column/Pro/Export.php:11
492
  msgid "Export"
493
  msgstr ""
494
 
544
  msgid "Text Limit"
545
  msgstr ""
546
 
547
+ #: classes/Table/Screen.php:134 classes/Table/Screen.php:136
548
+ #: classes/Column/Media/Download.php:11
549
  #: classes/Settings/Column/MediaLink.php:64
 
 
550
  msgid "Download"
551
  msgstr ""
552
 
599
  msgid "Site Options"
600
  msgstr ""
601
 
 
602
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:31
603
+ #: classes/Settings/Column/Meta.php:129
604
  msgid "current"
605
  msgstr ""
606
 
 
607
  #: classes/Helper/Select/Group/CustomField/MultiSite.php:28
608
+ #: classes/Settings/Column/Meta.php:126
609
  msgid "Network Site:"
610
  msgstr ""
611
 
779
  msgid "Auto"
780
  msgstr ""
781
 
782
+ #: classes/Admin.php:150 classes/Settings/Column/Comment.php:115
783
  #: classes/Settings/Column/AttachmentDisplay.php:42
784
+ #: classes/Settings/Column/Term.php:36 classes/Settings/Column/User.php:54
785
  #: classes/Settings/Column/Post.php:82
786
  msgid "Display"
787
  msgstr ""
814
  msgid "Plain text"
815
  msgstr ""
816
 
 
817
  #: classes/Column/Post/PasswordProtected.php:21
818
+ #: classes/Settings/Column/Password.php:23
819
  msgid "Password"
820
  msgstr ""
821
 
907
  msgid "Number of Fields"
908
  msgstr ""
909
 
 
910
  #: templates/admin/help-tab/custom-fields.php:50
911
+ #: classes/Settings/Column/CustomFieldType.php:127
912
  msgid "True / False"
913
  msgstr ""
914
 
 
915
  #: templates/admin/help-tab/custom-fields.php:26
916
+ #: classes/Settings/Column/CustomFieldType.php:126
917
  msgid "Has Content"
918
  msgstr ""
919
 
 
920
  #: templates/admin/help-tab/custom-fields.php:42
921
+ #: classes/Settings/Column/CustomFieldType.php:123
922
  msgid "Number"
923
  msgstr ""
924
 
935
  msgid "Field"
936
  msgstr ""
937
 
 
938
  #: classes/Settings/Column/NumberOfItems.php:33
939
+ #: classes/Settings/Column/CharacterLimit.php:29
940
  #: classes/Settings/Column/WordLimit.php:35
941
  msgid "Leave empty for no limit"
942
  msgstr ""
945
  msgid "Maximum number of characters"
946
  msgstr ""
947
 
 
948
  #: classes/Settings/Column/CharacterLimit.php:28
949
+ #: classes/Settings/Column/StringLimit.php:36
950
  msgid "Character Limit"
951
  msgstr ""
952
 
1146
  msgid "View %s screen"
1147
  msgstr ""
1148
 
1149
+ #: classes/Admin/Asset/Columns.php:62
1150
  msgid "Invalid response."
1151
  msgstr ""
1152
 
1166
  msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
1167
  msgstr ""
1168
 
1169
+ #: classes/ColumnGroups.php:15 classes/Admin/HelpTab/CustomField.php:11
1170
  msgid "Custom Fields"
1171
  msgstr "Brugerdefineret felter"
1172